- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Monitoring network traffic?
Operating System - OpenVMS
1753902
Members
9476
Online
108810
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Discussions
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- 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
04-29-2007 10:38 PM
04-29-2007 10:38 PM
Re: Monitoring network traffic?
Same with VMS 7.3-2 - the counts do not seem to increase for TCPIP SHO DEV BGnnn.
However the system command
$ SHOW DEVICE BGnnnn /FULL
does show the I/Os.
However the system command
$ SHOW DEVICE BGnnnn /FULL
does show the I/Os.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-23-2007 09:46 PM
05-23-2007 09:46 PM
Re: Monitoring network traffic?
Some formatting with awk.
Do
$ set term/wid=132
$ gawk :== $ sys$common:[syshlp.examples.tcpip.snmp]gawk.exe
then
$ cre a.awk
ty l.awk
BEGIN { format = "%-107s"
printf format, "Device | type | ploc | prem | host local | host remote | b
ytes rec| bytes sent| I/O rec | I/O sen |\n"
printf format, "________________________________________________________________
__________________________________________\n"}
/Device_socket/ {dev=$2; typ=$4}
/Port:/ {plocal=$(NF-1); pdist=$NF}
/Host/ {hlocal=$2; hdist=$3}
/Bytes/ {bytest=$3; bytesr=$4}
/O completed/ {iot=$(NF-1); ior=$NF ;
{printf("%-7s,%-8s,%5d,%5d,%16s,%16s,%10d,%10d,%10d,%10d\n",dev,typ,plocal,pdist
,hlocal,hdist,bytest,bytesr,iot,ior)}}
END { format = "%-107s"
printf format, "Device | type | ploc | prem | host local | host remote | b
ytes rec| bytes sent| I/O rec | I/O sen |\n"
printf format, "________________________________________________________________
__________________________________________"}
Then the command
$ pipe wr sys$output "tcpip sh dev bg/fu" | ana/sys | sea sys$pipe "Device_socket","Bytes",Service,Host,port,comp
leted | gawk/input=l.awk sys$pipe
gives some stats
You can add a sort at the end, for example
$ pipe wr sys$output "tcpip sh dev bg/fu" | ana/sys | sea sys$pipe "Device_socket"
,"Bytes",Service,Host,port,comp
leted | gawk/input=l.awk sys$pipe | sort/key=(pos:64,size:10,asc) sys$pipe sys$output
will show the bg device stats with the most bytes received at the end of the display.
replace ,asc) by ,des) in the previous command and you will have the most at the beginning of the display
To sort on the I/O received, use
/key=(pos:85,size=10)
There is a buglet at the moment with the formatting lines being both at the beginning or the end of the display after the sort.
:-(
This hack could be modified with the pid of the bg device - just f$getdvi("bg123","pid") and/or the processname on the bg device - f$getjpi(f$getdvi("bg123","pid"),"prcnam")
Have fun !
Do
$ set term/wid=132
$ gawk :== $ sys$common:[syshlp.examples.tcpip.snmp]gawk.exe
then
$ cre a.awk
ty l.awk
BEGIN { format = "%-107s"
printf format, "Device | type | ploc | prem | host local | host remote | b
ytes rec| bytes sent| I/O rec | I/O sen |\n"
printf format, "________________________________________________________________
__________________________________________\n"}
/Device_socket/ {dev=$2; typ=$4}
/Port:/ {plocal=$(NF-1); pdist=$NF}
/Host/ {hlocal=$2; hdist=$3}
/Bytes/ {bytest=$3; bytesr=$4}
/O completed/ {iot=$(NF-1); ior=$NF ;
{printf("%-7s,%-8s,%5d,%5d,%16s,%16s,%10d,%10d,%10d,%10d\n",dev,typ,plocal,pdist
,hlocal,hdist,bytest,bytesr,iot,ior)}}
END { format = "%-107s"
printf format, "Device | type | ploc | prem | host local | host remote | b
ytes rec| bytes sent| I/O rec | I/O sen |\n"
printf format, "________________________________________________________________
__________________________________________"}
Then the command
$ pipe wr sys$output "tcpip sh dev bg/fu" | ana/sys | sea sys$pipe "Device_socket","Bytes",Service,Host,port,comp
leted | gawk/input=l.awk sys$pipe
gives some stats
You can add a sort at the end, for example
$ pipe wr sys$output "tcpip sh dev bg/fu" | ana/sys | sea sys$pipe "Device_socket"
,"Bytes",Service,Host,port,comp
leted | gawk/input=l.awk sys$pipe | sort/key=(pos:64,size:10,asc) sys$pipe sys$output
will show the bg device stats with the most bytes received at the end of the display.
replace ,asc) by ,des) in the previous command and you will have the most at the beginning of the display
To sort on the I/O received, use
/key=(pos:85,size=10)
There is a buglet at the moment with the formatting lines being both at the beginning or the end of the display after the sort.
:-(
This hack could be modified with the pid of the bg device - just f$getdvi("bg123","pid") and/or the processname on the bg device - f$getjpi(f$getdvi("bg123","pid"),"prcnam")
Have fun !
- « Previous
- Next »
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP