From inside the box you could look at /etc/inetd.conf, but i'm not sure if you can read it without root privileges.
Most services are controlled in AIX via the System Resource Controller (SRC), try the command "lssrc -a". Again, i'm not sure if you can do that without being root.
From outside the box you could use telnet as a makeshift port sniffer:
This is my usual test if a network printer is online or not: telnet to port 515 and if the banner of some lpd comes up it works.
Hi,
We have a text file which has the following data.
ISA~00~ ~00~ ~ZZ~VISTN ~ZZ~U1CAD ~051227~183
7~U~00200~000011258~0~P~<
GS~FA~EE05J~U1CAD~051227~1831~000011258~X~002002
ST~997~0001
AK1~SH~247
AK2~856~2470001
AK5~A
AK2~856~2470002
AK5~A... (3 Replies)
Does anyone know if there is a C API call to get the status of a TCP port? As opposed to running netstat and parsing the results. At the moment I have to attempt to bind() and pick up on the address in use error which isn't very elegant
Thanks
---------- Post updated at 10:42 AM ----------... (0 Replies)
I had a doubt if any services need to be restarted if port no in /etc/services in an RHEL setup is changed. For eg, the port no of 443 for SSL may need to be changed.
I hope my query is clear whether any services need to be restarted if port no in /etc/services is changed.
Please revert with... (10 Replies)
Hi,
How can I list running services, corresponding package name and status on the AIX host?
On Linux (Centos), I use the below code snippet:-
for i in `chkconfig --list | awk '{ print $1}'`; do
status=`/sbin/service $i status`
packagename=`rpm -qf /etc/init.d/$i`
done
Is there... (2 Replies)
Hi,
I am trying to list down list of running services, corresponding package name and status on HP-UX box. The output will be a CSV in a fashion:- Service Name, Package Name, Status.
While working on Linux centos, I used chkconfig to do the same. Below was the snippet:-
for i in `chkconfig... (3 Replies)
Hi,
We have a ldap server configured with services (port) and want to know how to fetch that to the ldap clients:
# cat /etc/nsswitch.conf|grep -i services
services: files sss (neither sss nor ldap works)
by doing "#getent services" I am getting only the result from /etc/services but I... (1 Reply)
My system suddenly crash and when it rebooted there was an error:
/dev/rdsk/c1t0d0s3 is logging
svc.startd: svc:/network/nis/client:default: Method "/method/yp" failed with status 96.
The system completes booting however when I log in a user account / directory is not longer... (1 Reply)
Discussion started by: NeedSolarisHelp
1 Replies
LEARN ABOUT OPENSOLARIS
cports
cports(1M) System Administration Commands cports(1M)NAME
cports - expand host names into <host, server, port> triples
SYNOPSIS
$CLUSTER_HOME/bin/cports hostname [hostname...]
DESCRIPTION
The cports utility expands the hostname arguments into a list of <host, server, port> triples. The returned information is used to access
the serial port consoles of the named hosts by way of the terminal server returned in the triples.
If an entry for serialports has been made in the /etc/nisswitch.conf file, then the order of lookups is controlled by that entry. If there
is no such file or no such entry, then the nameservice look up order is implicitly nis files.
EXAMPLES
Example 1 Using the cports Command
If the /etc/serialports file contains the entry:
pepsi soda-tc 5002
the following command:
% cports pepsi
prints the following string:
pepsi soda-tc 5002
This information can be used by the telnet(1) command to remotely access pepsi's console:
% telnet soda-tc 5002
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWccon |
+-----------------------------+-----------------------------+
|Interface Stability |Evolving |
+-----------------------------+-----------------------------+
SEE ALSO telnet(1), cconsole(1M), ccp(1M), chosts(1M), crlogin(1M), cssh(1M), ctelnet(1M), serialports(4), attributes(5)Sun Cluster 3.2 8 Sep 2007 cports(1M)