dependency require_all/none svc:/network/physical (maintenance)

I am using telnet instead of ssh because network/physical service is on maintenance mode. I can ping google and other internel machines. I can't ssh to this server because network/physical is dependency of ssh.

How can I fix this service. I can use network service but it is maintenance mode. why? I am waitting your kindly helps.

bash-3.00# ping google.com
google.com is alive
bash-3.00# 
bash-3.00# ifconfig -a
lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
        inet 127.0.0.1 netmask ff000000 
e1000g0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
        inet 192.168.20.36 netmask ffffff00 broadcast 192.168.20.255
        ether 0:50:56:a9:0:5b 
bash-3.00# 
bash-3.00# cat /etc/hosts 
#
# Internet host table
#
::1     localhost       
127.0.0.1       MRBT localhost  
192.168.20.36   MRBT    MRBT.argela.com.tr      loghost
bash-3.00# 
bash-3.00# svcs -l ssh
fmri         svc:/network/ssh:default
name         SSH server
enabled      true
state        offline
next_state   none
state_time   Sat Feb 25 19:10:56 2012
restarter    svc:/system/svc/restarter:default
dependency   require_all/none svc:/system/filesystem/local (online)
dependency   optional_all/none svc:/system/filesystem/autofs (online)
dependency   require_all/none svc:/network/loopback (online)
dependency   require_all/none svc:/network/physical (maintenance)
dependency   require_all/none svc:/system/cryptosvc (online)
dependency   require_all/none svc:/system/utmp (online)
dependency   require_all/restart file://localhost/etc/ssh/sshd_config (online)
bash-3.00# 
bash-3.00# svcs -l network/physical
fmri         svc:/network/physical:default
name         physical network interfaces
enabled      true
state        maintenance
next_state   none
state_time   Fri Feb 24 17:32:51 2012
alt_logfile  /etc/svc/volatile/network-physical:default.log
restarter    svc:/system/svc/restarter:default
dependency   require_all/none svc:/network/loopback (online)
dependency   optional_all/none svc:/network/pfil (online)
dependency   optional_all/none svc:/network/tnctl (online)
bash-3.00# 

This might help finding the root cause:

tail /etc/svc/volatile/network-physical:default.log
svcs -xv

I did before. What the actions can help me. command outputs are below :confused:

bash-3.00# tail /etc/svc/volatile/network-physical:default.log
[ Feb 24 17:32:49 Enabled. ]
[ Feb 24 17:32:50 Executing start method ("/lib/svc/method/net-physical") ]
[ Feb 24 17:32:50 Timeout override by svc.startd.  Using infinite timeout ]
configuring IPv4 interfaces:ifconfig: setifflags: SIOCSLIFFLAGS: e1000g0: Cannot assign requested address
 e1000g0.
add net default: gateway 192.168.20.1: Network is unreachable
[ Feb 24 17:32:51 Method "start" exited with status 96 ]
bash-3.00# svcs -xv
svc:/network/physical:default (physical network interfaces)
 State: maintenance since Fri Feb 24 17:32:51 2012
Reason: Start method exited with $SMF_EXIT_ERR_CONFIG.
   See: http://sun.com/msg/SMF-8000-KS
   See: man -M /usr/share/man -s 1M ifconfig
   See: /etc/svc/volatile/network-physical:default.log
Impact: 14 dependent services are not running:
        svc:/milestone/network:default
        svc:/system/webconsole:console
        svc:/network/nfs/client:default
        svc:/network/nfs/nlockmgr:default
        svc:/network/nfs/status:default
        svc:/network/nfs/cbd:default
        svc:/network/nfs/mapid:default
        svc:/network/iscsi/initiator:default
        svc:/application/management/seaport:default
        svc:/application/management/snmpdx:default
        svc:/application/management/dmi:default
        svc:/application/management/sma:default
        svc:/network/shares/group:default
        svc:/network/ssh:default

svc:/application/print/server:default (LP print server)
 State: disabled since Fri Feb 24 17:32:50 2012
Reason: Disabled by an administrator.
   See: http://sun.com/msg/SMF-8000-05
   See: man -M /usr/share/man -s 1M lpsched
Impact: 2 dependent services are not running:
        svc:/application/print/rfc1179:default
        svc:/application/print/ipp-listener:default
bash-3.00# 

---------- Post updated at 08:59 PM ---------- Previous update was at 07:45 PM ----------

How can I online below servcice states.

Impact: 14 dependent services are not running:
        svc:/milestone/network:default
        svc:/system/webconsole:console
        svc:/network/nfs/client:default
        svc:/network/nfs/nlockmgr:default
        svc:/network/nfs/status:default
        svc:/network/nfs/cbd:default
        svc:/network/nfs/mapid:default
        svc:/network/iscsi/initiator:default
        svc:/application/management/seaport:default
        svc:/application/management/snmpdx:default
        svc:/application/management/dmi:default
        svc:/application/management/sma:default
        svc:/network/shares/group:default
        svc:/network/ssh:default

