Need svcs equivalent command


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Need svcs equivalent command
# 1  
Old 10-06-2009
Tools Need svcs equivalent command

Hi,

I am new to HP-UX.

Can someboby help me with the
Code:
 svcs

equivalent command in HP-UX ???

svcs is command that we use in Solaris for service status. I need to get the status of services in HP-UX.

Thanks in advance.
# 2  
Old 10-06-2009
The svcs(1) command is part of the SMF system that replaces the RC scripts used on earlier versions of Solaris, HP-UX still uses the rc scripts so svcs does not apply and no direct equivalent exists.

So for checking say NTP you will have to go back to checking is the ntp daemon running:
Code:
$ ps -ef | grep ntpd

and does it give a valid response when queried?
Code:
$ ntpq -p

to see if the NTP service started and is running okay.

There are of course commands like netstat and lsof to see if network daemons are listening and what ports they are using.
# 3  
Old 10-07-2009
TonyFullerMalv

Thank you very much for the information.....
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Equivalent to let command in POSIX shell

Hi all, I am learning POSIX shell programming, and the book I read, uses the let command for integer arithmetic. I have downloaded and use the shellcheck program on Linux. This programs says: In POSIX sh, 'let' is undefined. See the screenshot attached. What is the POSIX... (1 Reply)
Discussion started by: johnprogrammer
1 Replies

2. UNIX for Dummies Questions & Answers

Create the equivalent of the command WC

hi all, i'm trying to do this exercise, i want to create a script that can substitute WC command in unix, can someone help me? (11 Replies)
Discussion started by: Marina2013
11 Replies

3. Shell Programming and Scripting

Check & use output of svcs command

Hello Dear Friends, I need to check output of svcs command and so the status of some instances. -bash-3.00$ svcs -a | grep rfe online Aug_04 svc:/application/rfe/rfe_master_3:default online Aug_04 svc:/application/rfe/rfe_master_4:default as you can see there are two... (1 Reply)
Discussion started by: EAGL€
1 Replies

4. Windows & DOS: Issues & Discussions

DOS Equivalent of UNIX Command

Hi, The title of this post is a little vague but I couldn't think of what to call it. In Unix you can perform the following command ftp -v IPADDRESS <<END put FILE END In a DOS command prompt, is it possible to do the same kind of thing that the "<<END" does? So for example, ... (4 Replies)
Discussion started by: Ste_Moore01
4 Replies

5. UNIX for Dummies Questions & Answers

A faster equivalent for this sed command

Hello guys, I'm cleaning out big XML files (we're talking about 1GB at least), most of them contain words written in a non-latin alphabet. The command I'm using is so slow it's not even funny: cat $1 | sed -e :a -e 's/&lt;*&gt;//g;/&lt;/N;//ba;s/</ /g;s/>/... (4 Replies)
Discussion started by: bobylapointe
4 Replies

6. Solaris

svcs command shows the state as disabled

Hi I need to export a directory named /sybase from my solaris machine via NFS. The svcs command shows the state as disabled. Please let me know how to export the directory. Once the directory is exported from the solaris machine it has to be mounted locally in an aix machine. Can some one... (2 Replies)
Discussion started by: newtoaixos
2 Replies

7. AIX

smitty equivalent command line command

i know after you do something in smitty via the gui, you can click something in smitty that will show you how to do the same thing via the command line, (not using the gui) can anyone tell me how (2 Replies)
Discussion started by: asyed123
2 Replies

8. Shell Programming and Scripting

ttytype equivalent command in Solaris.

Hi All, We are trying to migrate scripts from HP Unix to Solaris server, in one of the profile file following command is used to set terminal settings and export its value, "ttytype -a -s " Now the same command is not present in Solaris, could someone let me know which command should i... (0 Replies)
Discussion started by: arvindcgi
0 Replies

9. Shell Programming and Scripting

Equivalent command to 'stat'

Can anyone tell me which is the equivalent command to 'stats' in ksh shell which discribes the file system? Thanks in advance Regards, Im_new (6 Replies)
Discussion started by: im_new
6 Replies

10. Solaris

svcs command on solaris 8 and 9

Hi, Can anybody tell me what is the command to start and stop services on solaris 8. I found command svcs on solaris 10 but not on 8 or 9. Please guilde me. Thanks, Rucha (7 Replies)
Discussion started by: rucha_mahajan
7 Replies
Login or Register to Ask a Question