- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: HP-UX:Kill/Shut Ports
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
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
тАО05-20-2011 05:46 AM
тАО05-20-2011 05:46 AM
HP-UX:Kill/Shut Ports
I have a port open on my server, but I am not able to find any process associated with it. Please let me know how to close this.
#netstat -an|grep -w 844
udp 0 0 *.844 *.*
# lsof -i udp:844
#
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-20-2011 09:53 AM
тАО05-20-2011 09:53 AM
Re: HP-UX:Kill/Shut Ports
Execute the following command:
ndd -get /dev/tcp tcp_status
... to list off all your tcp connections/sockets. Look for your port, 844, in the [lport,fport] column ( in HEX: 844=34C ).
Once you've found the LISTEN socket on that port, use the first column from the ndd output above for that socket and do this:
ndd -set /dev/tcp tcp_discon 0x
... That should take care of your open port, but... you may find that this doesn't really solve your issue. Let us know what happens next.
-klb
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-23-2011 03:04 AM
тАО05-23-2011 03:04 AM
Re: HP-UX:Kill/Shut Ports
there is a small change.
I want a solution for udp port. ndd o/p is below.
eux390{root}# ndd -get /dev/udp udp_status|grep 844
000000008fedb0c0 00844 000.000.000.000 000.000.000.000 00000 IDLE
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-23-2011 04:45 AM
тАО05-23-2011 04:45 AM
Re: HP-UX:Kill/Shut Ports
bv
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-23-2011 08:43 AM
тАО05-23-2011 08:43 AM
Re: HP-UX:Kill/Shut Ports
eux390{root}# ndd -get /dev/udp udp_status|grep 844
000000008fedb0c0 00844 000.000.000.000 000.000.000.000 00000 IDLE
if it is not seen by lsof it may need 2 possible things:
1) it is a kernel opened connection
2) it is internalized and send through a unix socket.
Don't you use nfs over udp? kernel rpc are not seen by lsof and use reserved ports when using udp.
To identify it you can try to make a network trace, and see if you can find any traffic.
you can also probe rpc traffic to it.
Else there are some hp internal tools which could help you to identify it through hp support direction.
if it is nfs, there is no much you can do.
Why are you trying to close it?
Also is it used on every reboot or only that time?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-23-2011 09:56 AM
тАО05-23-2011 09:56 AM
Re: HP-UX:Kill/Shut Ports
After I posted the ndd stuff, I noticed the OP was referring to a UDP port.
Then noticed there really isn't a similar UDP attribute that could be used to disconnect the port.
-klb