Unexpected error


 
Thread Tools Search this Thread
Operating Systems Solaris Unexpected error
# 1  
Old 01-23-2009
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
This User Gave Thanks to sundar63 For This Post:
# 2  
Old 01-23-2009
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.
# 3  
Old 01-23-2009
Attached file

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)
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Getting this error syntax error near unexpected token `)'

Hi Everyone, my script was running Ok, but suddenly it started giving this error. ./update_env_bi.sh: line 54: syntax error near unexpected token `)' ./update_env_bi.sh: line 54: `sed -i "s/PORT=*1/PORT=$2/" repository.xml' The line 54 has this code. sed -i "s/PORT=*1/PORT=$2/"... (2 Replies)
Discussion started by: shajay12
2 Replies

2. Shell Programming and Scripting

Syntax error `(' unexpected

I have written this in my script but while running i am getting syntax error `(' unexpected. unload to "$BACKUP_DIR/n_fac_fid-$clliname" select * from n_fac_fid where fac_accesskey in (select fac_accesskey From n_fac_ap_fid where ap_clli="$clliname"); Any help appreciated. (3 Replies)
Discussion started by: suryanmi
3 Replies

3. Shell Programming and Scripting

IF section problem. syntax error: unexpected end of file error

Hello, I have another problem with my script. Please accept my apologies, but I am really nooby in sh scripts. I am writing it for first time. My script: returned=`tail -50 SapLogs.log | grep -i "Error"` echo $returned if ; then echo "There is no errors in the logs" fi And after... (10 Replies)
Discussion started by: jedzio
10 Replies

4. Shell Programming and Scripting

Getting unexpected error

Hi All, I am writing one script to automate one of the process and for that I am using below command at one line : uncompress `cat tmp` content in tmp file are : /home/vas/aqbatch/newbatch/archive/output/RIM_GUIDEPRICE_AQ_02108.DAT.Z... (5 Replies)
Discussion started by: NirajThakar
5 Replies

5. Shell Programming and Scripting

syntax error: `$' unexpected

Hi all, Am very new to Unix and am currently Involved in Migrating some Shell Scripts from AIX 4 to Solaris 10. While using teh for loop am getting the below error: $ echo $SHELL /usr/bin/ksh $ for file in $(ls *SEBE*) syntax error: `$' unexpected while the same works without issue on... (4 Replies)
Discussion started by: paragkhanore
4 Replies

6. Shell Programming and Scripting

unexpected syntax error

Hi, i am getting following syntax error ...kingly advice why is it coming ?? #!/bin/bash find . -name "common.log" if ; then echo "1" fi Himnashu@home /bin $ ./a.sh ./a.sh: line 7: syntax error near unexpected token `fi' ./a.sh: line 7: `fi' (9 Replies)
Discussion started by: himvat
9 Replies

7. Shell Programming and Scripting

sed error : Syntax error: redirection unexpected

My script is throwing the error 'Syntax error: redirection unexpected' My line of code.. cat nsstatustest.html | sed s/<tr><td align="left">/<tr><td align="left" bgcolor="#000000"><font color="white">/ > ztmp.Ps23zp2s.2-Fpps3-wmmm0dss3 HTML tags are getting in the way but they're needed to... (3 Replies)
Discussion started by: phpfreak
3 Replies

8. Shell Programming and Scripting

unexpected crontab error

Yesterday i installed a new cron on solaris box. After a few minutes after loading the cron, i got the following error. Your "crontab" on machine_name ! unexpected end of line This entry has been ignored. Do any of you have any idea about this error ? (12 Replies)
Discussion started by: dhanamurthy
12 Replies

9. UNIX for Dummies Questions & Answers

unexpected error

./sample.5: syntax error: `(' unexpected I get this error and Im trying to solve it but the line that it refering to is a notation so I don't understand why it is affecting the program. (2 Replies)
Discussion started by: helpme2008
2 Replies

10. UNIX for Dummies Questions & Answers

awk Shell Script error : "Syntax Error : `Split' unexpected

hi there i write one awk script file in shell programing the code is related to dd/mm/yy to month, day year format but i get an error please can anybody help me out in this problem ?????? i give my code here including error awk ` # date-month -- convert mm/dd/yy to month day,... (2 Replies)
Discussion started by: Herry
2 Replies
Login or Register to Ask a Question