- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: operation failed, Invalid argument on ndd -set...
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
Forums
Discussions
Discussions
Discussions
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
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
05-23-2005 02:44 AM
05-23-2005 02:44 AM
I am trying to eliminate a connection of a dead process showing up under netstat -a
and netstat -an | grep ip@
(however under netstat -a it is always hanging for a minute, the more reason I want to eliminate it)
I have convertrf the ip@ to Hexa likr this:
HEX=$(print 10.214.16.153.1519.10.214.9.195.1181 | awk -F "." '{printf "%02x%02x%02x%02x%04x%02x%02x%02x%02x%04x\n",$1,$2,$3,$
4,$5,$6,$7,$8,$9,$10}')
print $HEX=0ad6109905ef0ad609c3049d
right ?
However when I use ndd command
ndd -set /dev/tcp tcp_discon_by_addr 0ad6109905ef0ad609c3049d
it gives operation failed, Invalid argument:
What am I doing wrong with my argument
(assuming that is the hexa address)
Thanks
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-23-2005 03:12 AM
05-23-2005 03:12 AM
Re: operation failed, Invalid argument on ndd -set /dev/tcp tcp_discon_by_addr
Try this link from itrc for more help.
http://www6.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000078087807
The ITRC doc id is KBRC00001754.
Hope this helps.
Regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-23-2005 03:15 AM
05-23-2005 03:15 AM
Re: operation failed, Invalid argument on ndd -set /dev/tcp tcp_discon_by_addr
Here is a doc from itrc cautioing the use of the parameter "tcp_discon_by_addr "
http://www6.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000063007320
The itrc doc id is KBQA00000223
Hope this helps.
regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-23-2005 03:33 AM
05-23-2005 03:33 AM
Re: operation failed, Invalid argument on ndd -set /dev/tcp tcp_discon_by_addr
but I am stil back to square one.
I have legitimate reasons to use
the ndd -set /dev/tcp tcp_discon_by_addr value
However I fail to see how to exactly
interprete the value part of the command.
I use
ndd -set /dev/tcp tcp_discon_by_addr 0ad6109905ef0ad609c3049d
and the response I get is:
operation failed, Invalid argument
The 2 tcp-endpoint that I need to terminate
are:
tcp 0 0 10.214.16.153.1529 10.214.9.195.1181 ESTABLISHED
Anyone see the idiosyncrosie in my
finishing of the ndd command above ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-23-2005 04:02 AM
05-23-2005 04:02 AM
SolutionYou can try this to disconnect all the sessions from 10.214.9.195
To list all connections,
netstat -an |grep 10.214.9.195
ndd -get /dev/tcp tcp_status |grep 010.214.009.195
Now to kill all the connections from the command line, try this.
ndd -get /dev/tcp tcp_statis |grep 010.214.009.195 |awk '{print $1}` |while read ADD
>do
>ndd -set /dev/tcp tcp_discon 0x0$ADD
>done
Hope this helps.
regds