1834650 Members
2226 Online
110069 Solutions
New Discussion

lsof for hpux 11i

 
SOLVED
Go to solution
Stuart Abramson_2
Honored Contributor

lsof for hpux 11i

I just can't seem to find an 11i version of lsof. I have been to:

http://hpux.connect.org.uk
http://hpux.cs.utah.edu/hppd/hpux/Sysadmin/lsof-4.67/
http://ftp.cerias.purdue.edu/pub/tools/unix/sysutils/lsof/binaries/hpux/B.11.11/

and they either have 11.0 versions or 32-bit versions, or download/gunzip errors.

Can someone recommend me a site to download lsof for 11i (11.11).

I've checked the archives. That's where I got the above addresses.
11 REPLIES 11
Pete Randall
Outstanding Contributor
Solution

Re: lsof for hpux 11i

Brian Bergstrand
Honored Contributor

Re: lsof for hpux 11i

Stuart,

The porting archive gets their builds from this site (which is listed in the info section). I don't know why they don't carry the 11i version yet.

ftp://vic.cc.purdue.edu/pub/tools/unix/lsof/binaries/hpux/B.11.11/

HTH.
Mehdi_1
Regular Advisor

Re: lsof for hpux 11i

Hi

We don't have any 11.11. depot. In fact we don't have any 11.11 machine. Most of the 11.00 depot tend to work fine on 11.11 platform, But I don't think you have any luck with lsof.


Mehdi
Umapathy S
Honored Contributor

Re: lsof for hpux 11i

Stuart, the same problem again.
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=237788

Pete, the lsof from that site says this
#:/root:>file lsof_4.69
lsof_4.69: ELF-64 executable object file - PA-RISC 2.0 (LP64)

but when I run,
#:/root:>./lsof_4.69 -i tcp:1400
lsof_4.69: WARNING: compiled for HP-UX release B.11.00; this is B.11.11.
lsof_4.69: can't read proc table info

So, waiting for people to post the 11i version. Tried, to google but not able to find out.

cheers
Umapathy
Arise Awake and Stop NOT till the goal is Reached!
Steven E. Protter
Exalted Contributor

Re: lsof for hpux 11i

This may be one of those cases where the 11.00 version is just fine.

Go aheadn and give the 11.00 version a try.

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
Brian Bergstrand
Honored Contributor

Re: lsof for hpux 11i

The link I posted works fine on 11i. Know warnings about 11.00 or the proc table. Just the following about missing files which are created for you.

lsof_4.69: WARNING: access /root/.lsof_riaasrs: No such file or directory
lsof_4.69: WARNING: created device cache file: /root/.lsof_riaasrs

HTH.
Pete Randall
Outstanding Contributor

Re: lsof for hpux 11i

Umapathy,

I just emailed the poster of those files to ask if perhaps they got switched (they were just update on 14 October).


Pete



Pete
Umapathy S
Honored Contributor

Re: lsof for hpux 11i

Thanks Pete.
Brian, is there any http equivalent of that link. Or can you attach it here.

Umapathy
Arise Awake and Stop NOT till the goal is Reached!
Brian Bergstrand
Honored Contributor

Re: lsof for hpux 11i

Attached. It's not a bundle, just the binary. No man page either. But it works just great on 11i.
Stuart Abramson_2
Honored Contributor

Re: lsof for hpux 11i

Okay, here's the problem. All of these web/ftp sites have the same stuff on them. The problem is that if you download the file with Internet Explorer to your Wintel desktop, it comes down with a name like "lsof_4.69.gz". But of course, WinZip or whatever fails on Wintel.

Then you ftp it up to your UNIX server, and you think it's a gunzip file, but all of the gunzip/uncompress utilities fail, so you think there's something wrong.

Here is the fix:

mv lsof_4.69.gz lsof
chmod u+x lsof

and you're in business! It wasn't a gzip file at all.

Actually the ftp site with the name "vic" in it had the file gzipped. The others have the binary file with the "gz" prefix. If the size is 131K or 128K, it's the binary. If the size is 67K, it's gzipped.

# ll lsof
-r-xr-xr-x 1 root sys 131072 Oct 23 10:20 lsof

Thanks to everyone!

There are no notes or guides that tell you this.
Umapathy S
Honored Contributor

Re: lsof for hpux 11i

Thanks Brian. Its built for PA1.1 but it works on 11i/64.

Stuart, I feel Brian got it.

cheers
Umapathy
Arise Awake and Stop NOT till the goal is Reached!