EQX Server Manual
Revision 2.2 Page 33
dpkg –l vim
||/ NAME VERSION DESCRIPTION
+++-==========================================================================
Ii nano 2.0.2-1 free pico clone with some new features
netstat
netstat is a tool for checking the status of the network.
You can check that the server is accepting connections by running netstat -tl and looking for the port
numbers in the output.
netstat -tl
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 *:1248 *:* LISTEN
tcp 0 0 localhost:2208 *:* LISTEN
tcp 0 0 *:9750 *:* LISTEN
tcp 0 0 localhost:ipp *:* LISTEN
tcp 0 0 *:8765 *:* LISTEN
tcp 0 0 localhost:2207 *:* LISTEN
tcp6 0 0 *:ssh *:* LISTEN
You can also check the routing configuration using -rn
netstat -rn
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
192.168.3.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
192.168.192.0 0.0.0.0 255.255.192.0 U 0 0 0 eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth1
0.0.0.0 192.168.3.1 0.0.0.0 UG 0 0 0 eth1
netstat
displays a list of ports that are open on your system. This is useful to see what ports the server is actively
listening on.
To see ports relevant for our uses, execute:
netstat -an –tcp
dmesg
dmesg shows the kernel log. It is useful for checking if devices were detected and added properly.
tail
tail allows you to view the end of a file, which is useful when checking logs. Adding the -f parameter
updates the screen when a new entry is added to the file. Code similar to this example displays anytime
there is an update to the dmesg service log:
EQXPRI:~#tail -f /var/log/dmesg