Operating System - HP-UX
1846210 Members
4546 Online
110255 Solutions
New Discussion

lsof /dev/kmem-based patch for HPUX 11.0

 
SOLVED
Go to solution
Steve Bonds
Trusted Contributor

lsof /dev/kmem-based patch for HPUX 11.0

After a lengthy discussion with the very-helpful author of lsof, Vic Abell (abe@purdue.edu), we discovered a couple of problems in lsof 4.70. Due to a lack of HPUX 11.0 hosts on which to test, Vic has a hard time keeping the support for this version current with changes HP makes.

If you have an HPUX host he could use for occassional testing that accepts SSH from the Internet, he would very much like to hear from you!

The problems we found are:

The product "JournalFS" must be installed or lsof will complain about vxfs being an unknown filesystem. This is installed by default, but for people building minimal/secure systems it might not be present.

A recent Q4 patch changed it so that it requires a core file present in order to start. This means lsof falsely determines that the ipc_s structures are not present, which breaks its ability to resolve IP addresses and TCP ports.

A patch to fix that problem is attached, which should make it into lsof 4.71. This can also be worked around by manually setting the environment variable HPUX_IPC_S_PATCH=2 before compiling.

Oh, and 10 points to anyone who offers to help Vic. ;-)

-- Steve
2 REPLIES 2
Steven E. Protter
Exalted Contributor
Solution

Re: lsof /dev/kmem-based patch for HPUX 11.0

I may have the perfect system to test on.

Its a D320 32 Bit running 11i.

I need direct contact with the tester to find out what his provisioning requirements are. Disk space is in short supply.

sprotter@investmenttool.com

He should put his name on the subject line along with lsof test.

I have some issues with lsof on the depot install that I'd like to cummunicate as well.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Steve Bonds
Trusted Contributor

Re: lsof /dev/kmem-based patch for HPUX 11.0

I'll pass along your name, but Vic needs an HP-UX 11.0 host (probably in addition to an 11i host.)

The 11.0 port of lsof is very hard to maintain since the kernel structures change from patch to patch and HP does not update (or in many cases even supply) the corresponding include files. This makes each iteration a nice reverse engineering exercise.

-- Steve