Operating System - HP-UX
1761819 Members
2730 Online
108905 Solutions
New Discussion юеВ

Re: Enable port on HP-UX 11.11

 
SOLVED
Go to solution
Surizan Othman
Frequent Advisor

Enable port on HP-UX 11.11

I've HP-UX version 11.11. I need to open a certain port for my application to get through. How can I perform this. What's the command shall i use.
6 REPLIES 6
Steven Schweda
Honored Contributor

Re: Enable port on HP-UX 11.11

I'm not sure that this question makes sense.
What, exactly, are you trying to do? What,
exactly, doesn't work?

Does your application run on the HP-UX
system, or on some other system?

"Get through" to what?
Surizan Othman
Frequent Advisor

Re: Enable port on HP-UX 11.11

Sorry. Let me rephrase my question.

I want to use a Oracle 10g management tool from my PC.In order to that, i have to open port 1158 & 5561 on my HP-UX server for this application access to database on my HP-UX system. This is what I mean. Can you please guide me to open port on HP-UX system
Prashanth Waugh
Esteemed Contributor
Solution

Re: Enable port on HP-UX 11.11

Hi Surizan,

1)First look into /etc/services.
/etc/services :- Lists service names and ports/protocols used with these services
2)put the entry in /etc/inetd.conf.suppose I have to use telnet then entry will be like in /etc/inetd.conf
telnet stream tcp nowait root /usr/lbin/telnetd telnetd
3)check configer port lisnening or not
#netstat -na |grep

Regards
Prashant
For success, attitude is equally as important as ability
Prashanth Waugh
Esteemed Contributor

Re: Enable port on HP-UX 11.11

Hi Surizan,

I think u have to run the /etc/inetd -c command to apply the changes.

Regards
Prashant
For success, attitude is equally as important as ability
Vihang.
Trusted Contributor

Re: Enable port on HP-UX 11.11

Hi Surizan,

Your Oracle10g management tool user guide should tell you what entries you need to add in /etc/services & /etc/inetd.conf. Just put those entries & then ask the inetd daemon to re-read its configuration file by running command "inetd -c".

Hope this helps.

Regards,
Vihang.
Jeeshan
Honored Contributor

Re: Enable port on HP-UX 11.11

frankly speaking, you cannot open or close a port.

process or daemon itself can open ports. so you first identify, which process can open the ports that you specified.

go through your process or executable scripts.
the /etc/services specifies only human readable format of known ports with its protocol or processes.
a warrior never quits