System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

how to disbale the udp port in hp-ux 11.11

rajesh73
Super Advisor

how to disbale the udp port in hp-ux 11.11

Hi, i want to disable one udp  1515 in our production server for 2 housr. please expalin the process

 

 

udp        0      0  *.1515                 *.*

 

Please explain how to disbale and after completion of work how to enable the port

 

os version -hp-ux 11.11

Server usage -Application server

 


 

 

1 REPLY
Duncan Edmonstone
Honored Contributor

Re: how to disbale the udp port in hp-ux 11.11

Well you need to stop whatever process currently has UDP port 1515 open. I can't tell you what that is, but you should be able to figure it out:

 

- Check if it is specified in /etc/services:

 

grep 1515 /etc/services

 

- If it isn't defined there then it won't be controlled by inetd, so your only other option is to use lsof. If you don't have a copy of lsof get it here: http://hpux.connect.org.uk/hppd/hpux/Sysadmin/lsof-4.84/

 

- Then you can just run lsof as follows:

 

lsof -i UDP:1515

 

Here's an example from my system looking at what has TCP port 22 (ssh) open:

 

# lsof -i TCP:22
COMMAND PID USER   FD   TYPE     DEVICE SIZE/OFF NODE NAME
sshd    854 root    4u  IPv4 0x484004c0      0t0  TCP *:22 (LISTEN)
sshd    894 root    5u  IPv4 0x48400640  0t60295  TCP c3000:22->DEDMONSTON2.lan:64435 (ESTABLISHED)


HTH

Duncan