- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- how to release a port in hpux
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
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
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
тАО06-02-2011 10:23 PM
тАО06-02-2011 10:23 PM
I have to close a port in my hpux box.
[root@caefr0p006 ~]# cat /etc/services | grep -i 7006
afs3-errors 7006/tcp # error interpretation service
afs3-errors 7006/udp # error interpretation service
[root@caefr0p006 ~]#
[root@caefr0p006 ~]#
[root@caefr0p006 ~]# netstat -an | grep -i 7006
tcp 0 0 0.0.0.0:7006 0.0.0.0:* LISTEN
tcp 0 0 44.47.100.106:7006 152.9.100.40:57767 TIME_WAIT
tcp 0 0 44.47.100.106:7006 152.9.100.40:57765 TIME_WAIT
tcp 0 0 44.47.100.106:7006 152.9.100.40:57764 TIME_WAIT
tcp 0 0 44.47.100.106:7006 152.9.100.40:57763 TIME_WAIT
tcp 0 0 44.47.100.106:7006 152.9.100.40:57762 TIME_WAIT
tcp 0 0 44.47.100.106:7006 152.9.100.40:57760 TIME_WAIT
tcp 0 0 44.47.100.106:7006 152.9.100.40:57759 TIME_WAIT
tcp 0 0 44.47.100.106:7006 152.9.100.40:57757 TIME_WAIT
tcp 0 0 44.47.100.106:7006 152.9.100.40:57756 TIME_WAIT
tcp 0 0 44.47.100.106:7006 152.9.100.40:57754 TIME_WAIT
tcp 0 0 44.47.100.106:7006 152.9.100.40:57751 TIME_WAIT
[root@caefr0p006 ~]#
My application team is asking to release the port 7006 .
Iam not worked much on the ports side.
Cpould you pls guide me how to close the port as listed above?
waiting for help
Rgds
Sree
Solved! Go to Solution.
- Tags:
- Port
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-02-2011 10:29 PM
тАО06-02-2011 10:29 PM
Re: how to release a port in hpux
Standard network configuration is for the network socket to close 60 seconds after even an abnormal termination of the process.
You might want to use lsof to figure out what application is using port 7006 and shut it down.
Shutting down the application is the way to go if you want that port released.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-02-2011 10:40 PM
тАО06-02-2011 10:40 PM
SolutionWell a quick google indicates that port 7006 is often used by BMC products such as Patrol or Control-M - if you have these on your system, you might want to stop/restart all the processes relating to that...
Also, do you know what the system with IP address 152.9.100.40 is and what it does? That might give you some clue as to what the processes holding the ports open are...
Otherwise you might want to get a copy of lsof:
http://hpux.connect.org.uk/hppd/hpux/Sysadmin/lsof-4.84/
then running:
lsof -i :7006
Should show you which processes have that port open
(I won't be surprised if the processe that have the port open are owned by the very application team that wants you to close them!)
HTH
Duncan
I am an HPE Employee

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-03-2011 05:35 PM
тАО06-03-2011 05:35 PM
Re: how to release a port in hpux
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-04-2011 02:36 AM
тАО06-04-2011 02:36 AM
Re: how to release a port in hpux
Thanks much for your help.
Your answers are excellent and is worked.
What I actioned is:
lsof -i:7006
identified PID
killed the PID
And the port got closed successfully.
Thanks again.
Rgds
Sree