Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

equivalent of netstat -an on Guardian?

693 views
Skip to first unread message

konrads....@gmail.com

unread,
Feb 16, 2016, 1:02:39 PM2/16/16
to
Hello,

How can I tie each listening tcpip socket to the corresponding program on Guardian? Also, if a program is served via telnet server, how to retrieve which program will actually be ran when a user connects to the telnet port?

Thanks!

Mike

unread,
Feb 16, 2016, 1:52:42 PM2/16/16
to
Hi

For your first question, use SCF LISTOPENS on your TCP/IP process. For the sesond, you need to list the services available within TELSERV. Examples as below:

1> scf listopens proc $ztcp1
SCF - T9082G02 - (06JAN06) (31OCT05) - 02/16/2016 18:42:57 System \NONAME
(C) 1986 Tandem (C) 2006 Hewlett Packard Development Company, L.P.

TCPIP Listopens PROCESS \NONAME.$ZTCP1

Openers PPID BPID PLFN BLFN Protocol Lport
$ZPRP1 1,24 3 0 TCP 1089
$ZPRP1 1,24 4 0 TCP 7773
$ZPRP1 1,24 5 0 TCP 4561
$ZPRP1 1,24 6 0 TCP echo
$ZPRP1 1,24 7 0 TCP finger
$ZPRP1 1,24 8 0 TCP ftp
$ZTNP1 1,326 2 0 TCP telnet
$ZCVP1 0,348 3 0 UDP 797
$ZPMP1 1,330 3 0 UDP 111
$ZPMP1 1,330 4 0 TCP 111
$ZOSM 0,346 5 0 TCP 9990
$ZOEV 0,343 5 0 TCP 9991
$ZTSMS 0,310 6 0 UDP 1025
$ZTSMS 0,310 7 0 UDP 1026
$ZTSMS 0,310 8 0 UDP 161
$ZCMOM 0,345 8 0 TCP 5988
$ZTSM 0,339 13 0 TCP 980
$ZBKP1 1,303 2 0 TCP 962
$ZNET 0,16 2 0 #ZSPI *

4> scf info service $ztnp1.*
$SYSTEM STARTUP 4..
SCF - T9082G02 - (06JAN06) (31OCT05) - 02/16/2016 18:50:04 System \EVEREST
(C) 1986 Tandem (C) 2006 Hewlett Packard Development Company, L.P.

TELSERV Info SERVICE \EVEREST.$ZTNP1.*

Name *Type *Subtype *Access *Display *Program
VIEWSYS CONVERSATION DYNAMIC ALL OFF $SYSTEM.SYSTEM.VIEWSYS
TACL CONVERSATION DYNAMIC ALL ON $SYSTEM.SYSTEM.TACL
ZVTL VTL STATIC N/A OFF N/A
ZTELNET CONVERSATION DYNAMIC N/A OFF N/A
ZBLOCK BLOCK STATIC N/A OFF N/A
ZCONV CONVERSATION STATIC N/A OFF N/A
ZPRINT PRINT STATIC N/A OFF N/A
ZSPI SPI STATIC N/A OFF N/A

Note that most of the Telserv processes are "standard", the only ones being displayed when a user connects are TACL and EXIT (not shown in list). All bar VIEWSYS are standard on all systems.

Regards

Mike

wbreidbach

unread,
Feb 17, 2016, 3:42:28 AM2/17/16
to
I prefer using "Listopens process $xxx,detail":
TCPIP Detailed Listopens PROCESS \BVTEST2.$ZTCP1

Opener $ZTNP1 Ppid 1,357 Bpid Plfn 2 Blfn 0
Proto TCP State LISTEN SendQ 0 RecvQ 0
Laddr 0.0.0.0 Lport telnet
Faddr 0.0.0.0 Fport *

Opener $ZPRP1 Ppid 1,356 Bpid Plfn 4 Blfn 0
Proto TCP State LISTEN SendQ 0 RecvQ 0
Laddr 0.0.0.0 Lport 6558
Faddr 0.0.0.0 Fport *

Opener $ZPRP1 Ppid 1,356 Bpid Plfn 5 Blfn 0
Proto TCP State LISTEN SendQ 0 RecvQ 0
Laddr 0.0.0.0 Lport 6557
Faddr 0.0.0.0 Fport *

Opener $ZPRP1 Ppid 1,356 Bpid Plfn 6 Blfn 0
Proto TCP State LISTEN SendQ 0 RecvQ 0
Laddr 0.0.0.0 Lport 6556
Faddr 0.0.0.0 Fport *

Opener $ZPRP1 Ppid 1,356 Bpid Plfn 7 Blfn 0
Proto TCP State LISTEN SendQ 0 RecvQ 0
Laddr 0.0.0.0 Lport 1025
Faddr 0.0.0.0 Fport *

That gives you much more information.
Please regard that this is related to tcp/ip processes running the TCPIP program, if your system is using the tcp/ip v6 product, this command works but the output might not be complete. in that case use
listopens mon $zztcp.*,detail

Concerning TELNET:
There are the commands
info window $ztnp1.*
and
status window $ztnp1.*
giving the actual status of existing sessions including IP-adresses.

comforte...@gmail.com

unread,
Feb 18, 2016, 2:20:43 AM2/18/16
to
On Tuesday, February 16, 2016 at 7:02:39 PM UTC+1, konrads....@gmail.com wrote:
> Hello,
>
> How can I tie each listening tcpip socket to the corresponding program on Guardian?
>

Another answer on the first question ... this one is a product pitch for a product we sell.

The answers given are all correct, however it involves several steps, somewhat along:

- do the right command in SCF
- browse through a long list of output
- finally map the process name to the object file via yet another command
- note: the syntax will differ a lot if you are using the very latest IP Stacks which run in the CLIMs
- all the above is very specific to HPE NonStop

The comForte product TOP allows you to browse all IP stacks, pick the IP stack of your choice, right-click and do a "show sockets". This gives you a list of all sockets in all states, mapped to the process name, object file, user the process runs under etc. To me, this is one of the most time-saving features of the product, even for "old-schoolers".

If interested, please see www.comforte.com/top

Thomas Burg
http://de.linkedin.com/in/thomasburg66

konrads....@gmail.com

unread,
Feb 18, 2016, 7:57:41 AM2/18/16
to
On Tuesday, February 16, 2016 at 6:52:42 PM UTC, Mike wrote:
> On Tuesday, 16 February 2016 18:02:39 UTC, konrads....@gmail.com wrote:
> > Hello,
> >
> > How can I tie each listening tcpip socket to the corresponding program on Guardian? Also, if a program is served via telnet server, how to retrieve which program will actually be ran when a user connects to the telnet port?
> >
> > Thanks!
>
> Hi
>
> For your first question, use SCF LISTOPENS on your TCP/IP process. For the sesond, you need to list the services available within TELSERV. Examples as below:
>
> 1> scf listopens proc $ztcp1

Mike - I did that and listed other ztcp processes but could not account for all sockets that way, for example, tftp service was running but UDP port 69 wasn't there. Is that because UDP programs have their own processes?

0 new messages