svcs showing online* status

Hi Experts

I am getting following status

 # svcs wbem
STATE          STIME    FMRI
online*        18:19:29 svc:/application/management/wbem:default

/var/svc/log/application-management-wbem:default.log is being flooded with following message

[ Dec 15 18:21:17 Stopping because all processes in service exited. ]
[ Dec 15 18:21:17 Executing stop method ("/lib/svc/method/svc-wbem stop") ]
[ Dec 15 18:21:22 Method "stop" exited with status 0 ]
[ Dec 15 18:21:22 Executing start method ("/lib/svc/method/svc-wbem start") ]
[ Dec 15 18:21:22 Method "start" exited with status 0 ]
[ Dec 15 18:21:22 Stopping because all processes in service exited. ]
[ Dec 15 18:21:22 Executing stop method ("/lib/svc/method/svc-wbem stop") ]
[ Dec 15 18:21:27 Method "stop" exited with status 0 ]
[ Dec 15 18:21:27 Executing start method ("/lib/svc/method/svc-wbem start") ]
[ Dec 15 18:21:27 Method "start" exited with status 0 ]
[ Dec 15 18:21:27 Stopping because all processes in service exited. ]
[ Dec 15 18:21:27 Executing stop method ("/lib/svc/method/svc-wbem stop") ]

I think this is killing my system.

First question what why am i getting online* status.
How to get rid of it.

disable?
Man Page for svcadm (OpenSolaris Section 1m) - The UNIX and Linux Forums
Do you know why the service exits when asked to start? Try starting it under truss for clues?

OK guys ..
It appear SMF got screwed somehow and kept restarting wbem over and over again.
I had to disable service. To my surprise i was not able to just disable it by

svcadm disable svc:/application/management/wbem:default

By doing that i was able to make enabled state to false but it kept restarting.

fmri         svc:/application/management/wbem:default
name         SMC and WBEM Server
enabled      false
state        online
next_state   offline
state_time   Wed Dec 15 20:16:36 2010
logfile      /var/svc/log/application-management-wbem:default.log
restarter    svc:/system/svc/restarter:default
contract_id  2149591 
dependency   require_all/error svc:/milestone/sysconfig:default (online)

Finally had to disable it in config

svccfg -s svc:/application/management/wbem setprop options/tcp_listen = false 
svcadm refresh svc:/application/management/wbem

I was not able to find reason for such behavior though but lesson learned online* will bite you in ur hynie :stuck_out_tongue:

Maybe someone else had his tcp port #?

I dont see any port clash.

So "netstat -an" does not show anyone on his port, whatever it is? Well, starting it with a ksh wrapper, just for a bit, might shed some light on the reason it is exiting immediately. For deeper mysteries, add " -u '*' ":

#!/usr/bin/ksh
 
truss -xall -wall -rall -faelo /tmp/tr.$$ /lib/svc/method/svc-wbem "$@"