Sun Connection Inventory Channel - sconadm: not found

Hello,

I'm trying this new inventory thing Sun created: "Sun Connection Inventory Channel" from https://sunconnection.sun.com/inventory, downloaded the agent and installed it on some test systems.

So, basically installation is simple, but discovering a system is not working at all.

e.g. one Solaris 10 host remains faulty

# svcs stdiscover stlisten stosreg

STATE STIMEFMRI

online 12:54:26 svc:/application/stosreg:default

online 12:54:34 svc:/network/stlisten:default

maintenance12:55:04 svc:/network/stdiscover:default

# svcs -x

svc:/network/stdiscover:default (Service Tag discovery probe)

State: maintenance since Thu Jul 26 12:55:04 2007

Reason: Restarter svc:/network/inetd:default gave no explanation.

See: http://sun.com/msg/SMF-8000-9C

See: in.stdiscover(1M)

Impact: This service is not running.

svc:/system/basicreg:default (?)

State: maintenance since Thu Jun 14 07:50:19 2007

Reason: Start method failed repeatedly, last exited with status 1.

See: http://sun.com/msg/SMF-8000-KS

See: /etc/svc/volatile/system-basicreg:default.log

Impact: This service is not running.

# cat /etc/svc/volatile/system-basicreg:default.log

[ start + 2.99s Enabled. ]

[ start + 3.07s Executing start method ("/usr/sbin/sconadm register -c -m autoreg") ]

/sbin/sh: /usr/sbin/sconadm: not found

[ start + 3.11s Method"start" exited with status 1 ]

[ start + 3.14s Executing start method ("/usr/sbin/sconadm register -c -m autoreg") ]

/sbin/sh: /usr/sbin/sconadm: not found

[ start + 3.16s Method"start" exited with status 1 ]

[ start + 3.19s Executing start method ("/usr/sbin/sconadm register -c -m autoreg") ]

/sbin/sh: /usr/sbin/sconadm: not found

[ start + 3.22s Method"start" exited with status 1 ]

# svcs -x network/stdiscover:default

svc:/network/stdiscover:default (Service Tag discovery probe)

State: maintenance since Thu Jul 26 12:55:04 2007

Reason: Restarter svc:/network/inetd:default gave no explanation.

See: http://sun.com/msg/SMF-8000-9C

See: in.stdiscover(1M)

Impact: This service is not running.

The error code

/usr/sbin/sconadm: not found

[/code}

is mysterious, because sconadm exists and is patched to the latest level (at least as far as I could see)

[code]

# ls -l /usr/sbin/sconadm

-rwxr-xr-x1 rootsys 8695 Oct 20 2006 /usr/sbin/sconadm

Any ideas ?

-- Nick

[3145 byte] By [der_nikia] at [2007-11-27 11:47:56]
# 1

Could you please update this forum case with the following information, so we may investigate this issue further and perform some local testing

# svcs -l stdiscover:default

give the restarter being used for this service

# svcs -xv stdiscover:default

this will provide me with a list of services waiting for the service to start.

# svcs -a | egrep 'stdiscover|stlisten|stosreg'

# pkginfo SUNWservicetagu SUNWservicetagr SUNWstosreg

# cat /etc/release

# egrep -i 'listen|tag' /var/adm/messages

ForumModeratora at 2007-7-29 18:16:06 > top of Java-index,Administration Tools,Sun Update Connection-System...
# 2

# svcs -l stdiscover:default

fmri svc:/network/stdiscover:default

name Service Tag discovery probe

enabledtrue

statemaintenance

next_statenone

state_timeThu Jul 26 12:55:04 2007

restartersvc:/network/inetd:default

# svcs -xv stdiscover:default

svc:/network/stdiscover:default (Service Tag discovery probe)

State: maintenance since Thu Jul 26 12:55:04 2007

Reason: Restarter svc:/network/inetd:default gave no explanation.

See: http://sun.com/msg/SMF-8000-9C

See: man -M /usr/share/man -s 1M in.stdiscover

Impact: This service is not running.

