- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Tracking TCPIP SHOW DEVICE_SOCKETS to specific ses...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-30-2003 12:22 AM
тАО09-30-2003 12:22 AM
The problem is that TNA devices have owners. BG devices, despite being active devices, do not. (Do a SHOW DEVICE/FULL TNA and compare it to a SHOW DEVICE/FULL BG to see the differences between the two.)
Short of writing privileged code to track an address chain through the device database, a prospect that doesn't enthrall me, is there a command that lets me track this linkage from a command-line prompt?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-30-2003 01:02 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-30-2003 02:28 AM
тАО09-30-2003 02:28 AM
Re: Tracking TCPIP SHOW DEVICE_SOCKETS to specific session
$ SHOW DEV/FULL TNA - gives owning process data (name, Id, account) for each TNA device.
$ SHOW PROCESS/ID=
This will give you terminalnumber, remote host and portnumber for this process
$ TCPIP SHO DEV/FULL
search this list for remote host and port - and you'll have the BG device as well.
See attachment for an example.
OpenVMS Developer & System Manager
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-30-2003 02:56 AM
тАО09-30-2003 02:56 AM
Re: Tracking TCPIP SHOW DEVICE_SOCKETS to specific session
$ SAY="WRITE SYS$OUTPUT"
$ A = 0
$MLOOP:
$ PN=F$PID(A)
$ IF PN .EQS. "" THEN GOTO END_LOOP
$ PPID :== 'PN'
$! Only interactive user
$ MODE=F$GETJPI(PPID,"MODE")
$ IF MODE.NES."INTERACTIVE" THEN GOTO MLOOP
$! Only telnet session
$ VT=F$GETJPI(PPID,"TERMINAL")
$ IF VT.EQS."" THEN GOTO MLOOP
$ IF F$EXTR(0,3,VT).NES."TNA" THEN GOTO MLOP
$ REMOTE=F$GETDVI(VT,"TT_ACCPORNAM")
$ REM_IP=F$ELEM(1," ",F$EDIT -(REMOTE,"COMPRESS"))
$! Now display Proc.ID, Terminal and Remote data
$ SAY PPID," ",VT," ",REMOTE," ",REM_IP,"!"
$ GOTO MLOOP
$END_LOOP:
$ EXIT
This is only an example. This command procedure don't work id you have define PC as host (TCPIP DEF HOST ...)
Bye
Antoniov
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-30-2003 04:46 AM
тАО09-30-2003 04:46 AM
Re: Tracking TCPIP SHOW DEVICE_SOCKETS to specific session
http://dcl.openvms.org/stories.php?story=03/06/03/0226504
Purely Personal Opinion
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-13-2003 06:11 PM
тАО11-13-2003 06:11 PM
Re: Tracking TCPIP SHOW DEVICE_SOCKETS to specific session
it will work better with
$ IF F$EXTR(0,3,VT).NES."TNA" THEN GOTO MLOOP
and
$ REM_IP=F$ELEM(1," ",F$EDIT(REMOTE,"COMPRESS"))
:P
just my 2 cents