Unexpected error

When I typed
#svcs -x sma

I received this following error,
svcs: svcs.c:335: Unexpected libscf error: invalid argument. Exiting.

I have googled around but could not find a solution.

IS this a bug?

I am using
Solaris 5.10 Generic_137137-09 sun4v sparc SUNW,SPARC-Enterprise-T5220.

Anyone can help?

Thanks & Regards,
Sundar

What's the output of the following:

svcs -x

svcs -a |grep sma

svcs -x /application/management/sma:default

svccfg -s sma listprop

which svcs

ldd `which svcs`

Same result running as root or a non-root user? What was done to the host recently? Other SMF commands working ok?

Have a similar box at the same patch level? Compare the two. Running:

truss -o /tmp/truss.out svcs -x sma

And comparing the output on this host and a working box could give you a hint.

Hi there,

Thanks for the quick reply.

Sorry, I had to paste the output to your questions here. It's too long.

The attachment pop-up keeps requesting for password.

So, here it is,

What's the output of the following:
svcs -x
# svcs -x
svcs: svcs.c:335: Unexpected libscf error: invalid argument. Exiting.
svc:/application/print/server:defaultroot@host #
svcs -a |grep sma
disabled 11:42:48 svc:/application/management/sma:default
svcs -x /application/management/sma:default
svcs: svcs.c:335: Unexpected libscf error: invalid argument. Exiting.
svc:/application/management/sma:defaultroot@host #
svccfg -s sma listprop
milestone dependency
milestone/entities fmri svc:/milestone/sysconfig
milestone/grouping astring require_all
milestone/restart_on astring none
milestone/type astring service
fs-local dependency
fs-local/entities fmri svc:/system/filesystem/local
fs-local/grouping astring require_all
fs-local/restart_on astring none
fs-local/type astring service
name-services dependency
name-services/entities fmri svc:/milestone/name-services
name-services/grouping astring optional_all
name-services/restart_on astring none
name-services/type astring service
system-log dependency
system-log/entities fmri svc:/system/system-log
system-log/grouping astring optional_all
system-log/restart_on astring none
system-log/type astring service
rstat dependency
rstat/entities fmri svc:/network/rpc/rstat
rstat/grouping astring optional_all
rstat/restart_on astring none
rstat/type astring service
cryptosvc dependency
cryptosvc/entities fmri svc:/system/cryptosvc
cryptosvc/grouping astring require_all
cryptosvc/restart_on astring restart
cryptosvc/type astring service
network dependency
network/entities fmri svc:/milestone/network
network/grouping astring require_all
network/restart_on astring restart
network/type astring service
config-file dependency
config-file/entities fmri file://localhost/etc/sma/snmp/snmpd.conf
config-file/grouping astring require_all
config-file/restart_on astring refresh
config-file/type astring path
general framework
general/action_authorization astring solaris.smf.manage.sma
general/single_instance boolean true
start method
start/exec astring /lib/svc/method/svc-sma
start/timeout_seconds count 60
start/type astring method
stop method
stop/exec astring :kill
stop/timeout_seconds count 60
stop/type astring method
tm_common_name template
tm_common_name/C ustring "net-snmp SNMP daemon"
tm_man_snmpd template
tm_man_snmpd/manpath astring /usr/share/man/
tm_man_snmpd/section astring 1M
tm_man_snmpd/title astring snmpd
which svcs
/usr/bin/svcs
ldd `which svcs
libcontract.so.1 => /lib/libcontract.so.1
libscf.so.1 => /lib/libscf.so.1
libuutil.so.1 => /lib/libuutil.so.1
libumem.so.1 => /lib/libumem.so.1
libc.so.1 => /lib/libc.so.1
libnvpair.so.1 => /lib/libnvpair.so.1
libdoor.so.1 => /lib/libdoor.so.1
libgen.so.1 => /lib/libgen.so.1
libnsl.so.1 => /lib/libnsl.so.1
libmp.so.2 => /lib/libmp.so.2
libmd.so.1 => /lib/libmd.so.1
libm.so.2 => /lib/libm.so.2
/platform/SUNW,SPARC-Enterprise-T5220/lib/libc_psr.so.1
/platform/SUNW,SPARC-Enterprise-T5220/lib/libmd_psr.so.1`
Same result running as root or a non-root user?
Error doesn't appear when executed as non-root user.
svc:/application/management/sma:default (net-snmp SNMP daemon)
State: disabled since Fri Jan 23 11:42:48 2009
Reason: Disabled by an administrator.
See: Sun Message ID: SMF-8000-05
See: snmpd(1M)
See: /var/svc/log/application-management-sma:default.log
Impact: This service is not running.

What was done to the host recently?
This is a new server.
Other SMF commands working ok?
working fine
Have a similar box at the same patch level?
Yes but release date differ
Solaris 10 5/08 s10s_u5wos_10 SPARC
Copyright 2008 Sun Microsystems, Inc. All Rights Reserved.
Use is subject to license terms.
Assembled 24 March 2008
Solaris 10 10/08 s10s_u6wos_07b SPARC
Copyright 2008 Sun Microsystems, Inc. All Rights Reserved.
Use is subject to license terms.
Assembled 27 October 2008
(****Svcs error occur in latest release)