# svcs -a | egrep 'stdiscover|stlisten|stosreg'

online 12:54:26 svc:/application/stosreg:default

online 12:54:34 svc:/network/stlisten:default

maintenance12:55:04 svc:/network/stdiscover:default

# pkginfo SUNWservicetagu SUNWservicetagr SUNWstosreg

systemSUNWservicetagr Service Tags (root)

systemSUNWstosregService Tags Solaris OS Registration

ERROR: information for "SUNWservicetagu" was not found

--> package missing ?

# cat /etc/release

Solaris 10 3/05 s10_74L2a SPARC

Copyright 2005 Sun Microsystems, Inc. All Rights Reserved.

Use is subject to license terms.

Assembled 22 January 2005

# uname -a

SunOS kon-appl-x 5.10 Generic_118833-36 sun4u sparc SUNW,Sun-Fire-V210

# egrep -i 'listen|tag' /var/adm/messages

#

Thanks for your help which I really appreciate !

-- Nick

der_nikia at 2007-7-29 18:16:06 > top of Java-index,Administration Tools,Sun Update Connection-System...
# 3

ok it seems that I forgot to install the package SUNWservicetagu, now it's available:

# pkginfo SUNWservicetagu SUNWservicetagr SUNWstosreg

systemSUNWservicetagr Service Tags (root)

systemSUNWservicetagu Service Tags (Usr)

systemSUNWstosregService Tags Solaris OS Registration

# svcadm enable stdiscover stlisten stosreg

# svcs stdiscover stlisten stosreg

STATE STIMEFMRI

online 12:54:26 svc:/application/stosreg:default

online 12:54:34 svc:/network/stlisten:default

maintenance12:55:04 svc:/network/stdiscover:default

-- Nick

der_nikia at 2007-7-29 18:16:06 > top of Java-index,Administration Tools,Sun Update Connection-System...
# 4

Are you still seeing the error code pertaining to "sconadm"?

Please can you run the following commands:

# ls -l /usr/sbin/sconadm

ForumModeratora at 2007-7-29 18:16:06 > top of Java-index,Administration Tools,Sun Update Connection-System...
# 5

Let's hope these commands are the right ones you wanted me to do.

# /usr/sbin/sconadm register -c -m autoreg

Don't need auto-registration.

# vi /usr/lib/breg/data/RegistrationProfile.properties

...

# sconadm register -a -r /usr/lib/breg/data/RegistrationProfile.properties

sconadm is running

Authenticating user ...

finish registration!

(besides the fact the system has already been registered before)

I did a reboot and at the moment the situation is

# svcs stdiscover stlisten stosreg

STATE STIMEFMRI

online 11:12:45 svc:/application/stosreg:default

online 11:12:47 svc:/network/stdiscover:default

online 11:12:47 svc:/network/stlisten:default

# svcs -x

svc:/milestone/multi-user-server:default (multi-user plus exports milestone)

State: offline since Fri Jul 27 11:12:50 2007

Reason: Start method is running.

See: http://sun.com/msg/SMF-8000-C4

See: init(1M)

See: /var/svc/log/milestone-multi-user-server:default.log

Impact: 1 dependent service is not running. (Use -v for list.)

svc:/system/basicreg:default (?)

State: maintenance since Fri Jul 27 11:12:29 2007

Reason: Start method failed repeatedly, last exited with status 1.

See: http://sun.com/msg/SMF-8000-KS

See: /etc/svc/volatile/system-basicreg:default.log

Impact: This service is not running.

# cat /etc/svc/volatile/system-basicreg:default.log

[ start + 3.11s Enabled. ]

[ start + 3.15s Executing start method ("/usr/sbin/sconadm register -c -m autoreg") ]

/sbin/sh: /usr/sbin/sconadm: not found

[ start + 3.18s Method "start" exited with status 1 ]

[ start + 3.21s Executing start method ("/usr/sbin/sconadm register -c -m autoreg") ]

/sbin/sh: /usr/sbin/sconadm: not found

[ start + 3.23s Method "start" exited with status 1 ]

[ start + 3.25s Executing start method ("/usr/sbin/sconadm register -c -m autoreg") ]

/sbin/sh: /usr/sbin/sconadm: not found

[ start + 3.27s Method "start" exited with status 1 ]

On the console during the boot process I could also see

[ system/basicreg:default failed (see 'svcs -x' for details) ]

If I try to scan the product data with the inventory java GUI I sniffered the traffic on the affected system, only 2 UDP packtes were seen:

# snoop

Using device /dev/bge0 (promiscuous mode)

x.x.x.x -> kon-appl-x UDP D=6481 S=1948 LEN=52

kon-appl-x -> x.x.x.x UDP D=1948 S=6481 LEN=57

-- Nick

der_nikia at 2007-7-29 18:16:06 > top of Java-index,Administration Tools,Sun Update Connection-System...
# 6

sconadm patch is up-to-date:

124171-06Mar/29/07SunOS 5.10: SCN Base cacao module patch

# showrev -p |grep 124171

Patch: 124171-06 Obsoletes: 124614-01 Requires: Incompatibles: Packages: SUNWscn-base-r, SUNWscn-base

# grep sconadm /var/sadm/install/contents

/usr/sbin/sconadm f none 0755 root sys 8695 45666 1161296843 SUNWbreg SUNWbrg

SUNWscn-base-r< > SUNWbreg,SUNWbrg ?

To which package is sconadm belonging to?

-- Nick

der_nikia at 2007-7-29 18:16:06 > top of Java-index,Administration Tools,Sun Update Connection-System...
# 7

sconadm is from the Sun Update Connection (ie smpatch , updatemanager) and is used to register a system.

Previously the svcs showed the service tags online though and running , what is the specific issue now ?

ForumModeratora at 2007-7-29 18:16:06 > top of Java-index,Administration Tools,Sun Update Connection-System...
# 8

Well it's still online:

# svcs stdiscover stlisten stosreg

STATE STIMEFMRI

online 11:12:45 svc:/application/stosreg:default

online 11:12:47 svc:/network/stdiscover:default

online 11:12:47 svc:/network/stlisten:default

I want to show you the latest debugging messages from the syslog since I booted today, but I can't distinguish them whether one of them relates to our case:

...

Jul 27 11:12:48 kon-appl-x prngd[391]: [ID 113761 daemon.notice] prngd 0.9.25 (30 May 2002) started up for user root

Jul 27 11:12:48 kon-appl-x prngd[391]: [ID 710755 daemon.notice] have 7 out of 256 filedescriptors open

Jul 27 11:12:48 kon-appl-x prngd[391]: [ID 113761 daemon.notice] prngd 0.9.25 (30 May 2002) started up for user root

Jul 27 11:12:48 kon-appl-x prngd[391]: [ID 710755 daemon.notice] have 7 out of 256 filedescriptors open

Jul 27 11:12:49 kon-appl-x root: [ID 702911 daemon.error] PROVIDER RUNNER INFO: This is a normal reboot

Jul 27 11:12:49 kon-appl-x root: [ID 702911 daemon.error] PROVIDER RUNNER INFO: This is a normal reboot

Jul 27 11:12:55 kon-appl-x pcisch: [ID 370704 kern.info] PCI-device: ide@d, uata0

Jul 27 11:12:55 kon-appl-x genunix: [ID 936769 kern.info] uata0 is /pci@1e,600000/ide@d

Jul 27 11:12:57 kon-appl-x mac: [ID 543131 kern.info] NOTICE: bge1/0 registered

Jul 27 11:12:58 kon-appl-x mac: [ID 543131 kern.info] NOTICE: bge2/0 registered

Jul 27 11:12:59 kon-appl-x mac: [ID 543131 kern.info] NOTICE: bge3/0 registered

Jul 27 11:13:50 kon-appl-x scsi: [ID 193665 kern.info] sd3 at uata0: target 0 lun 0

Jul 27 11:13:50 kon-appl-x genunix: [ID 936769 kern.info] sd3 is /pci@1e,600000/ide@d/sd@0,0

