Thursday, August 15, 2013

NETSTAT COMMAND FOR QUICK NETWORK RELATED INFORMATION


All ports can be listed using following command:
[root@cbitss ~]# netstat -a  | more 
Active Internet connections (servers and established) 
Proto Recv-Q Send-Q Local Address               Foreign Address             State      
tcp        0      0 *:rquotad                   *:*                         LISTEN      
tcp        0      0 *:38924                     *:*                         LISTEN      
tcp        0      0 *:59853                     *:*                         LISTEN      
tcp        0      0 *:sunrpc                    *:*                         LISTEN      
tcp        0      0 *:37589                     *:*                         LISTEN      

All tcp ports can be listed as follows:
[root@cbitss ~]# netstat -at 
Active Internet connections (servers and established) 
Proto Recv-Q Send-Q Local Address               Foreign Address             State      
tcp        0      0 *:rquotad                   *:*                         LISTEN      
tcp        0      0 *:38924                     *:*                         LISTEN      
tcp        0      0 *:59853                     *:*                         LISTEN      
tcp        0      0 *:sunrpc                    *:*                         LISTEN      
tcp        0      0 *:37589                     *:*                         LISTEN      
tcp        0      0 *:ssh                       *:*                         LISTEN      
tcp        0      0 localhost:ipp               *:*                         LISTEN      
tcp        0      0 localhost:smtp              *:*                         LISTEN      
tcp        0      0 *:34394                     *:*                         LISTEN      
tcp        0      0 *:nfs                       *:*                         LISTEN      
tcp        0      0 *:962                       *:*                         LISTEN      
tcp        0      0 *:36034                     *:*                         LISTEN      
tcp        0      0 *:36103                     *:*                         LISTEN      
tcp        0      0 192.168.1.28:45021          del01s06-in-f22.1e100:https ESTABLISHED 
tcp        1      0 192.168.1.28:38722          a96-17-181-51.deploy.a:http CLOSE_WAIT  
tcp        0      0 *:40170                     *:*                         LISTEN      
tcp        0      0 *:54990                     *:*                         LISTEN      
tcp        0      0 *:sunrpc                    *:*                         LISTEN
http://cbitss.in/

0 comments:

Post a Comment