- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Listing System services
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2005 09:35 PM
06-07-2005 09:35 PM
Listing System services
Is there a HP-UX and Solaris command to check if a daemon is running or stopped? (like I could use lssrc in IBM AIX environmnt)
Query: SUN Solaris #modinfo
For example
On IBM AIX,
#lssrc -a
Subsystem Group PID Status
syslogd ras 5198 active
sendmail mail 6452 active
portmap portmap 6710 active
inetd tcpip 6966 active
snmpd tcpip 7224 active
dpid2 tcpip 7482 active
muxatmd tcpip 7740 active
biod nfs 8776 active
rpc.statd nfs 9038 active
rpc.lockd nfs 9296 active
Thanks/cliff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2005 09:49 PM
06-07-2005 09:49 PM
Re: Listing System services
for SUN's modinfo, kmadmin is an alternate command in HPUX(man kmadmin for more info).
as for services/daemons running, i can only think of "ps -ef" for all processes running.
regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2005 10:02 PM
06-07-2005 10:02 PM
Re: Listing System services
Any other advise.
ps -ef |grep
Is the only option I always doing :(
I was thinking of listing active system daemons to report.
Thanks/cliff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2005 10:03 PM
06-07-2005 10:03 PM
Re: Listing System services
if u refer to this:
http://www.freelab.net/unix/hp-ux/chap06_proc.html
ps and top commands r the closest to lssrc for HPUX.
regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2005 10:16 PM
06-07-2005 10:16 PM
Re: Listing System services
# for service in `grep -Ev '^#|^$' /etc/services | awk '{ print $1 }'`
do
ps -ef | grep -v grep | grep $service
done
on hp-ux. But Linux is having service command and ps -A to get all deamons only.
hth.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-08-2005 12:38 AM
06-08-2005 12:38 AM
Re: Listing System services
Using the assumption that daemons will *normally* be listening on a network port, you could get lsof to list out open network ports:
lsof -i | awk '$0 !~ /^COMM/ {print $1}'
As caveated; daemons don't necessarily operate network ports, but most of them do...
HTH;
Doug
------
Senior UNIX Admin
O'Leary Computers Inc
linkedin: http://www.linkedin.com/dkoleary
Resume: http://www.olearycomputers.com/resume.html
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-08-2005 12:47 AM
06-08-2005 12:47 AM
Re: Listing System services
With grep, it is problem. Say you have a daemon as xxx and xxxyyy
if you do ps -ef| grep xxx, both will be listed. With UNIX95 variable, you can do it as follows.
UNIX95= ps -C xxx
UNIX95 is xpg4 conformance. For details see ps man page.
Anil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-17-2005 08:53 PM
06-17-2005 08:53 PM
Re: Listing System services
try glance to list the process , a snapshot of glance :
B3692A GlancePlus C.03.72.00 04:48:47 clsnet01 9000/800 Current Avg High
--------------------------------------------------------------------------------
CPU Util S SU U | 72% 72% 72%
Disk Util FF | 3% 4% 7%
Mem Util S SU UB B | 85% 85% 85%
Swap Util U UR R | 21% 21% 21%
--------------------------------------------------------------------------------
PROCESS LIST Users= 18
User CPU Util Cum Disk Thd
Process Name PID PPID Pri Name ( 200% max) CPU IO Rate RSS Cnt
--------------------------------------------------------------------------------
opcctla 10697 1687 237 root 96.6/98.0 47410.9 0.0/ 0.0 2.3mb 1
pmd 16782 16779 154 root 41.6/39.0 157057 1.5/ 0.8 230.0mb 1
opcle 8813 1687 168 root 2.7/ 0.9 5708.9 0.0/ 0.0 2.0mb 3
netmon 15499 16779 154 root 1.1/ 1.5 638.4 0.0/ 0.0 10.2mb 1
ovas 16806 16779 168 root 0.0/ 0.1 346.3 0.0/ 0.0 34.4mb 20
ovrequestd 16784 16779 168 bin 0.0/ 0.2 686.4 0.0/ 0.0 30.2mb 15
ovdbrun 16800 1 154 root 0.0/ 0.6 2349.6 0.0/ 1.0 22.5mb 18
prm3d 1354 1 168 root 0.0/ 0.2 1059.8 0.0/ 0.0 63.2mb 20
vxfsd 35 0 138 root 0.0/ 0.1 648.4 2.6/ 4.2 1.8mb 23
swapper 0 0 127 root 0.0/ 0.0 12.5 2.3/ 0.9 32kb 1
regards
Vinod K