Jul 27 11:13:52 kon-appl-x CNS Transport[470]: [ID 583990 daemon.error] can't get random seed: timed read of '/dev/random' read 9360 bytes in 60 seconds -- r

equested 16384 bytes

Jul 27 11:13:52 kon-appl-x CNS Transport[470]: [ID 984178 daemon.notice] using internally generated random seed

Jul 27 11:13:52 kon-appl-x CNS Transport[470]: [ID 583990 daemon.error] can't get random seed: timed read of '/dev/random' read 9360 bytes in 60 seconds -- r

equested 16384 bytes

Jul 27 11:13:52 kon-appl-x CNS Transport[470]: [ID 984178 daemon.notice] using internally generated random seed

Jul 27 11:13:52 kon-appl-x CNS Transport[470]: [ID 736147 daemon.warning] MLM ping curl error: 'SSL certificate problem, verify that the CA cert is OK. Detai

ls:

Jul 27 11:13:52 kon-appl-x error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed', code: 60

Jul 27 11:13:52 kon-appl-x CNS Transport[470]: [ID 736147 daemon.warning] MLM ping curl error: 'SSL certificate problem, verify that the CA cert is OK. Detai

ls:

Jul 27 11:13:52 kon-appl-x error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed', code: 60

Jul 27 11:13:53 kon-appl-x CNS Transport[470]: [ID 407903 daemon.warning] MLM ping error: curl msg 'SSL certificate problem, verify that the CA cert is OK. D

etails:

Jul 27 11:13:53 kon-appl-x error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed', curl rc: 60

Jul 27 11:13:53 kon-appl-x CNS Transport[470]: [ID 407903 daemon.warning] MLM ping error: curl msg 'SSL certificate problem, verify that the CA cert is OK. D

etails:

Jul 27 11:13:53 kon-appl-x error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed', curl rc: 60

Jul 27 11:13:53 kon-appl-x CNS Transport[470]: [ID 126843 daemon.notice] cctransport started

Jul 27 11:13:53 kon-appl-x CNS Transport[470]: [ID 126843 daemon.notice] cctransport started

Jul 27 11:13:53 kon-appl-x CNS Transport[470]: [ID 451796 daemon.error] abort on signal: 6 check for core file in: /var/tmp/cc-transport

Jul 27 11:13:53 kon-appl-x CNS Transport[470]: [ID 451796 daemon.error] abort on signal: 6 check for core file in: /var/tmp/cc-transport

Jul 27 11:15:02 kon-appl-x CNS Transport[921]: [ID 277336 daemon.error] can't get random seed: timed read of '/dev/random' read 8320 bytes in 60 seconds -- r

equested 16384 bytes

Jul 27 11:15:02 kon-appl-x CNS Transport[921]: [ID 984178 daemon.notice] using internally generated random seed

Jul 27 11:15:02 kon-appl-x CNS Transport[921]: [ID 277336 daemon.error] can't get random seed: timed read of '/dev/random' read 8320 bytes in 60 seconds -- r

equested 16384 bytes

Jul 27 11:15:02 kon-appl-x CNS Transport[921]: [ID 984178 daemon.notice] using internally generated random seed

Jul 27 11:15:03 kon-appl-x CNS Transport[921]: [ID 736147 daemon.warning] MLM ping curl error: 'SSL certificate problem, verify that the CA cert is OK. Detai

ls:

Jul 27 11:15:03 kon-appl-x error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed', code: 60

Jul 27 11:15:03 kon-appl-x CNS Transport[921]: [ID 736147 daemon.warning] MLM ping curl error: 'SSL certificate problem, verify that the CA cert is OK. Detai

ls:

Jul 27 11:15:03 kon-appl-x error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed', code: 60

Jul 27 11:15:03 kon-appl-x SRS Proxy[886]: [ID 893007 daemon.notice] srsproxy started

Jul 27 11:15:03 kon-appl-x SRS Proxy[886]: [ID 893007 daemon.notice] srsproxy started

Jul 27 11:15:03 kon-appl-x SRS Proxy[886]: [ID 857904 daemon.error] Thread(SocketListenerThread): unhandled exception: SocketListenerThread can't unlink '/va

r/opt/SUNWsrspx/SRS_IMAPISOCK errno: 13 message: Permission denied

Jul 27 11:15:03 kon-appl-x thread terminated

Jul 27 11:15:03 kon-appl-x SRS Proxy[886]: [ID 857904 daemon.error] Thread(SocketListenerThread): unhandled exception: SocketListenerThread can't unlink '/va

r/opt/SUNWsrspx/SRS_IMAPISOCK errno: 13 message: Permission denied

Jul 27 11:15:03 kon-appl-x thread terminated

Jul 27 11:15:04 kon-appl-x CNS Transport[921]: [ID 407903 daemon.warning] MLM ping error: curl msg 'SSL certificate problem, verify that the CA cert is OK. D

etails:

Jul 27 11:15:04 kon-appl-x error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed', curl rc: 60

Jul 27 11:15:04 kon-appl-x CNS Transport[921]: [ID 407903 daemon.warning] MLM ping error: curl msg 'SSL certificate problem, verify that the CA cert is OK. D

etails:

Jul 27 11:15:04 kon-appl-x error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed', curl rc: 60

Jul 27 11:15:04 kon-appl-x CNS Transport[921]: [ID 126843 daemon.notice] cctransport started

Jul 27 11:15:04 kon-appl-x CNS Transport[921]: [ID 126843 daemon.notice] cctransport started

Jul 27 11:15:04 kon-appl-x CNS Transport[921]: [ID 451796 daemon.error] abort on signal: 6 check for core file in: /var/tmp/cc-transport

Jul 27 11:15:04 kon-appl-x CNS Transport[921]: [ID 451796 daemon.error] abort on signal: 6 check for core file in: /var/tmp/cc-transport

Jul 27 11:15:07 kon-appl-x CNS Transport[1064]: [ID 736147 daemon.warning] MLM ping curl error: 'SSL certificate problem, verify that the CA cert is OK. Deta

ils:

Jul 27 11:15:07 kon-appl-x CNS Transport[1064]: [ID 736147 daemon.warning] MLM ping curl error: 'SSL certificate problem, verify that the CA cert is OK. Deta

ils:

Jul 27 11:15:07 kon-appl-x error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed', code: 60

Jul 27 11:15:07 kon-appl-x error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed', code: 60

Jul 27 11:15:07 kon-appl-x CNS Transport[1064]: [ID 407903 daemon.warning] MLM ping error: curl msg 'SSL certificate problem, verify that the CA cert is OK.

Details:

Jul 27 11:15:07 kon-appl-x error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed', curl rc: 60

Jul 27 11:15:07 kon-appl-x CNS Transport[1064]: [ID 407903 daemon.warning] MLM ping error: curl msg 'SSL certificate problem, verify that the CA cert is OK.

Details:

Jul 27 11:15:07 kon-appl-x error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed', curl rc: 60

Jul 27 11:15:08 kon-appl-x CNS Transport[1064]: [ID 126843 daemon.notice] cctransport started

Jul 27 11:15:08 kon-appl-x CNS Transport[1064]: [ID 126843 daemon.notice] cctransport started

Jul 27 11:15:08 kon-appl-x CNS Transport[1064]: [ID 451796 daemon.error] abort on signal: 6 check for core file in: /var/tmp/cc-transport

Jul 27 11:15:08 kon-appl-x CNS Transport[1064]: [ID 451796 daemon.error] abort on signal: 6 check for core file in: /var/tmp/cc-transport

Jul 27 11:18:46 kon-appl-x pseudo: [ID 129642 kern.info] pseudo-device: devinfo0

Jul 27 11:18:46 kon-appl-x genunix: [ID 936769 kern.info] devinfo0 is /pseudo/devinfo@0

Jul 27 12:44:01 kon-appl-x srsxfer[859]: [ID 633324 daemon.error]

Jul 27 12:44:01 kon-appl-x Error: srsxfer registration failed

Jul 27 12:44:01 kon-appl-x srsxfer[883]: [ID 633324 daemon.error]

Jul 27 12:44:01 kon-appl-x Error: srsxfer registration failed

Jul 27 12:44:01 kon-appl-x srsxfer[859]: [ID 633324 daemon.error]

Jul 27 12:44:01 kon-appl-x Error: srsxfer registration failed

Jul 27 12:44:01 kon-appl-x srsxfer[883]: [ID 633324 daemon.error]

Jul 27 12:44:01 kon-appl-x Error: srsxfer registration failed

Jul 27 12:44:01 kon-appl-x kplus: [ID 702911 daemon.error] PROVIDER RUNNER ERROR: srsxfer returned an error (1)

Jul 27 12:44:01 kon-appl-x kplus: [ID 702911 daemon.error] PROVIDER RUNNER ERROR: srsxfer returned an error (1)

Jul 27 12:44:01 kon-appl-x root: [ID 702911 daemon.error] ERROR: srsxfer returned an error code of 1

Jul 27 12:44:01 kon-appl-x root: [ID 702911 daemon.error] ERROR: srsxfer returned an error code of 1

Jul 27 13:29:02 kon-appl-x EventProvider[887]: [ID 395154 daemon.error] srs_register call failed

Jul 27 13:29:02 kon-appl-x ssha_pvr[891]: [ID 218628 daemon.error] new_Pipeline: Cannot register with proxy

Jul 27 13:29:02 kon-appl-x trend_pvr[890]: [ID 395154 daemon.error] srs_register call failed

Jul 27 13:29:02 kon-appl-x EventProvider[887]: [ID 395154 daemon.error] srs_register call failed

Jul 27 13:29:02 kon-appl-x ssha_pvr[891]: [ID 218628 daemon.error] new_Pipeline: Cannot register with proxy

Jul 27 13:29:02 kon-appl-x trend_pvr[890]: [ID 395154 daemon.error] srs_register call failed

Jul 27 13:29:04 kon-appl-x tsasim[893]: [ID 395154 daemon.error] srs_register call failed

Jul 27 13:29:04 kon-appl-x tsasim[893]: [ID 395154 daemon.error] srs_register call failed

-- Nick

der_nikia at 2007-7-29 18:16:06 > top of Java-index,Administration Tools,Sun Update Connection-System...
# 9

As far as I can see the errors which you are seeing in the syslog have no bearing on this case, and are most application related.

The "CNS" & "CERTIFICATE" errors relate to the web interface support option for Sun Update Connection.

The "srs" and "pvr" errors relate to NetConnect.

ForumModeratora at 2007-7-29 18:16:06 > top of Java-index,Administration Tools,Sun Update Connection-System...
# 10

A second example: I installed the servicetags packages on a x86 Solaris system. Everything is online.

# svcs stdiscover stlisten stosreg

STATE STIMEFMRI

online 9:00:59 svc:/network/stlisten:default

online 9:00:59 svc:/network/stdiscover:default

online 9:01:23 svc:/application/stosreg:default

But if I want to discover the system, scn_client.log shows

...

Jul 29, 2007 9:45:00 AM com.sun.scn.client.comm.UDPProbe sendUdpMessage

FINEST: buf: [PROBE] 8e186f9b-c931-4eb4-aadb-5463432e3859

Jul 29, 2007 9:45:49 AM com.sun.scn.client.comm.Communicator getFromAgent

FINE: Error: Server returned HTTP response code: 503 for URL: http://x.x.x.x:6481/stv1/agent/ : http://x.x.x.x:6481/stv1/agent/

java.io.IOException: Server returned HTTP response code: 503 for URL: http://x.x.x.x:6481/stv1/agent/

at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.ja va:1152)

at com.sun.scn.client.comm.Communicator.getFromAgent(Communicator.java:286)

at com.sun.scn.client.comm.Communicator$1.run(Communicator.java:102)

at java.lang.Thread.run(Thread.java:595)

-- Nick

der_nikia at 2007-7-29 18:16:06 > top of Java-index,Administration Tools,Sun Update Connection-System...