Are you using Solaris 10 or 11?

Have you tried assigning a different IP to the NIC? Are you sure that the IP configurations are persistent over a reboot? I am asking this as you may setup NIC using ifconfig. But the changes are not written on files. So when network/physical service tries to read the files, it does not get the updated info. Meanwhile, you can ping, etc. without any issue.

---------- Post updated at 02:56 PM ---------- Previous update was at 02:54 PM ----------

By the way, the other services will automatically start to run (if they are already enabled) once the network/physical service gets online.

My friend, Thats true, I did manually network configuration when server is rebooted. But I am right configuration like below. I don't know. All of the network files are right. What is the main problem!.:confused: I have one NIC.

bash-3.00# ifconfig -a
lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
        inet 127.0.0.1 netmask ff000000 
e1000g0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
        inet 192.168.20.36 netmask ffffff00 broadcast 192.168.20.255
        ether 0:50:56:a9:0:5b 
bash-3.00# cat /etc/hosts
#
# Internet host table
#
::1     localhost       
127.0.0.1       MRBT localhost  
192.168.20.36   MRBT    MRBT.argela.com.tr      loghost
bash-3.00# cat /etc/hostname.e1000g0 
MRBT
bash-3.00# cat /etc/resolv.conf 
domain argela.com.tr
nameserver 192.168.0.9
nameserver 192.168.0.8
search argela.com.tr
bash-3.00# cat /etc/netmasks 
#
# The netmasks file associates Internet Protocol (IP) address
# masks with IP network numbers.
# 
#       network-number  netmask
#
# The term network-number refers to a number obtained from the Internet Network
# Information Center.
#
# Both the network-number and the netmasks are specified in
# "decimal dot" notation, e.g:
#
#               128.32.0.0 255.255.255.0
#
192.168.20.0    255.255.255.0
bash-3.00# netstat -r

Routing Table: IPv4
  Destination           Gateway           Flags  Ref     Use     Interface 
-------------------- -------------------- ----- ----- ---------- --------- 
default              192.168.20.1         UG        1         51           
192.168.20.0         MRBT                 U         1          8 e1000g0   
base-address.mcast.net MRBT                 U         1          0 lo0       
MRBT                 MRBT                 UH        1       1659 lo0       
bash-3.00# cat /etc/nodename 
MRBT
bash-3.00# cat /etc/defaultrouter 
192.168.20.1
bash-3.00# cat /etc/inet/ipnodes 
#
# Internet host table
#
::1     localhost       
127.0.0.1       MRBT localhost  
192.168.20.36   MRBT    MRBT.argela.com.tr      loghost
bash-3.00# 

Can you post the output of this command please?

svccfg -s network/physical listprop

Output is below.

bash-3.00# svccfg -s network/physical listprop
loopback                           dependency
loopback/entities                  fmri     svc:/network/loopback
loopback/grouping                  astring  require_all
loopback/restart_on                astring  none
loopback/type                      astring  service
pfil_network                       dependency
pfil_network/entities              fmri     svc:/network/pfil
pfil_network/external              boolean  true
pfil_network/grouping              astring  optional_all
pfil_network/restart_on            astring  none
pfil_network/type                  astring  service
tnctl_network-physical             dependency
tnctl_network-physical/entities    fmri     svc:/network/tnctl
tnctl_network-physical/external    boolean  true
tnctl_network-physical/grouping    astring  optional_all
tnctl_network-physical/restart_on  astring  none
tnctl_network-physical/type        astring  service
general                            framework
general/entity_stability           astring  Unstable
tm_common_name                     template
tm_common_name/C                   ustring  "physical network interfaces"
tm_man_ifconfig                    template
tm_man_ifconfig/manpath            astring  /usr/share/man
tm_man_ifconfig/section            astring  1M
tm_man_ifconfig/title              astring  ifconfig
bash-3.00# 

Thanks! Everything seems to be fine. Looks like we need to give the service a little push after cleaning up things. Could you please execute these commands and check?

svcadm clear network/physical
svcadm refresh network/physical
svcadm restart network/physical
1 Like

I ran related command but all of the ip configuration is reset. After than I realize that my /etc/hosts file is not right configured. :eek:

before :

bash-3.00# cat /etc/hosts
#
# Internet host table
#
::1     localhost       
127.0.0.1   MRBT    localhost       
192.168.20.36   MRBT    loghost
bash-3.00# 

now:

bash-3.00# cat /etc/hosts
#
# Internet host table
#
::1     localhost       
127.0.0.1       localhost       
192.168.20.36   MRBT    loghost
bash-3.00# 
127.0.0.1  (MRBT is unnecessary)     localhost

Who wrote this word? This is terrible. :wall:

Thanks for help dud.:b: