![]() |
|
|
|||||||
| Home | Forums | Register | Rules & FAQ | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| AIX AIX is IBM's industry-leading UNIX operating system that meets the demands of applications that businesses rely upon in today's marketplace. |
Other UNIX.COM Threads You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| required command to know the port no. | Amit_kolurwar | SUN Solaris | 1 | 04-23-2008 12:05 AM |
| Command to know port no | manoj.solaris | SUN Solaris | 6 | 08-03-2007 07:49 PM |
| mailing with attachments in mail command in HP-UX Release 11i | rosh0623 | UNIX for Advanced & Expert Users | 1 | 08-30-2005 12:30 PM |
| How to set baude rate of Serial port using setserial or other command | zaheer031 | UNIX for Advanced & Expert Users | 1 | 09-29-2004 08:20 AM |
| Release a port | aces4u | Shell Programming and Scripting | 2 | 08-22-2003 03:47 AM |
![]() |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
|||
|
Command to release a port in AIX
Hi All,
I wanna know the command to release a particualr port in AIX machine without rebooting it. Code:
# netstat -a | grep 7100 tcp4 0 0 loopback.7100 *.* LISTEN # Thanks in advance. -Hemanshu Last edited by Yogesh Sawant : 04-22-2008 at 09:42 PM. Reason: added code tags |
| Forum Sponsor | ||
|
|
|
|||
|
This is a customized application running on AIX, using this port and this is specified in /etc/services. When ever the application starts it looks into /etc/services uses the specified port to come into service, unfortunately due to some bug, the application hangs and few of its processes goes into exiting state:
# ps -eaf | grep -i exiting root 10996 53590 1 10:46:01 pts/1 0:00 grep -i exiting - 12472 - - - <exiting> - 22580 - - - <exiting> - 23476 - - - <exiting> # After this the port get stuck and when I restart the application, it fails to start saying that the port is in use. So I have to edit the /etc/services file and change the port to another one. Since the application get hang then and there, now on the system there are lots of port which are stuck. Also ports are not getting cleared up by itself, even after the timeout. It remains in LISTEN mode for ever, unless the system is rebooted. I beleive if there is a way to clear up the exitung processes without rebooting the system, then it will clear up the system. Is there anyway to kill the exiting processes ??? |
|
|||
|
blowtorch is correct (by the way: yes, the filenames are correct for AIX too, regardless of the version). The problem is not a problem of the port, but a problem of the application. You will probably be able to remedy the problem by applying a healthy dose of "kill -9" onto the processes of your application.
Do something like the following: Code:
ps -fe | grep exiting | while read junk PID junk ; do
kill -9 $PID
done
bakunin |
|||
| Google UNIX.COM |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|