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
тАО09-25-2005 09:41 PM
тАО09-25-2005 09:41 PM
netstat
- Tags:
- netstat
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-25-2005 09:48 PM
тАО09-25-2005 09:48 PM
Re: netstat
ftp://ftp.cs-ipv6.lancs.ac.uk/pub/Code/Linux/Net_Tools/
Ref: http://www.uwsg.iu.edu/hypermail/linux/net/9707.1/0128.html
hth.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-25-2005 09:53 PM
тАО09-25-2005 09:53 PM
Re: netstat
You can combine c coding, netstat utility and scripting to suite requirement. It is enough to use netstat + scripting simply.
If you have a great time in speedy IT world then start to work. ;)
hth.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-26-2005 07:58 AM
тАО09-26-2005 07:58 AM
Re: netstat
I don't know if there is a specific function available to read the same data as the netstat command in "C". Since there are low-level kernel calls going on to get this data, I'd imagine that you are out of luck without access to the source.
HOWEVER, if you want to be slick within your "C" program, instead of writing the output of netstat to a temp file and then reading the temp file back in, you might want to explore "popen()". This fuction will run a shell command for you, and give you a file descriptor, from which you can read as if you were reading from a file. Check out the man page for popen (man 3 popen) for more info.
-- Tom
- Tags:
- popen
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-27-2005 04:10 AM
тАО09-27-2005 04:10 AM
Re: netstat
The interface(s) used by the HP-UX netstat command are not documented.
There may be some statistics you can retrieve via pstat() calls on later versions of HP-UX.
- Tags:
- pstat
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-27-2005 04:21 AM
тАО09-27-2005 04:21 AM
Re: netstat
I'd consider crafting a perl script that opens a pipe to 'netstat', reads that output and parses and outputs as it goes. This avoids the (temporary) file and brings you to the key element of your objective -- parsing and reporting the custom data you want.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-27-2005 09:32 PM
тАО09-27-2005 09:32 PM