Operating System - HP-UX
1847805 Members
2737 Online
104021 Solutions
New Discussion

How to find the Port number in HP-UX11i

 
SOLVED
Go to solution
guru_6
Advisor

How to find the Port number in HP-UX11i

Hi,

How we can find out the port number for used for different services.
There is one utility losf. where to down load it and if it ask for user name & password, what should I give.
11 REPLIES 11
Lee Huei
Regular Advisor

Re: How to find the Port number in HP-UX11i

hi,
what is your OS version ?
Lee Huei
Regular Advisor

Re: How to find the Port number in HP-UX11i

Hi,

sorry , i didn't catch the title, the OS is hpus 11i.

i have attached the tool lsof

To check ports used in hpux
/etc/services
Sridhar Bhaskarla
Honored Contributor

Re: How to find the Port number in HP-UX11i

Hi John,

You can get it from here.

http://the-other.wiretapped.net/security/host-security/lsof/binaries/hpux/B.11.11/

It doesn't ask for any password.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
guru_6
Advisor

Re: How to find the Port number in HP-UX11i

Hi Sri,
I have downloaded the file and done the following steps.. but not getting that how to install it...
1>using ftp i copied to /tmp/lsof/ folder
2>gunzip lsof_4.72.gz
3>lsof_4.72

now how to install the lsof_4.72 file.


Fred Ruffet
Honored Contributor

Re: How to find the Port number in HP-UX11i

lsof is given as a tar containing the binaries. You must untar it to a convenient place, and set your PATH to match the binary.

Regards,

Fred
--

"Reality is just a point of view." (P. K. D.)
Ravi_8
Honored Contributor

Re: How to find the Port number in HP-UX11i

Hi,

lsof is available on
http://the-other.wiretapped.net/security/host-security/lsof/binaries/hpux/B.11.11/

after downloading, you need to install the product(using swinstall).
then
#cd /opt/lsof/bin

execute the executable
never give up
guru_6
Advisor

Re: How to find the Port number in HP-UX11i

Hi evrybody,

The downloded file name is lsof_4.72.gz.

then I put it to the /tmp/lsof folder

then run gunzip lsof_.4.72.gz

then one file creates named lsof_4.72

after this not gettinf that how to use it or install it.
H.Merijn Brand (procura
Honored Contributor
Solution

Re: How to find the Port number in HP-UX11i

# file lsof_4.72

I bet it's an executable

# mv lsof_4.72 /usr/local/bin/lsof
# lsof -?
# lsof -p $$
# lsof -i ...

-i i select by IPv[46] address: [46][proto][@host|addr][:svc_list|port_list]

Enjoy, Have FUN! H.Merijn
Enjoy, Have FUN! H.Merijn
Muthukumar_5
Honored Contributor

Re: How to find the Port number in HP-UX11i

Use
http://gatekeep.cs.utah.edu/hppd/hpux/Sysadmin/lsof-4.72/

to get binary depot of lsof there.

gunzip
cd /
swlist -s /depot bianry file/
swinstall -s /depot binary file/

IT will make you lsof there.

HTH.
Easy to suggest when don't know about the problem!
Stefan Schulz
Honored Contributor

Re: How to find the Port number in HP-UX11i

Hi,

do a file lsof_4.72. You should be tholt wether this is a binary or an tar file.

if its an tar file just do an tar -tvf lsof_4.72 to see the contents or an tar -xvf lsof_4.72 to extract.

If its an binary just move the file to /opt/lsof/bin/lsof and execute.

Hope this helps

Regards Stefan
No Mouse found. System halted. Press Mousebutton to continue.
Bharat Katkar
Honored Contributor

Re: How to find the Port number in HP-UX11i

Hi,
# netstat -a

Is this what you are looking for!!
Regards,
You need to know a lot to actually know how little you know