%META:TOPICINFO{author="ChrisBartram" date="1219270302" format="1.1" version="1.1"}% %META:TOPICPARENT{name="NetworkingHP3000s"}% ---++ [[Hp3000SocketConnections][How to display list of ports listening on the HP3000]] :showconn.prvxl.telesup ;system JOBNUM INTRO DATE AND TIME LDEV USERNAME REMOTE ADDRESS RPORT LPORT FLAGS PIN(PROGRAM) system process sockrg spl-nu 63(SOCKREG.NET.SYS) system process vtr stl-nt 41(DSDAD.NET.SYS) rpm stl-nt 41(DSDAD.NET.SYS) vt stl-nt 41(DSDAD.NET.SYS) ptop stl-nt 41(DSDAD.NET.SYS) vta stl-nt 41(DSDAD.NET.SYS) hpip stl-nt 41(DSDAD.NET.SYS) rfa stl-nt 41(DSDAD.NET.SYS) nsstat stl-nt 41(DSDAD.NET.SYS) nft stl-nt 41(DSDAD.NET.SYS) loopbk stl-nt 41(DSDAD.NET.SYS) #S9 WED AUG 20 2008 15:49 3 JAMESH,MANAGER.SYS,WORK 16.212.216.119 2682 vta utcind 95(VTSERVER.NET.SYS) #J9 MON AUG 11 2008 16:05 10 JINETD,MANAGER.SYS,WORK discrd atl-bt 74(INETD.NET.SYS) telnet atl-bt 74(INETD.NET.SYS) ftpcmd atl-bt 74(INETD.NET.SYS) 901 atl-bt 74(INETD.NET.SYS) #J10 MON AUG 11 2008 16:05 10 JSYSLOGD,MGR.SYSLOG,PUB 127.0.0.1 62176 syslog aud-bb 77(SYSLOGD.PUB.SYSLOG) #J11 MON AUG 11 2008 16:05 10 JDAEMON,SERVER.SENDMAIL,PUB smtp utl-bt 81(SENDMAIL.A0200.SENDMAIL) 127.0.0.1 syslog 61827 uud-bb 81(SENDMAIL.A0200.SENDMAIL) 587 utl-bt 81(SENDMAIL.A0200.SENDMAIL) #J12 MON AUG 11 2008 16:05 10 JHTTPD,MGR.APACHE,PUB 443 utl-bt 87(HTTPD.A0400.APACHE) 80 utl-bt 87(HTTPD.A0400.APACHE) 443 utl-bt 70(HTTPD.A0400.APACHE) 80 utl-bt 70(HTTPD.A0400.APACHE) 443 utl-bt 65(HTTPD.A0400.APACHE) 80 utl-bt 65(HTTPD.A0400.APACHE) 443 utl-bt 53(HTTPD.A0400.APACHE) 80 utl-bt 53(HTTPD.A0400.APACHE) 443 utl-bt 85(HTTPD.A0400.APACHE) 80 utl-bt 85(HTTPD.A0400.APACHE) 443 utl-bt 55(HTTPD.A0400.APACHE) 80 utl-bt 55(HTTPD.A0400.APACHE) detached process 15.4.32.99 4222 snmp dud-nb 59(SNMP.NET.SYS) snmptr dud-nb 59(SNMP.NET.SYS) 61809 utl-bt 83(..) 1508 utl-bt 83(..) 61809 utl-bt 88(..) 61894 utl-bt 57(..) 61809 utl-bt 57(..) 61895 utl-bt 51(..) 61809 utl-bt 51(..) Total processes checked: 88 Processes with sockets : 17 Total sockets open : 41 --[[JamesHofmeister]] sockinfo with option C shows "call" or listening ports/sockets. Those waiting for an incoming connection. showconn, as James points out, shows a nice list of connected ports. sockinfo with the G option, shows processes that have or had sockets open. But you must select the process (P command) to see the sockets for that process. No nice list of all sockets in use. Example, my DSDAD process (started with NSCONTROL START; no job or session with it) looks like this after specifying my pin 41. PROCESS DISPLAY Pin=41 Lsi=$180.000003a0 Dest=0 ($.00000000) 3:52 pm < (system process) / dsdad.net.sys > Desc Type Prot Addr Num out Num in IO Flags ------------------------------------------------------------------------------- 10* call tcp 5760 0 0 i ns,iw,no,ni,pr 11* call tcp 1570.arpavt 0 0 i ns,iw,no,ni,pr 12* call tcp 7490 0 0 i ns,iw,no,ni,pr 13* call tcp 7489.iasql 0 0 i ns,iw,no,ni,pr 15* call tcp 2564.nstat 0 0 i ns,iw,no,ni,pr 16* call tcp 5710.hcs 0 0 i ns,iw,no,ni,pr 17* call tcp 5696.pds 0 0 i ns,iw,no,ni,pr 18* call tcp 1260.nloop 0 0 i ns,iw,no,ni,pr 20* call tcp 1542.rpm 0 0 i ns,iw,no,ni,pr 22* call tcp 1540.ptop 0 0 i ns,iw,no,ni,pr 24* call tcp 2560.rfdba 0 0 i ns,iw,no,ni,pr 26* call tcp 1536.nft 0 0 i ns,iw,no,ni,pr 28* call tcp 1538.rvt 0 0 i ns,iw,no,ni,pr 30* call tcp 1537.vt 0 0 i ns,iw,no,ni,pr Here is WTRSH with a Whisper IDE connection, as well as listening ports. PROCESS DISPLAY Pin=76 Lsi=$180.000005d0 Dest=0 ($.00000000) 3:56 pm < #s11 / mgr.kevenm / wtrsh.pub.wtrsh > Desc Type Prot Addr Num out Num in IO Flags ------------------------------------------------------------------------------- 13* call tcp 54372 0 0 bs,sl,aa 14* cnct tcp 54372 356 168 bs,sl,ch 15* call tcp 54373 0 0 bs,sl,aa ps: once on a process screen (P command), use the S command to see socket specific details. --[[KevenMiller]] -- Main.ChrisBartram - 20 Aug 2008