- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: how to clear 'netstat -p tcp' stats
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
тАО08-17-2005 07:17 AM
тАО08-17-2005 07:17 AM
how to clear 'netstat -p tcp' stats
netstat -p tcp
?
There are a lot of timeouts, queue fulls, etc, but the server has been up for 9 days.
Also, don't want to reboot (production).
jaguar ## netstat -p tcp
... tcp:
... 247891245 packets sent
... 220547002 data packets (739136950 bytes)
... 7851 data packets (7983180 bytes) retransmitted
... 27328851 ack-only packets (4308486 delayed)
... 45 URG only packets
... 8262 window probe packets
... 13525 window update packets
... 5049605 control packets
... 257420195 packets received
... 195107918 acks (for 733873474 bytes)
... 2366455 duplicate acks
... 0 acks for unsent data
... 226476131 packets (4180944563 bytes) received in-sequence
... 0 completely duplicate packets (0 bytes)
... 169 packets with some dup, data (85007 bytes duped)
... 2382 out of order packets (4622967 bytes)
... 0 packets (0 bytes) of data after window
... 26278 window probes
... 57988772 window update packets
... 26423 packets received after close
... 2 segments discarded for bad checksum
... 0 bad TCP segments dropped due to state change
... 928235 connection requests
... 1658802 connection accepts
... 2587037 connections established (including accepts)
... 2814064 connections closed (including 227338 drops)
... 199745 embryonic connections dropped
... 192710322 segments updated rtt (of 192710322 attempts)
... 13234 retransmit timeouts
... 225 connections dropped by rexmit timeout
... 8262 persist timeouts
... 35807 keepalive timeouts
... 35422 keepalive probes sent
... 0 connections dropped by keepalive
... 10114 connect requests dropped due to full queue
... 27551 connect requests dropped due to no listener
tks
bv
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-17-2005 07:18 AM
тАО08-17-2005 07:18 AM
Re: how to clear 'netstat -p tcp' stats
hpux 11.00
tks
bv
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-17-2005 01:51 PM
тАО08-17-2005 01:51 PM
Re: how to clear 'netstat -p tcp' stats
I think the only way out is a reboot.
DP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-17-2005 10:11 PM
тАО08-17-2005 10:11 PM
Re: how to clear 'netstat -p tcp' stats
It's looking that way.
But I'd think that at least they would be held in kernel mem counters somewhere that an 'adb' could clear.
bv
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-17-2005 11:14 PM
тАО08-17-2005 11:14 PM
Re: how to clear 'netstat -p tcp' stats
You can trace the services used by ports by utility "lsof" and you can try to release the ports by clearing respective process/service.
lsof can be find at
http://hpux.connect.org.uk
Cheers,
Rajesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-18-2005 01:21 AM
тАО08-18-2005 01:21 AM
Re: how to clear 'netstat -p tcp' stats
Try with lanadmin menu driven command for each lan interface. you need nmid to this and lanscan command will give this.
-USA...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-18-2005 01:27 AM
тАО08-18-2005 01:27 AM
Re: how to clear 'netstat -p tcp' stats
-USA..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-18-2005 01:27 AM
тАО08-18-2005 01:27 AM
Re: how to clear 'netstat -p tcp' stats
You could try a ifconfig down / up but I don't think anything short of deleting the interface route will be able to flush the counters, and I don't think that's possible anywhere other than Cisco's IOS :)
May I ask what You're looking to achieve?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-18-2005 12:24 PM
тАО08-18-2005 12:24 PM
Re: how to clear 'netstat -p tcp' stats
I'm familiar with 'lanadmin' and 'lsof'
I just wanted to monitor the drops during a period of heavy load and clearing the counters would make it easier to see the trend with a simple 'while netstat ...' loop.
I didn't want to code a script to take deltas of consecutive snapshots, which would be easy enough, but I'm just feeling lazy right now ;>).
It's no big deal -- I can live without it and probably will **not** code the script.
bv