- Community Home
- >
- Servers and Operating Systems
- >
- Legacy
- >
- Operating System - Tru64 Unix
- >
- Re: How to clear counters on netstat
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
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
тАО12-11-2007 10:02 PM
тАО12-11-2007 10:02 PM
How to clear counters on netstat
Just recently checking the collisions on my unix machine for me to adjust the negotiation. How can i clear the counters i see using the netstat -in command.
tnx
jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-11-2007 11:05 PM
тАО12-11-2007 11:05 PM
Re: How to clear counters on netstat
This would set the ln0 interface counters to zero.
BR,
Kapil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-11-2007 11:07 PM
тАО12-11-2007 11:07 PM
Re: How to clear counters on netstat
RTFM
:)
BR,
Kapil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-11-2007 11:48 PM
тАО12-11-2007 11:48 PM
Re: How to clear counters on netstat
It doesnt work =), i used this command netstat -I ee0 -z
tia
jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-12-2007 12:04 AM
тАО12-12-2007 12:04 AM
Re: How to clear counters on netstat
have you seen
man netstat
6. To set the ln0 interface counters to zero, enter:
# netstat -Iln0 -z
I am pasting lines from man page.
I do not system to check if it is working or not.But I suppose it should.
BR,
Kapil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-12-2007 12:08 AM
тАО12-12-2007 12:08 AM
Re: How to clear counters on netstat
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-12-2007 02:09 AM
тАО12-12-2007 02:09 AM
Re: How to clear counters on netstat
anyways whats the error it through.
Kapil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-12-2007 04:09 AM
тАО12-12-2007 04:09 AM
Re: How to clear counters on netstat
According to the 5.1 netstat man page here:
http://h30097.www3.hp.com/docs/base_doc/DOCUMENTATION/V51_HTML/MAN/MAN1/0253____.HTM
The command to reset interface ee0 would be:
# netstat -z -I ee0
Although the example (given earlier) does have the arguments the -z and -I arguments the other way round...
When it "doesn't work" what does it do ?
Cheers,
Rob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-17-2007 05:57 PM
тАО12-17-2007 05:57 PM
Re: How to clear counters on netstat
I want to clear the counters on the Opkts, Oerrs and Coll when using the netstat -ni. Using that command doesnt zero in the counters.
tnx in advance.
jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-17-2007 06:54 PM
тАО12-17-2007 06:54 PM
Re: How to clear counters on netstat
> Oerrs and Coll when using the netstat -ni.
> Using that command doesnt zero in the
> counters.
Apparently (and consistent with "man
netstat"), "-z" clears the counters in the
"-s" report (which it also shows):
urtx# netstat -I tu0 -z
tu0 Ethernet counters at Tue Dec 11 03:28:03 2007
388 seconds since last zeroed
33009 bytes received
17839 bytes sent
458 data blocks received
65 data blocks sent
28785 multicast bytes received
392 multicast blocks received
1095 multicast bytes sent
9 multicast blocks sent
0 blocks sent, initially deferred
0 blocks sent, single collision
0 blocks sent, multiple collisions
0 send failures
0 receive failures
urtx# netstat -I tu0 -s
tu0 Ethernet counters at Tue Dec 11 03:28:07 2007
4 seconds since last zeroed
896 bytes received
994 bytes sent
14 data blocks received
6 data blocks sent
192 multicast bytes received
3 multicast blocks received
0 multicast bytes sent
0 multicast blocks sent
0 blocks sent, initially deferred
0 blocks sent, single collision
0 blocks sent, multiple collisions
0 send failures
0 receive failures
It seems to have no effect on the counts
shown in the plain "-i" (or "-I") report.
If there's a simple, convenient way to do
what you want, I don't know about it.
Around here (V5.1B-4):
urtx# sizer -v
HP Tru64 UNIX V5.1B (Rev. 2650); Mon Feb 19 11:57:07 CST 2007