Operating System - HP-UX
1821059 Members
2512 Online
109631 Solutions
New Discussion юеВ

syntax of netstat to check collisions

 
SOLVED
Go to solution
Richard Darling
Trusted Contributor

syntax of netstat to check collisions

I can't seem to locate the syntax for netstat to check collisions - I thought it was
# netstat -i

but I am not getting the collisions

6 REPLIES 6
James R. Ferguson
Acclaimed Contributor
Solution

Re: syntax of netstat to check collisions

Richard:

Try 'lanadmin'. Choose "lan" -> "display" and look on the second screen.

...JRF...
Lasse Knudsen
Esteemed Contributor

Re: syntax of netstat to check collisions

Hi Richard,

'netstat' has changed in 11.00 (not to the better :-( - go for James' solution.
In a world without fences - who needs Gates ?
Richard Darling
Trusted Contributor

Re: syntax of netstat to check collisions

Allen,
In addition to my new L1000 I still have my g40 running 10.20...your'e right. It is too bad that the format was changed. Our vendor is telling me that I am switching to the alternate character set due to network errors, and in the 10.20 version the netstat -i gave a nice output which was easy to copy and paste into a word processor and build a history.
James R. Ferguson
Acclaimed Contributor

Re: syntax of netstat to check collisions

Richard:

You might want to compare the man pages for 'netstat' on 10.20 vs 11.0. See also this thread on the demise of the '-m' option:

http://my1.itrc.hp.com/cm/QuestionAnswer/1,1150,0xeceef841489fd4118fef0090279cd0f9,00.html

...JRF...
Alan Riggs
Honored Contributor

Re: syntax of netstat to check collisions

This is tragic.

I wonder why in the world HP would remove functionality from such a basic command?
Jim Welch
Respected Contributor

Re: syntax of netstat to check collisions

try something like:

#!/usr/bin/ksh
#usage: neterrors.sh

(( col = 0 ))
for i in `echo lan ppa $1 display quit | /usr/sbin/lanadmin -t 2>/dev/null | gre
p -i collision | cut -d= -f2`
do
(( col = col + i ))
done

(( err = 0 ))
for j in `echo lan ppa $1 display quit | /usr/sbin/lanadmin -t 2>/dev/null | gre
p -i error | cut -d= -f2`
do
(( err = err + j ))
done

echo Collisions $col Errors $err
Any sufficiently advanced technology is indistinguishable from Magic - Arthur C. Clarke