Solved

What comand to Open Ports in HP-UX ???

Posted on 2007-03-20
4
6,589 Views
Last Modified: 2013-12-06
Dear experts.

  Can anyone tell me What Command I can use to Open Ports in HP-UX???

Thank you so much!
0
Comment
Question by:cuconsortium
4 Comments
 
LVL 38

Accepted Solution

by:
yuzh earned 500 total points
ID: 18760875
What are you trying to do to open a port?

In *nix (Unix/Linux), network ports (telnet, sendmail, etc) are made available on a system by a running daemon (e.g., sendmail, nfs, etc) or the service managed by inetd.

To close the port, you need to stop the daemon, or disable the service run on the port.

If you want to write a program to run some services on a port, please
have a look at "Unix socket  programming" (you can do a search on the web to find some reference).

to find out what ports are open, you can run netstat command or "lsof" (third party) .
0
 
LVL 40

Expert Comment

by:omarfarid
ID: 19173244
Hi,

regarding ports and protocols, all standard / well defined ports and protocols are defined in /etc/services

This file is normally used by applications that need to know the port and a protocol (udp / tcp) for the server it need to connect to.

e.g. telnet, ftp, ssh clients will look into this file for such info.

Some servers applications will either have their own configuration file to specify udp/tcp and port no., or can pick this from the /etc/services file.

If you are developing such server application, etc. you may let it use /etc/services file.

Regarding opening ports, you need to check the firewall (if any) docs, or talk to your network / security administrator.
0

Featured Post

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Let's say you need to move the data of a file system from one partition to another. This generally involves dismounting the file system, backing it up to tapes, and restoring it to a new partition. You may also copy the file system from one place to…
My previous tech tip, Installing the Solaris OS From the Flash Archive On a Tape (http://www.experts-exchange.com/articles/OS/Unix/Solaris/Installing-the-Solaris-OS-From-the-Flash-Archive-on-a-Tape.html), discussed installing the Solaris Operating S…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

821 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question