Port Status - Solaris 10

free web hosting
Free Web Hosting > Computers & Tech > Operating Systems > Solaris

Port Status - Solaris 10

phoboz
Hi !

I wonder if there is any special command that
shows which programs are listening to which
network ports ?

I have tried:

# ps -ef

Then I get something like this:
CODE

UID   PID  PPID   C    STIME TTY         TIME CMD
   root     0     0   0 07:51:10 ?           0:09 sched
   root     1     0   0 07:51:10 ?           0:00 /sbin/init
   root     2     0   0 07:51:10 ?           0:00 pageout
   root     3     0   0 07:51:10 ?           0:01 fsflush
webservd   262   247   0 07:51:34 ?           0:00 /usr/apache2/bin/httpd -k start
   root     7     1   0 07:51:13 ?           0:03 /lib/svc/bin/svc.startd
   root     9     1   0 07:51:14 ?           0:15 /lib/svc/bin/svc.configd
webservd   259   247   0 07:51:34 ?           0:00 /usr/apache2/bin/httpd -k start
webservd   260   247   0 07:51:34 ?           0:00 /usr/apache2/bin/httpd -k start
   root   234     7   0 07:51:33 console     0:00 /usr/lib/saf/ttymon -g -d /dev/console -l console -T sun -m ldterm,ttcompat -h
   root   228     1   0 07:51:32 ?           0:01 /usr/lib/inet/inetd start
   root   337     1   0 07:51:41 ?           0:00 /usr/sbin/syslogd
   root   229     7   0 07:51:32 ?           0:00 /usr/lib/saf/sac -t 300
   root    49     1   0 07:51:22 ?           0:00 /sbin/dhcpagent
   root    93     1   0 07:51:26 ?           0:00 /usr/sbin/nscd
webservd   266   247   0 07:51:35 ?           0:00 /usr/apache2/bin/httpd -k start
   root    76     1   0 07:51:25 ?           0:00 /usr/lib/sysevent/syseventd
 daemon    95     1   0 07:51:27 ?           0:00 /usr/lib/crypto/kcfd
   root    98     1   0 07:51:27 ?           0:00 /usr/lib/power/powerd
   root   235     1   0 07:51:33 ?           0:00 /usr/lib/utmpd
   root    82     1   0 07:51:25 ?           0:00 /usr/lib/picl/picld
 daemon   219     1   0 07:51:31 ?           0:00 /usr/sbin/rpcbind
   root   203     1   0 07:51:31 ?           0:00 /usr/sbin/cron
 daemon   222     1   0 07:51:32 ?           0:00 /usr/lib/nfs/statd
 daemon   230     1   0 07:51:32 ?           0:00 /usr/lib/nfs/lockd
   root   247     1   0 07:51:33 ?           0:00 /usr/apache2/bin/httpd -k start
   root   239   229   0 07:51:33 ?           0:00 /usr/lib/saf/ttymon
webservd   264   247   0 07:51:34 ?           0:00 /usr/apache2/bin/httpd -k start
   root   611   538   0 07:51:52 ?           0:00 /usr/dt/bin/dtlogin -daemon
   root   317     1   0 07:51:39 ?           0:00 /usr/lib/autofs/automountd
   root   335     1   0 07:51:41 ?           0:00 /usr/lib/ssh/sshd
  smmsp   361     1   0 07:51:43 ?           0:00 /usr/lib/sendmail -Ac -q15m
   root   395   394   0 07:51:44 ?           0:00 /usr/sadm/lib/smc/bin/smcboot
   root   396   394   0 07:51:44 ?           0:00 /usr/sadm/lib/smc/bin/smcboot
   root   342     1   0 07:51:42 ?           0:01 /usr/lib/fm/fmd/fmd
   root   362     1   0 07:51:43 ?           0:00 /usr/lib/sendmail -bd -q15m
   root   587     1   0 07:51:49 ?           0:00 /usr/sbin/vold
   root   394     1   0 07:51:44 ?           0:00 /usr/sadm/lib/smc/bin/smcboot
   alex   629   611   0 07:52:08 ?           0:00 /bin/ksh /usr/dt/bin/Xsession
   root   407     1   0 07:51:44 ?           0:00 /usr/sbin/afbdaemon /dev/fbs/afb0
   root   431     1   0 07:51:45 ?           0:00 /usr/lib/im/htt -port 9010 -syslog -message_locale C
   root   610     1   0 07:51:52 ?           0:01 /usr/sfw/sbin/snmpd
   alex   547   538   3 07:51:48 ?           0:56 /usr/openwin/bin/Xsun :0 -defdepth 24 -nobanner -auth /var/dt/A:0-DKaqdb
   root   448   431   0 07:51:45 ?           0:00 htt_server -port 9010 -syslog -message_locale C
   root   580     1   0 07:51:49 ?           0:00 /usr/lib/dmi/snmpXdmid -s nova
   root   461     1   0 07:51:46 ?           0:00 /bin/sh /opt/csw/mysql4/bin/mysqld_safe --pid-file=/opt/csw/mysql4/var/mysql.pi
  mysql   571   461   0 07:51:49 ?           0:02 /opt/csw/mysql4/libexec/mysqld --basedir=/opt/csw/mysql4 --datadir=/opt/csw/mys
   alex   702   699   0 07:52:09 pts/3       0:00 -bash -c      unset DT;     DISPLAY=:0;       /usr/dt/bin/dtsession_res -mer
   root   538     1   0 07:51:47 ?           0:00 /usr/dt/bin/dtlogin -daemon
   root   556     1   0 07:51:48 ?           0:00 /usr/lib/snmp/snmpdx -y -c /etc/snmp/conf
   root   568     1   0 07:51:49 ?           0:00 /usr/lib/dmi/dmispd
   root   612   538   0 07:51:52 ??          0:00 /usr/openwin/bin/fbconsole -d :0
   alex   646   629   0 07:52:08 ?           0:00 /usr/openwin/bin/fbconsole
   alex   724   716   0 07:52:14 ?           0:01 /usr/dt/bin/sdtperfmeter -f -H -t cpu -t disk -s 1 -name fpperfmeter
   alex   715     1   0 07:52:11 pts/3       0:00 /usr/dt/bin/ttsession
   alex   652     1   0 07:52:08 ?           0:00 /usr/openwin/bin/speckeysd
   alex   699   629   0 07:52:09 pts/3       0:00 /usr/dt/bin/sdt_shell -c      unset DT;     DISPLAY=:0;       /usr/dt/bin/dt
   alex   716   702   0 07:52:11 pts/3       0:00 /usr/dt/bin/dtsession
   alex   701     1   0 07:52:09 ?           0:00 /usr/dt/bin/dsdm
   alex   722   716   0 07:52:11 ?           0:01 dtwm
   root   723   228   0 07:52:11 ?           0:00 /usr/dt/bin/rpc.ttdbserverd
   root   732   228   0 07:52:14 ?           0:00 /usr/lib/netsvc/rstat/rpc.rstatd
   alex   726     1   0 07:52:14 ?           0:00 /bin/ksh /usr/dt/bin/sdtvolcheck -d -z 5 cdrom,zip,jaz,dvdrom,rmdisk
   alex   744   715   0 07:52:29 pts/3       0:00 /bin/sh -c dtfile -noview
   alex   743   726   0 07:52:24 ?           0:00 /bin/cat /tmp/.removable/notify726
   alex   745   744   0 07:52:30 pts/3       0:00 dtfile -noview
   alex   747   745   0 07:52:40 pts/3       0:00 dtfile -noview
   alex   980   979   1 08:02:15 ??          0:00 /usr/dt/bin/dtterm -C -ls
   alex   982   980   0 08:02:16 pts/4       0:00 -bash
   alex   979   722   0 08:02:15 ?           0:00 /usr/dt/bin/dtexec -open 0 -ttprocid 2.13Eu4A 01 715 1289637086 1 1 100 192.168
   alex   802     1   0 07:52:47 ?           0:00 /bin/ksh -p /usr/sfw/bin/mozilla
   alex   988   982   0 08:02:17 pts/4       0:00 ps -ef
   alex   835   802   0 07:52:48 ?           0:00 /bin/sh /usr/sfw/bin/../lib/mozilla/run-mozilla.sh /usr/sfw/bin/../lib/mozilla/
   alex   851     1   0 07:52:51 ?           0:00 /opt/csw/libexec/gconfd-2 16
   alex   849   835   6 07:52:48 ?           2:31 /usr/sfw/bin/../lib/mozilla/mozilla-bin -UILocale en-US -contentLocale US

