Operating System - HP-UX
1753894 Members
7615 Online
108809 Solutions
New Discussion юеВ

"lsof" for active services

 
SOLVED
Go to solution
arkie
Super Advisor

"lsof" for active services

Hi,

Where can I download the 'lsof' utility to use for viewing active listening services in HP-UX 11iv1
6 REPLIES 6
Horia Chirculescu
Honored Contributor
Solution

Re: "lsof" for active services

Try the porting page:

http://hpux.connect.org.uk/hppd/hpux/Sysadmin/

Best regards
Horia
Best regards from Romania,
Horia.
Steven Schweda
Honored Contributor

Re: "lsof" for active services

Did you try a Google search for, say, "lsof"?
arkie
Super Advisor

Re: "lsof" for active services

The "lsof -i|grep diagnostic" is showing no output. How can I possibly check if the diagnostic daemon is running or not?

I did issue the daemon start command
Horia Chirculescu
Honored Contributor

Re: "lsof" for active services

> The "lsof -i|grep diagnostic" is showing no output.

There is no daemon called "diagnostic". You should check for diagmon

>How can I possibly check if the diagnostic daemon is running or not?

lsof |grep diagmon

There are up to 3 (or maybe not?) daemons running (depending of the version used):

diagnostic daemon DIAGMON
diagnostic daemon DEMLOG
diagnostic daemon MEMLOGP

Do:
cat /sbin/init.d/diagnostic
and see what the script starts (look for start_msg section).


Bets regards
Horia.
Best regards from Romania,
Horia.
Prasanth Thomas
Valued Contributor

Re: "lsof" for active services

Hi Sankar,

Please run the below command and let me know the o/p

#find / -name lsof -print

#whereis lsof --> for root as well as normal user

Regards,
Prasanth Thomas.
Dennis Handly
Acclaimed Contributor

Re: "lsof" for active services

>How can I check if the diagnostic daemon is running or not?

Have you used ps(1) to look at all of the system processes?
UNIX_95=EXTENDED_PS ps -H -fu root