Operating System - OpenVMS
cancel
Showing results for 
Search instead for 
Did you mean: 

Wanna know the application which is using specific port no.

 
Neelmani Pandey
Frequent Advisor

Wanna know the application which is using specific port no.

Hi All,

Could anyone help me in identifying the application which is using a specific portno.

Thanks in Advance
11 REPLIES 11
Steven Schweda
Honored Contributor

Re: Wanna know the application which is using specific port no.

Psychic hotline?

What's your OS? IP package? (You are
talking about an IP port, right?)

Start with "tcpip show device"?
Karl Rohwedder
Honored Contributor

Re: Wanna know the application which is using specific port no.

Are you talking about TCPIP port numbers?

The you may use:

$ TCPIP SHO DEVICE /PORT=nnn
e.g.
$ TCPIP SHO DEV /PORT=1571

Port Remote
Device_socket Type Local Remote Service Host

bg1201 STREAM 1571 0 *

and

$ SHO DEV BG1201 /FU

Device BG1201:, device type unknown, is online, mounted, record-oriented device,
network device, mailbox device.

Error count 0 Operations completed 2
Owner process "RMU_DISP00873" Owner UIC [DEFAULT,SYSTEM]
Owner process ID 2020029A Dev Prot S:RWPL,O:RWPL,G:RWPL,W:RWPL
Reference count 1 Default buffer size 256

regards Kalle
Neelmani Pandey
Frequent Advisor

Re: Wanna know the application which is using specific port no.

Hi,

Details are as

OpenVMS V7.3-2 , TCPIP V5.4-15.

I just need to know the port being mapped or being used by which application or service on the system.

Netstat & bg1201 STREAM will only tell about the connectivity they didnt give any info about the application.

So Is their any method in VMS.

Thanks for an immediate reply
labadie_1
Honored Contributor

Re: Wanna know the application which is using specific port no.

Hello

There is a procedure show_bg at
http://dcl.openvms.org/stories.php?story=03/06/03/0226504

which shows all IP links, with the process ID, the process name, the port number...

It seems to do what you want.
Wim Van den Wyngaert
Honored Contributor

Re: Wanna know the application which is using specific port no.

Or a little longer in enclosure. Will also display program name and traffic load.

Wim
Wim
Neelmani Pandey
Frequent Advisor

Re: Wanna know the application which is using specific port no.

This Porcedure helps in indentifying the common ports.
what I require I just wanna trace the application using the port no.

labadie_1
Honored Contributor

Re: Wanna know the application which is using specific port no.

If the display is on more than a page, and if the name of the procedure is bg1.com, the following command will display the next page only when you hit the RETURN key

$ pipe @ bg1.com | type/pa sys$pipe

Have fun with pipe on Vms :-)
labadie_1
Honored Contributor

Re: Wanna know the application which is using specific port no.

Wim, your procedure on my Alpha (DS10, Vms 7.3-2, Tcpip 5.4 Eco 5) gives wrong info for the image name, with always the character @, for example
23@telnet
or
515@TCPIP$INETACP
or
5000@CFTTCPS

Dcl is not very good at parsing, Perl, Python or awk are better suited for such a task IMHO.

Python can be very easily installed with the LD images, you can install Python just for your process, or for everybody
Search for "Process installation" at
http://vmspython.dyndns.org/DownloadAndInstallationPython
Neelmani Pandey
Frequent Advisor

Re: Wanna know the application which is using specific port no.

Could anyone help me that Is there any way to find ..?
Wim Van den Wyngaert
Honored Contributor

Re: Wanna know the application which is using specific port no.

It's the port number @ program name.
But when you have a listener it's or inetacp that's listening or an application program.

Without script :
ucx sho dev /port=xx
show dev bgxx/fu
show proc/id=xx/con (to get the program name)

Wim
Wim
Neelmani Pandey
Frequent Advisor

Re: Wanna know the application which is using specific port no.

Thanks WIM I got the answer.

Thanks ALL