And take for example the line:
CODE

UID   PID  PPID   C    STIME TTY         TIME CMD
mysql   571   461   0 07:51:49 ?           0:02 /opt/csw/mysql4/libexec/mysqld

I get a lot of information but I can't see which port number it runs on.

/Alex

 

 

 


Reply

qwijibow
QUOTE
I wonder if there is any special command that
shows which programs are listening to which
network ports ?


you mean netstat !
its a very common tool, it exists in solaris, *BSD, Linux, and even WindowsXP !

read "man netstat"

you prbaby want "netstat -npl"

n = show posrts as numbers (e.g. show "80" instead of "http"
l = show ports in state listening.
p = report program name/PID of the running program.

example output on my machine...

CODE
localhost ~ # netstat -npl
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0 0.0.0.0:139             0.0.0.0:*               LISTEN      7132/smbd
tcp        0      0 127.0.0.1:8118          0.0.0.0:*               LISTEN      7737/privoxy
tcp        0      0 0.0.0.0:631             0.0.0.0:*               LISTEN      6691/cupsd
tcp        0      0 127.0.0.1:9050          0.0.0.0:*               LISTEN      7685/tor
tcp        0      0 0.0.0.0:445             0.0.0.0:*               LISTEN      7132/smbd
udp        0      0 192.168.1.2:137         0.0.0.0:*                           7135/nmbd
udp        0      0 0.0.0.0:137             0.0.0.0:*                           7135/nmbd
udp        0      0 192.168.1.2:138         0.0.0.0:*                           7135/nmbd
udp        0      0 0.0.0.0:138             0.0.0.0:*                           7135/nmbd
udp        0      0 0.0.0.0:631             0.0.0.0:*                           6691/cupsd


running tor proxy, privoxy proxy, cups and samba.

 

 

 


Reply

iGuest
"p = report program name/PID of the running program."
it work on linux, but not on Solaris

Reply


Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

(Maximum characters: 10,000)
You have characters left.

Recent Queries:-
  1. how to free up network ports solaris - 4.20 hr back. (1)
  2. solaris libérer port netstat - 10.59 hr back. (1)
  3. sdt_shell - 11.37 hr back. (1)
  4. disable port in solaris 10 - 16.22 hr back. (1)
  5. solaris show port - 17.06 hr back. (1)
  6. udp 7685 port - 19.98 hr back. (1)
  7. solaris check status of port listen - 24.16 hr back. (1)
  8. how can i enable ports in solaris 10 - 29.86 hr back. (1)
  9. solaris port status tool - 29.90 hr back. (1)
  10. displaying ports solaris 10 - 29.99 hr back. (1)
  11. how to enable port 512 on solaris 10 - 32.10 hr back. (1)
  12. enable ports on solaris 10 - 32.37 hr back. (1)
  13. solaris 10 listening ports - 32.47 hr back. (1)
  14. show port status solaris 9 netstat state - 35.21 hr back. (1)
Similar Topics

Keywords : port, status, solaris, 10

  1. How Do I Install Solaris?
    (5)
  2. Why Solaris Is Different To Other Unix?
    a general description of some diferences of Solaris 10 (9)
    Why SOLARIS is different to other UNIX? Well, Solaris has some important differences with other
    Unix. For example the FileSystem. They use ZFile which is file system created by Sun Microsystems an
    it is a 128bits file system capable for managing a unlimited capacity (2^128 bytes! it's a
    very huge number!) which could be a single Hard Disk or multiple hard disks or a cluster of
    computer. Another difference is the Console managment which makes the creation of users, roles and
    permission a very fast and easy task by using some wizards and a graphical interfac....
  3. Basic Setup For Apache In Solaris 10
    An step by step guide to configure an Apache web server in Solaris 10 (1)
    HOW TO SETUP APACHE SERVER IN SOLARIS 10 Apache Web Server is already included and installed in
    Solaris 10 (Update 08/07). Normally it is already running as a service, but it requires some
    configuration to make it run as you desire. I will use the '#' to indicate the commands
    you should execute as root, and '%' to indicate it is a command to run as user. 1. Stop
    the web server # svcadm disable svc:/network/http:apache2 2. Copy the file
    /etc/apache2/httpd.conf-example to /etc/apache2/httpd.conf. The file 'httpd.conf-example'
    contains an e....
  4. Shmmni, Shmseg, Shmmax : How To Know The Current Value On Solaris ?
    I would like to know the current value, how to read the value currentl (3)
    I have problems when installing Oracle on Solaris. The database files are correctly copied, but the
    instance does not startup, in the alert file I have a message saying that the the shm parameters are
    not correct. How is it possible to know the current value of SHMMNI, SHMSEG, SHMMAX etc..., really
    reading them from the solaris kernel ? I inserted some values in /etc/system, but how to know if
    these new values have been taken into account ? The Oracle documentation says "ask the system
    administrator". Unfortunately, I am currently the solaris sytem administrator !....
  5. Named In Solaris
    Named (1)
    Hi all I have configured Bind in Solaris Enterprise ..., Now I can dig but can't ping the
    server ..I have make all necessary entries in /etc/resolv.conf..but still can dig nameserver but
    can't ping why??? I m new to solaris but have configured in Linux lot of times.. help me plzz
    THX ....
  6. Whats A Good Graphics Editor For Solaris 10 ?
    (8)
    I've just download Solaris from Sun Download Center. I also installed it. But I need to do some
    artwork with photoshop. I don't have any graphic edior for this Operating System. I don't
    know what to do next, Does anyone know anyway to run a Win App on Solaris or a good Graphic Editor
    for Solaris?....
  7. DNS Server On Solaris 10
    How to setup DNS server on solaris 10 (2)
    Hi ! I wonder if anybody knows how to set up a DNS server on Solaris 10. I know that the
    service should be started with: # svadm enable network/dns/server But when I write: # svcs -l
    /network/dns/server I get: fmri svc:/network/dns/server:default enabled false state
    disabled next_state none state_time Wed Sep 28 11:53:52 2005 restarter
    svc:/system/svc/restarter:default dependency require_all/none file://localhost/etc/named.conf
    (absent) dependency require_all/none svc:/system/filesystem/minimal (online) dependency
    require_any/er....
  8. Mounting Ext2 Filesystem In Solaris 10
    (1)
    Hello everyone, I decided to make a move from Linux, to Solaris, for the time being, and was
    wondering how I would go about mounting an ext2 filesystem under Solaris. I used it for all my
    backup stuff, which I moved to another hard disk, and now that I'm on Solaris, I need it back.....
  9. Someone from the Sun?
    Solaris OS family (18)
    I've use Solaris 9 on X86 platform and i think that nobody does a best work than Sun
    Microsystem: Stabe, Fast, Secure the only problem was my Net Card and the hardware in general,
    it's very difficult to configure it /sad.gif' border='0' style='vertical-align:middle'
    alt='sad.gif' /> ....

    1. Looking for port, status, solaris, 10

*RANDOM STUFF*





*SIMILAR VIDEOS*
Searching Video's for port, status, solaris, 10
advertisement




Port Status - Solaris 10



 

 

 

 

ADD REPLY / Got an Opinion! a humble request :-) RAPID SEARCH! Free Hosting [X]
Express your Opinions, Thoughts or Contribute your information that might help someone here.
Ask your Doubts & Queries to get answers.. "Together, We enlight each other!"
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP.
500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE