The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > OS Specific Forums > SUN Solaris
Google UNIX.COM


SUN Solaris The Solaris Operating System, usually known simply as Solaris, is a free Unix-based operating system introduced by Sun Microsystems .

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Ports zsujith HP-UX 1 12-31-2007 01:45 PM
ports??? eloquent99 IP Networking 4 02-24-2003 02:56 PM
Ports Ralf UNIX for Dummies Questions & Answers 2 12-10-2002 09:07 AM
Ports Yaki UNIX for Dummies Questions & Answers 6 10-10-2002 09:07 AM
TCP/UDP Ports eugene_mayo IP Networking 5 08-26-2002 04:27 PM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 06-15-2008
ffpradella's Avatar
Registered User
 

Join Date: Jun 2008
Location: Sao Paulo - Brazil
Posts: 36
Question ports

Hi,

If for example i try to start tomcat in a solaris server and get errors related to address already in use, how can I know if this port is really used for another process?

If someone can point any documentation it will be very helpfull.

Thanks!
Reply With Quote
Forum Sponsor
  #2  
Old 06-15-2008
DukeNuke2's Avatar
Soulman
 

Join Date: Jul 2006
Location: Germany, Berlin
Posts: 1,484
have a look at the output of:

Code:
# netstat -rn
Reply With Quote
  #3  
Old 06-21-2008
Registered User
 

Join Date: Mar 2006
Posts: 36
Quote:
Originally Posted by DukeNuke2 View Post
have a look at the output of:

Code:
# netstat -rn
Is it show routing?

I think you want to type "netstat -a" right?
Reply With Quote
  #4  
Old 06-21-2008
Registered User
 

Join Date: May 2008
Location: s'pore
Posts: 898
netstat -an |grep LISTEN
check which ports are in listening mode.
Port Number Description
1 TCP Port Service Multiplexer (TCPMUX)
5 Remote Job Entry (RJE)
7 ECHO
18 Message Send Protocol (MSP)
20 FTP -- Data
21 FTP -- Control
22 SSH Remote Login Protocol
23 Telnet
25 Simple Mail Transfer Protocol (SMTP)
29 MSG ICP
37 Time
42 Host Name Server (Nameserv)
43 WhoIs
49 Login Host Protocol (Login)
53 Domain Name System (DNS)
69 Trivial File Transfer Protocol (TFTP)
70 Gopher Services
79 Finger
80 HTTP
103 X.400 Standard
108 SNA Gateway Access Server
109 POP2
110 POP3
115 Simple File Transfer Protocol (SFTP)
118 SQL Services
119 Newsgroup (NNTP)
137 NetBIOS Name Service
139 NetBIOS Datagram Service
143 Interim Mail Access Protocol (IMAP)
150 NetBIOS Session Service
156 SQL Server
161 SNMP
179 Border Gateway Protocol (BGP)
190 Gateway Access Control Protocol (GACP)
194 Internet Relay Chat (IRC)
197 Directory Location Service (DLS)
389 Lightweight Directory Access Protocol (LDAP)
396 Novell Netware over IP
443 HTTPS
444 Simple Network Paging Protocol (SNPP)
445 Microsoft-DS
458 Apple QuickTime
546 DHCP Client
547 DHCP Server
563 SNEWS
569 MSN
1080 Socks
Reply With Quote
  #5  
Old 06-21-2008
Registered User
 

Join Date: May 2008
Location: s'pore
Posts: 898
sorry typo error , it should be netstat -rn |grep LISTEN
Reply With Quote
  #6  
Old 06-25-2008
ffpradella's Avatar
Registered User
 

Join Date: Jun 2008
Location: Sao Paulo - Brazil
Posts: 36
I tried to use netstat -a without LISTEN and it returned many things, including lines as bellow:
-------------------------
Quote:
d5ba6850 stream-ord 00000000 00000000 /tmp/.X11-unix/X0
d5ba6958 stream-ord 00000000 00000000 /var/tmp/orbit-root/linc-931-0- 4862c3d642e76
d5ba6a60 stream-ord 00000000 d5b99600 /var/tmp/orbit-root/lin c-931-0-4862c3d642e76
d5ba6b68 stream-ord 00000000 00000000 /var/tmp/orbit-root/linc-936-0- 48629b649b0e
d5ba6c70 stream-ord d5b99600 00000000 /var/tmp/orbit-root/linc-931-0-4862c3d6 42e76
d5ba6d78 stream-ord d57bdb40 00000000 /var/tmp/orbit-root/linc-936-0-48629b64 9b0e
d5ba6e80 stream-ord 00000000 d57bdb40 /var/tmp/orbit-root/lin c-936-0-48629b649b0e
d53cf008 stream-ord 00000000 00000000 /tmp/.X11-unix/X0
d53cf110 stream-ord 00000000 d57ca0c0 /tmp/.X11-unix/X0
d53cf218 stream-ord 00000000 00000000 /tmp/.X11-unix/X0
d53cf320 stream-ord 00000000 d57ca0c0 /tmp/.X11-unix/X0
d53cf428 stream-ord 00000000 00000000 /tmp/.X11-unix/X0
d53cf530 stream-ord 00000000 d57ca0c0 /tmp/.X11-unix/X0
d53cf638 stream-ord 00000000 00000000 /tmp/.X11-unix/X0
d53cf740 stream-ord 00000000 d57ca0c0 /tmp/.X11-unix/X0
d53cf848 stream-ord 00000000 00000000
d53cf950 stream-ord 00000000 00000000 /tmp/.X11-unix/X0
d53cfa58 stream-ord 00000000 00000000 /tmp/.X11-unix/X0
d53cfb60 stream-ord 00000000 d57ca0c0 /tmp/.X11-unix/X0
d53cfc68 stream-ord 00000000 d57ca0c0 /tmp/.X11-unix/X0
d53cfd70 stream-ord d57ca0c0 00000000 /tmp/.X11-unix/X0
d53cfe78 stream-ord d53d0cc0 00000000 /var/run/.inetd.uds
----------------------

What does this information mean??

Thanks,

Fernanda
Reply With Quote
  #7  
Old 06-26-2008
DukeNuke2's Avatar
Soulman
 

Join Date: Jul 2006
Location: Germany, Berlin
Posts: 1,484
Quote:
Originally Posted by incredible View Post
sorry typo error , it should be netstat -rn |grep LISTEN
no, "netstat -an" was right. was my fault
Reply With Quote
Google The UNIX and Linux Forums
Reply

Tags
solaris

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 10:49 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0