svcadm not running on Solaris 9. (Any alternates?)


 
Thread Tools Search this Thread
Operating Systems Solaris svcadm not running on Solaris 9. (Any alternates?)
# 1  
Old 08-11-2011
svcadm not running on Solaris 9. (Any alternates?)

Hi All,

Yet another problem where I need your help.
Guys , I am on a Solaris 9 Machine where
Code:
svcadm

command doesn't work
I want to issue a command
Code:
svcadm restart ntp

as I normally do in Solaris 10. However I want to know is there any alternate way to do it in solaris 9 as it doesn't support the
Code:
svcadm

command?

Your Help is Appreciated

---------- Post updated at 03:55 AM ---------- Previous update was at 03:54 AM ----------

Please find the o/p of some commands.
Code:
root@ecosdp26b>uname -a
SunOS ecosdp26b 5.9 Generic_122300-22 sun4u sparc SUNW,Netra-T12
root@ecosdp26b>

I am getting the following error.
Code:
root@ecosdp26b # svcadm restart ntp
bash: svcadm: command not found
root@ecosdp26b #

However the same command works fine on Solaris 10.

---------- Post updated at 04:02 AM ---------- Previous update was at 03:55 AM ----------

Code:
root@ecosdp26b # ntpq -p
localhost: timed out, nothing received
***Request timed out

I want to resolve the error given above
# 2  
Old 08-11-2011
SMF should be there somewhere as an optional package. It was introduced in Solaris 9 as an alternative way to manage services. However it did not become the default until Solaris 10.

You can always start and stop services via the /etc/init.d/* scripts in Solaris 9.
# 3  
Old 08-11-2011
Hi
To restart NTP do this:
Code:
/etc/init.d/ntpd stop
/etc/init.d/ntpd start

or
Code:
/etc/init.d/xntpd stop
/etc/init.d/xntpd start

to update your time do this:
Code:
ntpdate [myntpserver]

As for the svcadm command. This command is a Solaris 10 and above command. fpmurphy maybe right about it being a add in but I have never seen this.
# 4  
Old 08-12-2011
Quote:
Originally Posted by fpmurphy
SMF should be there somewhere as an optional package. It was introduced in Solaris 9 as an alternative way to manage services. However it did not become the default until Solaris 10.
This is incorrect. SMF was introduced with Solaris 10 and was never backported to Solaris 9.
# 5  
Old 08-12-2011
I stand corrected. SMF was never released for Solaris 9.
# 6  
Old 08-12-2011
Quote:
Originally Posted by fpmurphy
I stand corrected. SMF was never released for Solaris 9.
Perhaps were you fooled by the bogus first paragraph here:
http://www.princeton.edu/~unix/Solaris/troubleshoot/smf.html
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Solaris

Apache 2.4 User/Group option with svcadm

Hello all, Solaris 11. Branch: 0.175.3.35.0.6.0 Asking for some assistance in trying to understand how Apache24 works with svcadm. I used: svccfg -s network/http:apache24 listprop setprop start/user=<rabbit> setprop start/group=<pod> This is also set in... (1 Reply)
Discussion started by: smiloo
1 Replies

2. Solaris

Svcadm disable in global zone affects same service in ngz

I have a service that resides in both the global and non global zones. When I disable the service in the global zone, a svcs -p on that service shows the process name and ID of the svcadmd for the non global. An svcs -l on the service in the global shows online with an intended state of disabled.... (0 Replies)
Discussion started by: Cbrown31
0 Replies

3. Solaris

difference between inetadm and svcadm

Can anyone tell me the difference between inetadm and svcadm in solaris. As per my knowledge svcadm will use to start/stop services . Any help on this is really helpful (2 Replies)
Discussion started by: rogerben
2 Replies

4. Solaris

svcadm issues

HI All, When i booted a server through its console. A message appeared . svc:/system/filesystem/local:default: WARNING: /sbin/mountall -l failed: exit status 1 May 27 03:55:32 svc.startd: svc:/system/filesystem/local:default: Method "/lib/svc/method/fs-local" failed with exit status... (3 Replies)
Discussion started by: jegaraman
3 Replies

5. Solaris

svcadm fails to enable nfs/server

When trying to enable nfs/server, I keep getting this message that another entity has disabled the service but I cannot find where the problem is. hostname:> svcadm -v enable -s svc:/network/nfs/server svc:/network/nfs/server:default enabled. svcadm: Instance "svc:/network/nfs/server:default"... (9 Replies)
Discussion started by: Vi-Curious
9 Replies

6. AIX

Efficient coding / Alternates for "For" loop

Hi, I have the current script with the following code and it works ok. for i in `find . -name "???ABCEDFGH*"` do SESS_NO=`echo $i | awk -F "." '{print $3}'` rm -f $LOGDIR/${OT_QUEUEID}*${SESS_NO}.log 2>/dev/null rm -f $i 2>/dev/null done I want to remove the usage of the... (2 Replies)
Discussion started by: jerardfjay
2 Replies

7. UNIX for Dummies Questions & Answers

case accept severel alternates?

is that a command for this? (1 Reply)
Discussion started by: trob
1 Replies

8. UNIX for Advanced & Expert Users

svcadm with Solaris 10

Hi, I just upgraded my Ultra 5 to Solaris 10. Now I get this error when I try to start the nfs.server; # svcadm enable svc:/network/nfs/server svcadm: Pattern 'svc:/network/nfs/server' doesn't match any instances Also I cannot use either: # inetadm -l nfs/server Pattern 'nfs/server'... (2 Replies)
Discussion started by: chaandana
2 Replies

9. UNIX for Dummies Questions & Answers

Running Solaris Sparc Apps on X86 Solaris

I know that Sun make s a version of Solaris for Sparc platforms and also an x86 (Intel/AMD) release of Solaris. Can an application that runs on Solaris/Sparc also run on a PC running the x86 release of Solaris? Would a different release be required or any re-compling of the application? jim (1 Reply)
Discussion started by: stocksj
1 Replies
Login or Register to Ask a Question