HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How to get values of all TCP parameters on HP-UX.
Operating System - HP-UX
1827456
Members
5420
Online
109965
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
Forums
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
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
01-20-2005 03:07 AM
01-20-2005 03:07 AM
I know how to get the current values of single TCP parameters individually?
ndd -get /dev/tcp tcp_keepalive_interval
But how to get the values of all TCP parameters, instead of querying each individually.
Thanks,
Gulam.
ndd -get /dev/tcp tcp_keepalive_interval
But how to get the values of all TCP parameters, instead of querying each individually.
Thanks,
Gulam.
Everyday Learning.
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-20-2005 03:13 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-20-2005 03:25 AM
01-20-2005 03:25 AM
Re: How to get values of all TCP parameters on HP-UX.
Not much different from Henk's solution, but anyway
for parm in $(ndd -h sup|awk '$1~/^tcp/{print$1}');do echo $parm:; ndd -get /dev/tcp $parm;done
for parm in $(ndd -h sup|awk '$1~/^tcp/{print$1}');do echo $parm:; ndd -get /dev/tcp $parm;done
Madness, thy name is system administration
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-21-2005 04:42 AM
01-21-2005 04:42 AM
Re: How to get values of all TCP parameters on HP-UX.
I'd probably escape the '?' but then again, most of the time that isn't required.
Keep in mind that the ndd /dev/tcp ? route will give you four distinct sets of output:
*) output for supported tunables
*) output for unsupported tunables
*) output for even less than unsupported tunables (ones that aren't even listed in the unsupported list)
*) output that isn't a tunable
an example of the last one would be "tcp_status" which is rather like a cryptic netstat -an | grep tcp on steroids.
If you want information on ranges and defaults, for the supported tunables at least, instead of passing that list into another ndd -get /dev/tcp, you could pass it to an ndd -h command. For an unsupported tunable, that will return something like "Unknown tunable parameter"
Keep in mind that the ndd /dev/tcp ? route will give you four distinct sets of output:
*) output for supported tunables
*) output for unsupported tunables
*) output for even less than unsupported tunables (ones that aren't even listed in the unsupported list)
*) output that isn't a tunable
an example of the last one would be "tcp_status" which is rather like a cryptic netstat -an | grep tcp on steroids.
If you want information on ranges and defaults, for the supported tunables at least, instead of passing that list into another ndd -get /dev/tcp, you could pass it to an ndd -h command. For an unsupported tunable, that will return something like "Unknown tunable parameter"
there is no rest for the wicked yet the virtuous have no pillows
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.
Company
Support
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP