/l3/users/17-12-2012/NT-BSDnet/freebsd1.net.nt/root :1 :2 :3 :4 :5 :6 :7 :8 :9 :10 :11 :12 :13 :14 :15 :16 :17 :18 :19 :20 :21 :22 :23 :24 |
|
#sockstat
USER COMMAND PID FD PROTO LOCAL ADDRESS FOREIGN ADDRESS root sshd 3251 3 tcp4 192.168.13.21:22 192.168.15.101:49158 root inetd 1279 6 dgram -> /var/run/logpriv smmsp sendmail 1240 3 dgram -> /var/run/log root sendmail 1236 3 dgram -> /var/run/logpriv root sendmail 1236 4 tcp4 127.0.0.1:25 *:* root sshd 1228 3 tcp6 *:22 *:* root sshd 1228 4 tcp4 *:22 *:* root syslogd 931 4 dgram /var/run/log root syslogd 931 5 dgram /var/run/logpriv root syslogd 931 6 udp6 *:514 *:* root syslogd 931 7 udp4 *:514 *:* root devd 777 4 stream /var/run/devd.pipe root moused 746 4 stream /var/run/devd.pipe |
#sockstat
USER COMMAND PID FD PROTO LOCAL ADDRESS FOREIGN ADDRESS root sshd 3251 3 tcp4 192.168.13.21:22 192.168.15.101:49158 root inetd 1279 6 dgram -> /var/run/logpriv smmsp sendmail 1240 3 dgram -> /var/run/log root sendmail 1236 3 dgram -> /var/run/logpriv root sendmail 1236 4 tcp4 127.0.0.1:25 *:* root sshd 1228 3 tcp6 *:22 *:* root sshd 1228 4 tcp4 *:22 *:* root syslogd 931 4 dgram /var/run/log root syslogd 931 5 dgram /var/run/logpriv root syslogd 931 6 udp6 *:514 *:* root syslogd 931 7 udp4 *:514 *:* root devd 777 4 stream /var/run/devd.pipe root moused 746 4 stream /var/run/devd.pipe |
#sockstat
USER COMMAND PID FD PROTO LOCAL ADDRESS FOREIGN ADDRESS root sshd 3251 3 tcp4 192.168.13.21:22 192.168.15.101:49158 root inetd 1279 6 dgram -> /var/run/logpriv smmsp sendmail 1240 3 dgram -> /var/run/log root sendmail 1236 3 dgram -> /var/run/logpriv root sendmail 1236 4 tcp4 127.0.0.1:25 *:* root sshd 1228 3 tcp6 *:22 *:* root sshd 1228 4 tcp4 *:22 *:* root syslogd 931 4 dgram /var/run/log root syslogd 931 5 dgram /var/run/logpriv root syslogd 931 6 udp6 *:514 *:* root syslogd 931 7 udp4 *:514 *:* root devd 777 4 stream /var/run/devd.pipe root moused 746 4 stream /var/run/devd.pipe |
#sockstat -4
USER COMMAND PID FD PROTO LOCAL ADDRESS FOREIGN ADDRESS root sshd 3251 3 tcp4 192.168.13.21:22 192.168.15.101:49158 root sendmail 1236 4 tcp4 127.0.0.1:25 *:* root sshd 1228 4 tcp4 *:22 *:* root syslogd 931 7 udp4 *:514 *:* |
#sockstat -4
USER COMMAND PID FD PROTO LOCAL ADDRESS FOREIGN ADDRESS root sshd 3251 3 tcp4 192.168.13.21:22 192.168.15.101:49158 root sendmail 1236 4 tcp4 127.0.0.1:25 *:* root sshd 1228 4 tcp4 *:22 *:* root syslogd 931 7 udp4 *:514 *:* |
#sockstat -4
USER COMMAND PID FD PROTO LOCAL ADDRESS FOREIGN ADDRESS root sshd 3251 3 tcp4 192.168.13.21:22 192.168.15.101:49158 root sendmail 1236 4 tcp4 127.0.0.1:25 *:* root sshd 1228 4 tcp4 *:22 *:* root syslogd 931 7 udp4 *:514 *:* |
#sockstat -4
USER COMMAND PID FD PROTO LOCAL ADDRESS FOREIGN ADDRESS root sshd 3251 3 tcp4 192.168.13.21:22 192.168.15.101:49158 root sendmail 1236 4 tcp4 127.0.0.1:25 *:* root sshd 1228 4 tcp4 *:22 *:* root syslogd 931 7 udp4 *:514 *:* |
#netstat
Active Internet connections Proto Recv-Q Send-Q Local Address Foreign Address (state) tcp4 0 0 freebsd1.30469 xgu.ru.18030 TIME_WAIT tcp4 0 0 freebsd1.10752 xgu.ru.18030 TIME_WAIT tcp4 0 0 freebsd1.19466 xgu.ru.18030 TIME_WAIT tcp4 0 0 freebsd1.35660 xgu.ru.18030 TIME_WAIT tcp4 0 0 freebsd1.27903 xgu.ru.18030 TIME_WAIT tcp4 0 0 freebsd1.51578 xgu.ru.18030 TIME_WAIT tcp4 0 52 freebsd1.ssh 192.168.15.101.49158 ESTABLISHED Active UNIX domain sockets Address Type Recv-Q Send-Q Inode Conn Refs Nextref Addr c3918d70 stream 0 0 c390fc90 0 0 0 /var/run/devd.pipe c3918408 dgram 0 0 0 c3918764 0 c3918560 c39184b4 dgram 0 0 0 c3918810 0 0 c3918560 dgram 0 0 0 c3918764 0 0 c3918764 dgram 0 0 c3b0510c 0 c3918408 0 /var/run/logpriv c3918810 dgram 0 0 c3b05218 0 c39184b4 0 /var/run/log |
#netstat
Active Internet connections Proto Recv-Q Send-Q Local Address Foreign Address (state) tcp4 0 0 freebsd1.30469 xgu.ru.18030 TIME_WAIT tcp4 0 0 freebsd1.10752 xgu.ru.18030 TIME_WAIT tcp4 0 0 freebsd1.19466 xgu.ru.18030 TIME_WAIT tcp4 0 0 freebsd1.35660 xgu.ru.18030 TIME_WAIT tcp4 0 0 freebsd1.27903 xgu.ru.18030 TIME_WAIT tcp4 0 0 freebsd1.51578 xgu.ru.18030 TIME_WAIT tcp4 0 52 freebsd1.ssh 192.168.15.101.49158 ESTABLISHED Active UNIX domain sockets Address Type Recv-Q Send-Q Inode Conn Refs Nextref Addr c3918d70 stream 0 0 c390fc90 0 0 0 /var/run/devd.pipe c3918408 dgram 0 0 0 c3918764 0 c3918560 c39184b4 dgram 0 0 0 c3918810 0 0 c3918560 dgram 0 0 0 c3918764 0 0 c3918764 dgram 0 0 c3b0510c 0 c3918408 0 /var/run/logpriv c3918810 dgram 0 0 c3b05218 0 c39184b4 0 /var/run/log |
#netstat
Active Internet connections Proto Recv-Q Send-Q Local Address Foreign Address (state) tcp4 0 0 freebsd1.30469 xgu.ru.18030 TIME_WAIT tcp4 0 0 freebsd1.10752 xgu.ru.18030 TIME_WAIT tcp4 0 0 freebsd1.19466 xgu.ru.18030 TIME_WAIT tcp4 0 0 freebsd1.35660 xgu.ru.18030 TIME_WAIT tcp4 0 0 freebsd1.27903 xgu.ru.18030 TIME_WAIT tcp4 0 0 freebsd1.51578 xgu.ru.18030 TIME_WAIT tcp4 0 52 freebsd1.ssh 192.168.15.101.49158 ESTABLISHED Active UNIX domain sockets Address Type Recv-Q Send-Q Inode Conn Refs Nextref Addr c3918d70 stream 0 0 c390fc90 0 0 0 /var/run/devd.pipe c3918408 dgram 0 0 0 c3918764 0 c3918560 c39184b4 dgram 0 0 0 c3918810 0 0 c3918560 dgram 0 0 0 c3918764 0 0 c3918764 dgram 0 0 c3b0510c 0 c3918408 0 /var/run/logpriv c3918810 dgram 0 0 c3b05218 0 c39184b4 0 /var/run/log |
#netstat
Active Internet connections Proto Recv-Q Send-Q Local Address Foreign Address (state) tcp4 0 0 freebsd1.30469 xgu.ru.18030 TIME_WAIT tcp4 0 0 freebsd1.10752 xgu.ru.18030 TIME_WAIT tcp4 0 0 freebsd1.19466 xgu.ru.18030 TIME_WAIT tcp4 0 0 freebsd1.35660 xgu.ru.18030 TIME_WAIT tcp4 0 0 freebsd1.27903 xgu.ru.18030 TIME_WAIT tcp4 0 0 freebsd1.51578 xgu.ru.18030 TIME_WAIT tcp4 0 52 freebsd1.ssh 192.168.15.101.49158 ESTABLISHED Active UNIX domain sockets Address Type Recv-Q Send-Q Inode Conn Refs Nextref Addr c3918d70 stream 0 0 c390fc90 0 0 0 /var/run/devd.pipe c3918408 dgram 0 0 0 c3918764 0 c3918560 c39184b4 dgram 0 0 0 c3918810 0 0 c3918560 dgram 0 0 0 c3918764 0 0 c3918764 dgram 0 0 c3b0510c 0 c3918408 0 /var/run/logpriv c3918810 dgram 0 0 c3b05218 0 c39184b4 0 /var/run/log |
#netstat -l -p
netstat: option requires an argument -- p usage: netstat [-AaLnSWx] [-f protocol_family | -p protocol] [-M core] [-N system] netstat -i | -I interface [-abdhntW] [-f address_family] [-M core] [-N system] netstat -w wait [-I interface] [-d] [-M core] [-N system] [-q howmany] netstat -s [-s] [-z] [-f protocol_family | -p protocol] [-M core] [-N system] netstat -i | -I interface -s [-f protocol_family | -p protocol] [-M core] [-N system] netstat -m [-M core] [-N system] netstat -B [-I interface] netstat -r [-AanW] [-f address_family] [-M core] [-N system] netstat -rs [-s] [-M core] [-N system] netstat -g [-W] [-f address_family] [-M core] [-N system] netstat -gs [-s] [-f address_family] [-M core] [-N system] |
#netstat -l -p
netstat: option requires an argument -- p usage: netstat [-AaLnSWx] [-f protocol_family | -p protocol] [-M core] [-N system] netstat -i | -I interface [-abdhntW] [-f address_family] [-M core] [-N system] netstat -w wait [-I interface] [-d] [-M core] [-N system] [-q howmany] netstat -s [-s] [-z] [-f protocol_family | -p protocol] [-M core] [-N system] netstat -i | -I interface -s [-f protocol_family | -p protocol] [-M core] [-N system] netstat -m [-M core] [-N system] netstat -B [-I interface] netstat -r [-AanW] [-f address_family] [-M core] [-N system] netstat -rs [-s] [-M core] [-N system] netstat -g [-W] [-f address_family] [-M core] [-N system] netstat -gs [-s] [-f address_family] [-M core] [-N system] |
#netstat -l -p
netstat: option requires an argument -- p usage: netstat [-AaLnSWx] [-f protocol_family | -p protocol] [-M core] [-N system] netstat -i | -I interface [-abdhntW] [-f address_family] [-M core] [-N system] netstat -w wait [-I interface] [-d] [-M core] [-N system] [-q howmany] netstat -s [-s] [-z] [-f protocol_family | -p protocol] [-M core] [-N system] netstat -i | -I interface -s [-f protocol_family | -p protocol] [-M core] [-N system] netstat -m [-M core] [-N system] netstat -B [-I interface] netstat -r [-AanW] [-f address_family] [-M core] [-N system] netstat -rs [-s] [-M core] [-N system] netstat -g [-W] [-f address_family] [-M core] [-N system] netstat -gs [-s] [-f address_family] [-M core] [-N system] |
#netstat -l -p
netstat: option requires an argument -- p usage: netstat [-AaLnSWx] [-f protocol_family | -p protocol] [-M core] [-N system] netstat -i | -I interface [-abdhntW] [-f address_family] [-M core] [-N system] netstat -w wait [-I interface] [-d] [-M core] [-N system] [-q howmany] netstat -s [-s] [-z] [-f protocol_family | -p protocol] [-M core] [-N system] netstat -i | -I interface -s [-f protocol_family | -p protocol] [-M core] [-N system] netstat -m [-M core] [-N system] netstat -B [-I interface] netstat -r [-AanW] [-f address_family] [-M core] [-N system] netstat -rs [-s] [-M core] [-N system] netstat -g [-W] [-f address_family] [-M core] [-N system] netstat -gs [-s] [-f address_family] [-M core] [-N system] |
#netstat -l
Active Internet connections Proto Recv-Q Send-Q Local Address Foreign Address (state) tcp4 0 0 freebsd1.54360 xgu.ru.18030 TIME_WAIT tcp4 0 0 freebsd1.16466 xgu.ru.18030 TIME_WAIT tcp4 0 0 freebsd1.50690 xgu.ru.18030 TIME_WAIT tcp4 0 0 freebsd1.23448 xgu.ru.18030 TIME_WAIT tcp4 0 0 freebsd1.30469 xgu.ru.18030 TIME_WAIT tcp4 0 0 freebsd1.10752 xgu.ru.18030 TIME_WAIT tcp4 0 0 freebsd1.19466 xgu.ru.18030 TIME_WAIT tcp4 0 0 freebsd1.35660 xgu.ru.18030 TIME_WAIT tcp4 0 0 freebsd1.27903 xgu.ru.18030 TIME_WAIT tcp4 0 0 freebsd1.51578 xgu.ru.18030 TIME_WAIT tcp4 0 52 freebsd1.ssh 192.168.15.101.49158 ESTABLISHED Active UNIX domain sockets Address Type Recv-Q Send-Q Inode Conn Refs Nextref Addr c3918d70 stream 0 0 c390fc90 0 0 0 /var/run/devd.pipe c3918408 dgram 0 0 0 c3918764 0 c3918560 c39184b4 dgram 0 0 0 c3918810 0 0 c3918560 dgram 0 0 0 c3918764 0 0 c3918764 dgram 0 0 c3b0510c 0 c3918408 0 /var/run/logpriv c3918810 dgram 0 0 c3b05218 0 c39184b4 0 /var/run/log |
#netstat -l
Active Internet connections Proto Recv-Q Send-Q Local Address Foreign Address (state) tcp4 0 0 freebsd1.54360 xgu.ru.18030 TIME_WAIT tcp4 0 0 freebsd1.16466 xgu.ru.18030 TIME_WAIT tcp4 0 0 freebsd1.50690 xgu.ru.18030 TIME_WAIT tcp4 0 0 freebsd1.23448 xgu.ru.18030 TIME_WAIT tcp4 0 0 freebsd1.30469 xgu.ru.18030 TIME_WAIT tcp4 0 0 freebsd1.10752 xgu.ru.18030 TIME_WAIT tcp4 0 0 freebsd1.19466 xgu.ru.18030 TIME_WAIT tcp4 0 0 freebsd1.35660 xgu.ru.18030 TIME_WAIT tcp4 0 0 freebsd1.27903 xgu.ru.18030 TIME_WAIT tcp4 0 0 freebsd1.51578 xgu.ru.18030 TIME_WAIT tcp4 0 52 freebsd1.ssh 192.168.15.101.49158 ESTABLISHED Active UNIX domain sockets Address Type Recv-Q Send-Q Inode Conn Refs Nextref Addr c3918d70 stream 0 0 c390fc90 0 0 0 /var/run/devd.pipe c3918408 dgram 0 0 0 c3918764 0 c3918560 c39184b4 dgram 0 0 0 c3918810 0 0 c3918560 dgram 0 0 0 c3918764 0 0 c3918764 dgram 0 0 c3b0510c 0 c3918408 0 /var/run/logpriv c3918810 dgram 0 0 c3b05218 0 c39184b4 0 /var/run/log |
#netstat -l
Active Internet connections Proto Recv-Q Send-Q Local Address Foreign Address (state) tcp4 0 0 freebsd1.54360 xgu.ru.18030 TIME_WAIT tcp4 0 0 freebsd1.16466 xgu.ru.18030 TIME_WAIT tcp4 0 0 freebsd1.50690 xgu.ru.18030 TIME_WAIT tcp4 0 0 freebsd1.23448 xgu.ru.18030 TIME_WAIT tcp4 0 0 freebsd1.30469 xgu.ru.18030 TIME_WAIT tcp4 0 0 freebsd1.10752 xgu.ru.18030 TIME_WAIT tcp4 0 0 freebsd1.19466 xgu.ru.18030 TIME_WAIT tcp4 0 0 freebsd1.35660 xgu.ru.18030 TIME_WAIT tcp4 0 0 freebsd1.27903 xgu.ru.18030 TIME_WAIT tcp4 0 0 freebsd1.51578 xgu.ru.18030 TIME_WAIT tcp4 0 52 freebsd1.ssh 192.168.15.101.49158 ESTABLISHED Active UNIX domain sockets Address Type Recv-Q Send-Q Inode Conn Refs Nextref Addr c3918d70 stream 0 0 c390fc90 0 0 0 /var/run/devd.pipe c3918408 dgram 0 0 0 c3918764 0 c3918560 c39184b4 dgram 0 0 0 c3918810 0 0 c3918560 dgram 0 0 0 c3918764 0 0 c3918764 dgram 0 0 c3b0510c 0 c3918408 0 /var/run/logpriv c3918810 dgram 0 0 c3b05218 0 c39184b4 0 /var/run/log |
#netstat -l
Active Internet connections Proto Recv-Q Send-Q Local Address Foreign Address (state) tcp4 0 0 freebsd1.54360 xgu.ru.18030 TIME_WAIT tcp4 0 0 freebsd1.16466 xgu.ru.18030 TIME_WAIT tcp4 0 0 freebsd1.50690 xgu.ru.18030 TIME_WAIT tcp4 0 0 freebsd1.23448 xgu.ru.18030 TIME_WAIT tcp4 0 0 freebsd1.30469 xgu.ru.18030 TIME_WAIT tcp4 0 0 freebsd1.10752 xgu.ru.18030 TIME_WAIT tcp4 0 0 freebsd1.19466 xgu.ru.18030 TIME_WAIT tcp4 0 0 freebsd1.35660 xgu.ru.18030 TIME_WAIT tcp4 0 0 freebsd1.27903 xgu.ru.18030 TIME_WAIT tcp4 0 0 freebsd1.51578 xgu.ru.18030 TIME_WAIT tcp4 0 52 freebsd1.ssh 192.168.15.101.49158 ESTABLISHED Active UNIX domain sockets Address Type Recv-Q Send-Q Inode Conn Refs Nextref Addr c3918d70 stream 0 0 c390fc90 0 0 0 /var/run/devd.pipe c3918408 dgram 0 0 0 c3918764 0 c3918560 c39184b4 dgram 0 0 0 c3918810 0 0 c3918560 dgram 0 0 0 c3918764 0 0 c3918764 dgram 0 0 c3b0510c 0 c3918408 0 /var/run/logpriv c3918810 dgram 0 0 c3b05218 0 c39184b4 0 /var/run/log |
#netstat -lp
netstat: option requires an argument -- p usage: netstat [-AaLnSWx] [-f protocol_family | -p protocol] [-M core] [-N system] netstat -i | -I interface [-abdhntW] [-f address_family] [-M core] [-N system] netstat -w wait [-I interface] [-d] [-M core] [-N system] [-q howmany] netstat -s [-s] [-z] [-f protocol_family | -p protocol] [-M core] [-N system] netstat -i | -I interface -s [-f protocol_family | -p protocol] [-M core] [-N system] netstat -m [-M core] [-N system] netstat -B [-I interface] netstat -r [-AanW] [-f address_family] [-M core] [-N system] netstat -rs [-s] [-M core] [-N system] netstat -g [-W] [-f address_family] [-M core] [-N system] netstat -gs [-s] [-f address_family] [-M core] [-N system] |
#netstat -lp
netstat: option requires an argument -- p usage: netstat [-AaLnSWx] [-f protocol_family | -p protocol] [-M core] [-N system] netstat -i | -I interface [-abdhntW] [-f address_family] [-M core] [-N system] netstat -w wait [-I interface] [-d] [-M core] [-N system] [-q howmany] netstat -s [-s] [-z] [-f protocol_family | -p protocol] [-M core] [-N system] netstat -i | -I interface -s [-f protocol_family | -p protocol] [-M core] [-N system] netstat -m [-M core] [-N system] netstat -B [-I interface] netstat -r [-AanW] [-f address_family] [-M core] [-N system] netstat -rs [-s] [-M core] [-N system] netstat -g [-W] [-f address_family] [-M core] [-N system] netstat -gs [-s] [-f address_family] [-M core] [-N system] |
#netstat -lp
netstat: option requires an argument -- p usage: netstat [-AaLnSWx] [-f protocol_family | -p protocol] [-M core] [-N system] netstat -i | -I interface [-abdhntW] [-f address_family] [-M core] [-N system] netstat -w wait [-I interface] [-d] [-M core] [-N system] [-q howmany] netstat -s [-s] [-z] [-f protocol_family | -p protocol] [-M core] [-N system] netstat -i | -I interface -s [-f protocol_family | -p protocol] [-M core] [-N system] netstat -m [-M core] [-N system] netstat -B [-I interface] netstat -r [-AanW] [-f address_family] [-M core] [-N system] netstat -rs [-s] [-M core] [-N system] netstat -g [-W] [-f address_family] [-M core] [-N system] netstat -gs [-s] [-f address_family] [-M core] [-N system] |
#netstat -lp
netstat: option requires an argument -- p usage: netstat [-AaLnSWx] [-f protocol_family | -p protocol] [-M core] [-N system] netstat -i | -I interface [-abdhntW] [-f address_family] [-M core] [-N system] netstat -w wait [-I interface] [-d] [-M core] [-N system] [-q howmany] netstat -s [-s] [-z] [-f protocol_family | -p protocol] [-M core] [-N system] netstat -i | -I interface -s [-f protocol_family | -p protocol] [-M core] [-N system] netstat -m [-M core] [-N system] netstat -B [-I interface] netstat -r [-AanW] [-f address_family] [-M core] [-N system] netstat -rs [-s] [-M core] [-N system] netstat -g [-W] [-f address_family] [-M core] [-N system] netstat -gs [-s] [-f address_family] [-M core] [-N system] |
#netstat -l p
Active Internet connections Proto Recv-Q Send-Q Local Address Foreign Address (state) tcp4 0 0 freebsd1.10030 xgu.ru.18030 TIME_WAIT tcp4 0 0 freebsd1.39034 xgu.ru.18030 TIME_WAIT tcp4 0 0 freebsd1.54360 xgu.ru.18030 TIME_WAIT tcp4 0 0 freebsd1.16466 xgu.ru.18030 TIME_WAIT tcp4 0 0 freebsd1.50690 xgu.ru.18030 TIME_WAIT tcp4 0 0 freebsd1.23448 xgu.ru.18030 TIME_WAIT tcp4 0 0 freebsd1.30469 xgu.ru.18030 TIME_WAIT tcp4 0 0 freebsd1.10752 xgu.ru.18030 TIME_WAIT tcp4 0 52 freebsd1.ssh 192.168.15.101.49158 ESTABLISHED Active UNIX domain sockets Address Type Recv-Q Send-Q Inode Conn Refs Nextref Addr c3918d70 stream 0 0 c390fc90 0 0 0 /var/run/devd.pipe c3918408 dgram 0 0 0 c3918764 0 c3918560 c39184b4 dgram 0 0 0 c3918810 0 0 c3918560 dgram 0 0 0 c3918764 0 0 c3918764 dgram 0 0 c3b0510c 0 c3918408 0 /var/run/logpriv c3918810 dgram 0 0 c3b05218 0 c39184b4 0 /var/run/log |
#netstat -l p
Active Internet connections Proto Recv-Q Send-Q Local Address Foreign Address (state) tcp4 0 0 freebsd1.10030 xgu.ru.18030 TIME_WAIT tcp4 0 0 freebsd1.39034 xgu.ru.18030 TIME_WAIT tcp4 0 0 freebsd1.54360 xgu.ru.18030 TIME_WAIT tcp4 0 0 freebsd1.16466 xgu.ru.18030 TIME_WAIT tcp4 0 0 freebsd1.50690 xgu.ru.18030 TIME_WAIT tcp4 0 0 freebsd1.23448 xgu.ru.18030 TIME_WAIT tcp4 0 0 freebsd1.30469 xgu.ru.18030 TIME_WAIT tcp4 0 0 freebsd1.10752 xgu.ru.18030 TIME_WAIT tcp4 0 52 freebsd1.ssh 192.168.15.101.49158 ESTABLISHED Active UNIX domain sockets Address Type Recv-Q Send-Q Inode Conn Refs Nextref Addr c3918d70 stream 0 0 c390fc90 0 0 0 /var/run/devd.pipe c3918408 dgram 0 0 0 c3918764 0 c3918560 c39184b4 dgram 0 0 0 c3918810 0 0 c3918560 dgram 0 0 0 c3918764 0 0 c3918764 dgram 0 0 c3b0510c 0 c3918408 0 /var/run/logpriv c3918810 dgram 0 0 c3b05218 0 c39184b4 0 /var/run/log |
#netstat -nlp
netstat: option requires an argument -- p usage: netstat [-AaLnSWx] [-f protocol_family | -p protocol] [-M core] [-N system] netstat -i | -I interface [-abdhntW] [-f address_family] [-M core] [-N system] netstat -w wait [-I interface] [-d] [-M core] [-N system] [-q howmany] netstat -s [-s] [-z] [-f protocol_family | -p protocol] [-M core] [-N system] netstat -i | -I interface -s [-f protocol_family | -p protocol] [-M core] [-N system] netstat -m [-M core] [-N system] netstat -B [-I interface] netstat -r [-AanW] [-f address_family] [-M core] [-N system] netstat -rs [-s] [-M core] [-N system] netstat -g [-W] [-f address_family] [-M core] [-N system] netstat -gs [-s] [-f address_family] [-M core] [-N system] |
#netstat -nlp
netstat: option requires an argument -- p usage: netstat [-AaLnSWx] [-f protocol_family | -p protocol] [-M core] [-N system] netstat -i | -I interface [-abdhntW] [-f address_family] [-M core] [-N system] netstat -w wait [-I interface] [-d] [-M core] [-N system] [-q howmany] netstat -s [-s] [-z] [-f protocol_family | -p protocol] [-M core] [-N system] netstat -i | -I interface -s [-f protocol_family | -p protocol] [-M core] [-N system] netstat -m [-M core] [-N system] netstat -B [-I interface] netstat -r [-AanW] [-f address_family] [-M core] [-N system] netstat -rs [-s] [-M core] [-N system] netstat -g [-W] [-f address_family] [-M core] [-N system] netstat -gs [-s] [-f address_family] [-M core] [-N system] |
#netstat -nlp
netstat: option requires an argument -- p usage: netstat [-AaLnSWx] [-f protocol_family | -p protocol] [-M core] [-N system] netstat -i | -I interface [-abdhntW] [-f address_family] [-M core] [-N system] netstat -w wait [-I interface] [-d] [-M core] [-N system] [-q howmany] netstat -s [-s] [-z] [-f protocol_family | -p protocol] [-M core] [-N system] netstat -i | -I interface -s [-f protocol_family | -p protocol] [-M core] [-N system] netstat -m [-M core] [-N system] netstat -B [-I interface] netstat -r [-AanW] [-f address_family] [-M core] [-N system] netstat -rs [-s] [-M core] [-N system] netstat -g [-W] [-f address_family] [-M core] [-N system] netstat -gs [-s] [-f address_family] [-M core] [-N system] |
#netstat -nlp
netstat: option requires an argument -- p usage: netstat [-AaLnSWx] [-f protocol_family | -p protocol] [-M core] [-N system] netstat -i | -I interface [-abdhntW] [-f address_family] [-M core] [-N system] netstat -w wait [-I interface] [-d] [-M core] [-N system] [-q howmany] netstat -s [-s] [-z] [-f protocol_family | -p protocol] [-M core] [-N system] netstat -i | -I interface -s [-f protocol_family | -p protocol] [-M core] [-N system] netstat -m [-M core] [-N system] netstat -B [-I interface] netstat -r [-AanW] [-f address_family] [-M core] [-N system] netstat -rs [-s] [-M core] [-N system] netstat -g [-W] [-f address_family] [-M core] [-N system] netstat -gs [-s] [-f address_family] [-M core] [-N system] |
#netstat -4
netstat: illegal option -- 4 usage: netstat [-AaLnSWx] [-f protocol_family | -p protocol] [-M core] [-N system] netstat -i | -I interface [-abdhntW] [-f address_family] [-M core] [-N system] netstat -w wait [-I interface] [-d] [-M core] [-N system] [-q howmany] netstat -s [-s] [-z] [-f protocol_family | -p protocol] [-M core] [-N system] netstat -i | -I interface -s [-f protocol_family | -p protocol] [-M core] [-N system] netstat -m [-M core] [-N system] netstat -B [-I interface] netstat -r [-AanW] [-f address_family] [-M core] [-N system] netstat -rs [-s] [-M core] [-N system] netstat -g [-W] [-f address_family] [-M core] [-N system] netstat -gs [-s] [-f address_family] [-M core] [-N system] |
#netstat -4
netstat: illegal option -- 4 usage: netstat [-AaLnSWx] [-f protocol_family | -p protocol] [-M core] [-N system] netstat -i | -I interface [-abdhntW] [-f address_family] [-M core] [-N system] netstat -w wait [-I interface] [-d] [-M core] [-N system] [-q howmany] netstat -s [-s] [-z] [-f protocol_family | -p protocol] [-M core] [-N system] netstat -i | -I interface -s [-f protocol_family | -p protocol] [-M core] [-N system] netstat -m [-M core] [-N system] netstat -B [-I interface] netstat -r [-AanW] [-f address_family] [-M core] [-N system] netstat -rs [-s] [-M core] [-N system] netstat -g [-W] [-f address_family] [-M core] [-N system] netstat -gs [-s] [-f address_family] [-M core] [-N system] |
#netstat -4
netstat: illegal option -- 4 usage: netstat [-AaLnSWx] [-f protocol_family | -p protocol] [-M core] [-N system] netstat -i | -I interface [-abdhntW] [-f address_family] [-M core] [-N system] netstat -w wait [-I interface] [-d] [-M core] [-N system] [-q howmany] netstat -s [-s] [-z] [-f protocol_family | -p protocol] [-M core] [-N system] netstat -i | -I interface -s [-f protocol_family | -p protocol] [-M core] [-N system] netstat -m [-M core] [-N system] netstat -B [-I interface] netstat -r [-AanW] [-f address_family] [-M core] [-N system] netstat -rs [-s] [-M core] [-N system] netstat -g [-W] [-f address_family] [-M core] [-N system] netstat -gs [-s] [-f address_family] [-M core] [-N system] |
#netstat -4
netstat: illegal option -- 4 usage: netstat [-AaLnSWx] [-f protocol_family | -p protocol] [-M core] [-N system] netstat -i | -I interface [-abdhntW] [-f address_family] [-M core] [-N system] netstat -w wait [-I interface] [-d] [-M core] [-N system] [-q howmany] netstat -s [-s] [-z] [-f protocol_family | -p protocol] [-M core] [-N system] netstat -i | -I interface -s [-f protocol_family | -p protocol] [-M core] [-N system] netstat -m [-M core] [-N system] netstat -B [-I interface] netstat -r [-AanW] [-f address_family] [-M core] [-N system] netstat -rs [-s] [-M core] [-N system] netstat -g [-W] [-f address_family] [-M core] [-N system] netstat -gs [-s] [-f address_family] [-M core] [-N system] |
#sockstat
USER COMMAND PID FD PROTO LOCAL ADDRESS FOREIGN ADDRESS root sshd 3251 3 tcp4 192.168.13.21:22 192.168.15.101:49158 root inetd 1279 6 dgram -> /var/run/logpriv smmsp sendmail 1240 3 dgram -> /var/run/log root sendmail 1236 3 dgram -> /var/run/logpriv root sendmail 1236 4 tcp4 127.0.0.1:25 *:* root sshd 1228 3 tcp6 *:22 *:* root sshd 1228 4 tcp4 *:22 *:* root syslogd 931 4 dgram /var/run/log root syslogd 931 5 dgram /var/run/logpriv root syslogd 931 6 udp6 *:514 *:* root syslogd 931 7 udp4 *:514 *:* root devd 777 4 stream /var/run/devd.pipe root moused 746 4 stream /var/run/devd.pipe |
#sockstat
USER COMMAND PID FD PROTO LOCAL ADDRESS FOREIGN ADDRESS root sshd 3251 3 tcp4 192.168.13.21:22 192.168.15.101:49158 root inetd 1279 6 dgram -> /var/run/logpriv smmsp sendmail 1240 3 dgram -> /var/run/log root sendmail 1236 3 dgram -> /var/run/logpriv root sendmail 1236 4 tcp4 127.0.0.1:25 *:* root sshd 1228 3 tcp6 *:22 *:* root sshd 1228 4 tcp4 *:22 *:* root syslogd 931 4 dgram /var/run/log root syslogd 931 5 dgram /var/run/logpriv root syslogd 931 6 udp6 *:514 *:* root syslogd 931 7 udp4 *:514 *:* root devd 777 4 stream /var/run/devd.pipe root moused 746 4 stream /var/run/devd.pipe |
#sockstat
USER COMMAND PID FD PROTO LOCAL ADDRESS FOREIGN ADDRESS root sshd 3251 3 tcp4 192.168.13.21:22 192.168.15.101:49158 root inetd 1279 6 dgram -> /var/run/logpriv smmsp sendmail 1240 3 dgram -> /var/run/log root sendmail 1236 3 dgram -> /var/run/logpriv root sendmail 1236 4 tcp4 127.0.0.1:25 *:* root sshd 1228 3 tcp6 *:22 *:* root sshd 1228 4 tcp4 *:22 *:* root syslogd 931 4 dgram /var/run/log root syslogd 931 5 dgram /var/run/logpriv root syslogd 931 6 udp6 *:514 *:* root syslogd 931 7 udp4 *:514 *:* root devd 777 4 stream /var/run/devd.pipe root moused 746 4 stream /var/run/devd.pipe |
#sockstat
USER COMMAND PID FD PROTO LOCAL ADDRESS FOREIGN ADDRESS root sshd 3251 3 tcp4 192.168.13.21:22 192.168.15.101:49158 root inetd 1279 6 dgram -> /var/run/logpriv smmsp sendmail 1240 3 dgram -> /var/run/log root sendmail 1236 3 dgram -> /var/run/logpriv root sendmail 1236 4 tcp4 127.0.0.1:25 *:* root sshd 1228 3 tcp6 *:22 *:* root sshd 1228 4 tcp4 *:22 *:* root syslogd 931 4 dgram /var/run/log root syslogd 931 5 dgram /var/run/logpriv root syslogd 931 6 udp6 *:514 *:* root syslogd 931 7 udp4 *:514 *:* root devd 777 4 stream /var/run/devd.pipe root moused 746 4 stream /var/run/devd.pipe |
#sockstat -4
USER COMMAND PID FD PROTO LOCAL ADDRESS FOREIGN ADDRESS root sshd 3251 3 tcp4 192.168.13.21:22 192.168.15.101:49158 root sendmail 1236 4 tcp4 127.0.0.1:25 *:* root sshd 1228 4 tcp4 *:22 *:* root syslogd 931 7 udp4 *:514 *:* |
#sockstat -4
USER COMMAND PID FD PROTO LOCAL ADDRESS FOREIGN ADDRESS root sshd 3251 3 tcp4 192.168.13.21:22 192.168.15.101:49158 root sendmail 1236 4 tcp4 127.0.0.1:25 *:* root sshd 1228 4 tcp4 *:22 *:* root syslogd 931 7 udp4 *:514 *:* |
#sockstat -4
USER COMMAND PID FD PROTO LOCAL ADDRESS FOREIGN ADDRESS root sshd 3251 3 tcp4 192.168.13.21:22 192.168.15.101:49158 root sendmail 1236 4 tcp4 127.0.0.1:25 *:* root sshd 1228 4 tcp4 *:22 *:* root syslogd 931 7 udp4 *:514 *:* |
#sockstat -4
USER COMMAND PID FD PROTO LOCAL ADDRESS FOREIGN ADDRESS root sshd 3251 3 tcp4 192.168.13.21:22 192.168.15.101:49158 root sendmail 1236 4 tcp4 127.0.0.1:25 *:* root sshd 1228 4 tcp4 *:22 *:* root syslogd 931 7 udp4 *:514 *:* |
#sockstat -6
USER COMMAND PID FD PROTO LOCAL ADDRESS FOREIGN ADDRESS root sshd 1228 3 tcp6 *:22 *:* root syslogd 931 6 udp6 *:514 *:* |
#sockstat -6
USER COMMAND PID FD PROTO LOCAL ADDRESS FOREIGN ADDRESS root sshd 1228 3 tcp6 *:22 *:* root syslogd 931 6 udp6 *:514 *:* |
#sockstat -6
USER COMMAND PID FD PROTO LOCAL ADDRESS FOREIGN ADDRESS root sshd 1228 3 tcp6 *:22 *:* root syslogd 931 6 udp6 *:514 *:* |
#sockstat -6
USER COMMAND PID FD PROTO LOCAL ADDRESS FOREIGN ADDRESS root sshd 1228 3 tcp6 *:22 *:* root syslogd 931 6 udp6 *:514 *:* |
#netstat -s
tcp: 31502 packets sent 18351 data packets (10246145 bytes) 0 data packets (0 bytes) retransmitted 0 data packets unnecessarily retransmitted 0 resends initiated by MTU discovery 10797 ack-only packets (36 delayed) 0 URG only packets 0 window probe packets 1850 window update packets ... 0 path MTU changes rip6: 0 messages received 0 checksum calculations on inbound 0 messages with bad checksum 0 messages dropped due to no socket 0 multicast messages dropped due to no socket 0 messages dropped due to full socket buffers 0 delivered 0 datagrams output |
#netstat -s
tcp: 31502 packets sent 18351 data packets (10246145 bytes) 0 data packets (0 bytes) retransmitted 0 data packets unnecessarily retransmitted 0 resends initiated by MTU discovery 10797 ack-only packets (36 delayed) 0 URG only packets 0 window probe packets 1850 window update packets ... 0 path MTU changes rip6: 0 messages received 0 checksum calculations on inbound 0 messages with bad checksum 0 messages dropped due to no socket 0 multicast messages dropped due to no socket 0 messages dropped due to full socket buffers 0 delivered 0 datagrams output |
#netstat -s
tcp: 31502 packets sent 18351 data packets (10246145 bytes) 0 data packets (0 bytes) retransmitted 0 data packets unnecessarily retransmitted 0 resends initiated by MTU discovery 10797 ack-only packets (36 delayed) 0 URG only packets 0 window probe packets 1850 window update packets ... 0 path MTU changes rip6: 0 messages received 0 checksum calculations on inbound 0 messages with bad checksum 0 messages dropped due to no socket 0 multicast messages dropped due to no socket 0 messages dropped due to full socket buffers 0 delivered 0 datagrams output |
#netstat -s
tcp: 31502 packets sent 18351 data packets (10246145 bytes) 0 data packets (0 bytes) retransmitted 0 data packets unnecessarily retransmitted 0 resends initiated by MTU discovery 10797 ack-only packets (36 delayed) 0 URG only packets 0 window probe packets 1850 window update packets ... 0 path MTU changes rip6: 0 messages received 0 checksum calculations on inbound 0 messages with bad checksum 0 messages dropped due to no socket 0 multicast messages dropped due to no socket 0 messages dropped due to full socket buffers 0 delivered 0 datagrams output |
#netstat -st
tcp: 31883 packets sent 18725 data packets (10326201 bytes) 0 data packets (0 bytes) retransmitted 0 data packets unnecessarily retransmitted 0 resends initiated by MTU discovery 10802 ack-only packets (37 delayed) 0 URG only packets 0 window probe packets 1850 window update packets ... 0 path MTU changes rip6: 0 messages received 0 checksum calculations on inbound 0 messages with bad checksum 0 messages dropped due to no socket 0 multicast messages dropped due to no socket 0 messages dropped due to full socket buffers 0 delivered 0 datagrams output |
#netstat -st
tcp: 31883 packets sent 18725 data packets (10326201 bytes) 0 data packets (0 bytes) retransmitted 0 data packets unnecessarily retransmitted 0 resends initiated by MTU discovery 10802 ack-only packets (37 delayed) 0 URG only packets 0 window probe packets 1850 window update packets ... 0 path MTU changes rip6: 0 messages received 0 checksum calculations on inbound 0 messages with bad checksum 0 messages dropped due to no socket 0 multicast messages dropped due to no socket 0 messages dropped due to full socket buffers 0 delivered 0 datagrams output |
#netstat -st
tcp: 31883 packets sent 18725 data packets (10326201 bytes) 0 data packets (0 bytes) retransmitted 0 data packets unnecessarily retransmitted 0 resends initiated by MTU discovery 10802 ack-only packets (37 delayed) 0 URG only packets 0 window probe packets 1850 window update packets ... 0 path MTU changes rip6: 0 messages received 0 checksum calculations on inbound 0 messages with bad checksum 0 messages dropped due to no socket 0 multicast messages dropped due to no socket 0 messages dropped due to full socket buffers 0 delivered 0 datagrams output |
#netstat -st
tcp: 31883 packets sent 18725 data packets (10326201 bytes) 0 data packets (0 bytes) retransmitted 0 data packets unnecessarily retransmitted 0 resends initiated by MTU discovery 10802 ack-only packets (37 delayed) 0 URG only packets 0 window probe packets 1850 window update packets ... 0 path MTU changes rip6: 0 messages received 0 checksum calculations on inbound 0 messages with bad checksum 0 messages dropped due to no socket 0 multicast messages dropped due to no socket 0 messages dropped due to full socket buffers 0 delivered 0 datagrams output |
#netstat -s -t
tcp: 32223 packets sent 19064 data packets (10351989 bytes) 0 data packets (0 bytes) retransmitted 0 data packets unnecessarily retransmitted 0 resends initiated by MTU discovery 10803 ack-only packets (37 delayed) 0 URG only packets 0 window probe packets 1850 window update packets ... 0 path MTU changes rip6: 0 messages received 0 checksum calculations on inbound 0 messages with bad checksum 0 messages dropped due to no socket 0 multicast messages dropped due to no socket 0 messages dropped due to full socket buffers 0 delivered 0 datagrams output |
#netstat -s -t
tcp: 32223 packets sent 19064 data packets (10351989 bytes) 0 data packets (0 bytes) retransmitted 0 data packets unnecessarily retransmitted 0 resends initiated by MTU discovery 10803 ack-only packets (37 delayed) 0 URG only packets 0 window probe packets 1850 window update packets ... 0 path MTU changes rip6: 0 messages received 0 checksum calculations on inbound 0 messages with bad checksum 0 messages dropped due to no socket 0 multicast messages dropped due to no socket 0 messages dropped due to full socket buffers 0 delivered 0 datagrams output |
#netstat -s -t
tcp: 32223 packets sent 19064 data packets (10351989 bytes) 0 data packets (0 bytes) retransmitted 0 data packets unnecessarily retransmitted 0 resends initiated by MTU discovery 10803 ack-only packets (37 delayed) 0 URG only packets 0 window probe packets 1850 window update packets ... 0 path MTU changes rip6: 0 messages received 0 checksum calculations on inbound 0 messages with bad checksum 0 messages dropped due to no socket 0 multicast messages dropped due to no socket 0 messages dropped due to full socket buffers 0 delivered 0 datagrams output |
#netstat -s -t
tcp: 32223 packets sent 19064 data packets (10351989 bytes) 0 data packets (0 bytes) retransmitted 0 data packets unnecessarily retransmitted 0 resends initiated by MTU discovery 10803 ack-only packets (37 delayed) 0 URG only packets 0 window probe packets 1850 window update packets ... 0 path MTU changes rip6: 0 messages received 0 checksum calculations on inbound 0 messages with bad checksum 0 messages dropped due to no socket 0 multicast messages dropped due to no socket 0 messages dropped due to full socket buffers 0 delivered 0 datagrams output |
#netstat -s -u
|
#netstat -s -u
|
#netstat -s -u
|
#netstat -s -u
|
#netstat -s -t
tcp: 32600 packets sent 19437 data packets (10421073 bytes) 0 data packets (0 bytes) retransmitted 0 data packets unnecessarily retransmitted 0 resends initiated by MTU discovery 10805 ack-only packets (37 delayed) 0 URG only packets 0 window probe packets 1850 window update packets ... 0 path MTU changes rip6: 0 messages received 0 checksum calculations on inbound 0 messages with bad checksum 0 messages dropped due to no socket 0 multicast messages dropped due to no socket 0 messages dropped due to full socket buffers 0 delivered 0 datagrams output |
#netstat -s -t
tcp: 32600 packets sent 19437 data packets (10421073 bytes) 0 data packets (0 bytes) retransmitted 0 data packets unnecessarily retransmitted 0 resends initiated by MTU discovery 10805 ack-only packets (37 delayed) 0 URG only packets 0 window probe packets 1850 window update packets ... 0 path MTU changes rip6: 0 messages received 0 checksum calculations on inbound 0 messages with bad checksum 0 messages dropped due to no socket 0 multicast messages dropped due to no socket 0 messages dropped due to full socket buffers 0 delivered 0 datagrams output |
#netstat -s -t -w
netstat: option requires an argument -- w usage: netstat [-AaLnSWx] [-f protocol_family | -p protocol] [-M core] [-N system] netstat -i | -I interface [-abdhntW] [-f address_family] [-M core] [-N system] netstat -w wait [-I interface] [-d] [-M core] [-N system] [-q howmany] netstat -s [-s] [-z] [-f protocol_family | -p protocol] [-M core] [-N system] netstat -i | -I interface -s [-f protocol_family | -p protocol] [-M core] [-N system] netstat -m [-M core] [-N system] netstat -B [-I interface] netstat -r [-AanW] [-f address_family] [-M core] [-N system] netstat -rs [-s] [-M core] [-N system] netstat -g [-W] [-f address_family] [-M core] [-N system] netstat -gs [-s] [-f address_family] [-M core] [-N system] |
#netstat -s -t -w
netstat: option requires an argument -- w usage: netstat [-AaLnSWx] [-f protocol_family | -p protocol] [-M core] [-N system] netstat -i | -I interface [-abdhntW] [-f address_family] [-M core] [-N system] netstat -w wait [-I interface] [-d] [-M core] [-N system] [-q howmany] netstat -s [-s] [-z] [-f protocol_family | -p protocol] [-M core] [-N system] netstat -i | -I interface -s [-f protocol_family | -p protocol] [-M core] [-N system] netstat -m [-M core] [-N system] netstat -B [-I interface] netstat -r [-AanW] [-f address_family] [-M core] [-N system] netstat -rs [-s] [-M core] [-N system] netstat -g [-W] [-f address_family] [-M core] [-N system] netstat -gs [-s] [-f address_family] [-M core] [-N system] |
#mn kstat
Formatting page, please wait...Done. SOCKSTAT(1) FreeBSD General Commands Manual SOCKSTAT(1) NAME sockstat -- list open sockets SYNOPSIS sockstat [-46cLlu] [-p ports] [-P protocols] DESCRIPTION The sockstat command lists open Internet or UNIX domain sockets. The following options are available: -4 Show AF_INET (IPv4) sockets. ... COMMAND The command which holds the socket. PID The process ID of the command which holds the socket. FD The file descriptor number of the socket. PROTO The transport protocol associated with the socket for Internet sockets, or the type of socket (stream or data- gram) for UNIX sockets. LOCAL ADDRESS For Internet sockets, this is the address the local end of the socket is bound to (see getsockname(2)). For bound UNIX sockets, it is the socket's filename. For other UNIX sockets, it is a right arrow followed by the |
#mn kstat
Formatting page, please wait...Done. SOCKSTAT(1) FreeBSD General Commands Manual SOCKSTAT(1) NAME sockstat -- list open sockets SYNOPSIS sockstat [-46cLlu] [-p ports] [-P protocols] DESCRIPTION The sockstat command lists open Internet or UNIX domain sockets. The following options are available: -4 Show AF_INET (IPv4) sockets. ... COMMAND The command which holds the socket. PID The process ID of the command which holds the socket. FD The file descriptor number of the socket. PROTO The transport protocol associated with the socket for Internet sockets, or the type of socket (stream or data- gram) for UNIX sockets. LOCAL ADDRESS For Internet sockets, this is the address the local end of the socket is bound to (see getsockname(2)). For bound UNIX sockets, it is the socket's filename. For other UNIX sockets, it is a right arrow followed by the |
#mn kstat
Formatting page, please wait...Done. SOCKSTAT(1) FreeBSD General Commands Manual SOCKSTAT(1) NAME sockstat -- list open sockets SYNOPSIS sockstat [-46cLlu] [-p ports] [-P protocols] DESCRIPTION The sockstat command lists open Internet or UNIX domain sockets. The following options are available: -4 Show AF_INET (IPv4) sockets. ... COMMAND The command which holds the socket. PID The process ID of the command which holds the socket. FD The file descriptor number of the socket. PROTO The transport protocol associated with the socket for Internet sockets, or the type of socket (stream or data- gram) for UNIX sockets. LOCAL ADDRESS For Internet sockets, this is the address the local end of the socket is bound to (see getsockname(2)). For bound UNIX sockets, it is the socket's filename. For other UNIX sockets, it is a right arrow followed by the |
#mn kstat
Formatting page, please wait...Done. SOCKSTAT(1) FreeBSD General Commands Manual SOCKSTAT(1) NAME sockstat -- list open sockets SYNOPSIS sockstat [-46cLlu] [-p ports] [-P protocols] DESCRIPTION The sockstat command lists open Internet or UNIX domain sockets. The following options are available: -4 Show AF_INET (IPv4) sockets. ... COMMAND The command which holds the socket. PID The process ID of the command which holds the socket. FD The file descriptor number of the socket. PROTO The transport protocol associated with the socket for Internet sockets, or the type of socket (stream or data- gram) for UNIX sockets. LOCAL ADDRESS For Internet sockets, this is the address the local end of the socket is bound to (see getsockname(2)). For bound UNIX sockets, it is the socket's filename. For other UNIX sockets, it is a right arrow followed by the |
#sockstat -c
USER COMMAND PID FD PROTO LOCAL ADDRESS FOREIGN ADDRESS root sshd 3251 3 tcp4 192.168.13.21:22 192.168.15.101:49158 root inetd 1279 6 dgram -> ?? smmsp sendmail 1240 3 dgram -> ?? root sendmail 1236 3 dgram -> ?? |
#sockstat -c
USER COMMAND PID FD PROTO LOCAL ADDRESS FOREIGN ADDRESS root sshd 3251 3 tcp4 192.168.13.21:22 192.168.15.101:49158 root inetd 1279 6 dgram -> ?? smmsp sendmail 1240 3 dgram -> ?? root sendmail 1236 3 dgram -> ?? |
#sockstat -c
USER COMMAND PID FD PROTO LOCAL ADDRESS FOREIGN ADDRESS root sshd 3251 3 tcp4 192.168.13.21:22 192.168.15.101:49158 root inetd 1279 6 dgram -> ?? smmsp sendmail 1240 3 dgram -> ?? root sendmail 1236 3 dgram -> ?? |
#sockstat -c
USER COMMAND PID FD PROTO LOCAL ADDRESS FOREIGN ADDRESS root sshd 3251 3 tcp4 192.168.13.21:22 192.168.15.101:49158 root inetd 1279 6 dgram -> ?? smmsp sendmail 1240 3 dgram -> ?? root sendmail 1236 3 dgram -> ?? |
#tcpdump
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode listening on re0, link-type EN10MB (Ethernet), capture size 96 bytes 13:13:38.743593 IP freebsd1.net.nt.ssh > 192.168.15.101.49158: Flags [P.], ack 1002052411, win 8212, length 116 13:13:38.744242 IP 192.168.15.101.49158 > freebsd1.net.nt.ssh: Flags [.], ack 116, win 255, length 0 13:13:38.744525 IP freebsd1.net.nt.ssh > 192.168.15.101.49158: Flags [P.], ack 1, win 8212, length 116 13:13:38.944239 IP 192.168.15.101.49158 > freebsd1.net.nt.ssh: Flags [.], ack 232, win 255, length 0 13:13:39.742361 IP freebsd1.net.nt.37820 > fobos.net.nt.domain: 3381+ PTR? 101.15.168.192.in-addr.arpa. (45) 13:13:39.743082 IP fobos.net.nt.domain > freebsd1.net.nt.37820: 3381 NXDomain* 0/1/0 (92) 13:13:39.745308 IP freebsd1.net.nt.ssh > 192.168.15.101.49158: Flags [P.], ack 1, win 8212, length 468 13:13:39.958128 IP 192.168.15.101.49158 > freebsd1.net.nt.ssh: Flags [.], ack 700, win 253, length 0 ... 13:13:41.566633 ARP, Request who-has freebsd1.net.nt tell fobos.net.nt, length 46 13:13:41.566656 ARP, Reply freebsd1.net.nt is-at 00:16:4e:00:00:01 (oui Unknown), length 28 13:13:41.739370 IP freebsd1.net.nt.ssh > 192.168.15.101.49158: Flags [P.], ack 1, win 8212, length 628 13:13:41.954724 IP 192.168.15.101.49158 > freebsd1.net.nt.ssh: Flags [.], ack 1780, win 256, length 0 13:13:42.739095 IP freebsd1.net.nt.ssh > 192.168.15.101.49158: Flags [P.], ack 1, win 8212, length 260 13:13:42.953032 IP 192.168.15.101.49158 > freebsd1.net.nt.ssh: Flags [.], ack 2040, win 255, length 0 ^C 18 packets captured 21 packets received by filter 0 packets dropped by kernel |
#tcpdump
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode listening on re0, link-type EN10MB (Ethernet), capture size 96 bytes 13:13:38.743593 IP freebsd1.net.nt.ssh > 192.168.15.101.49158: Flags [P.], ack 1002052411, win 8212, length 116 13:13:38.744242 IP 192.168.15.101.49158 > freebsd1.net.nt.ssh: Flags [.], ack 116, win 255, length 0 13:13:38.744525 IP freebsd1.net.nt.ssh > 192.168.15.101.49158: Flags [P.], ack 1, win 8212, length 116 13:13:38.944239 IP 192.168.15.101.49158 > freebsd1.net.nt.ssh: Flags [.], ack 232, win 255, length 0 13:13:39.742361 IP freebsd1.net.nt.37820 > fobos.net.nt.domain: 3381+ PTR? 101.15.168.192.in-addr.arpa. (45) 13:13:39.743082 IP fobos.net.nt.domain > freebsd1.net.nt.37820: 3381 NXDomain* 0/1/0 (92) 13:13:39.745308 IP freebsd1.net.nt.ssh > 192.168.15.101.49158: Flags [P.], ack 1, win 8212, length 468 13:13:39.958128 IP 192.168.15.101.49158 > freebsd1.net.nt.ssh: Flags [.], ack 700, win 253, length 0 ... 13:13:41.566633 ARP, Request who-has freebsd1.net.nt tell fobos.net.nt, length 46 13:13:41.566656 ARP, Reply freebsd1.net.nt is-at 00:16:4e:00:00:01 (oui Unknown), length 28 13:13:41.739370 IP freebsd1.net.nt.ssh > 192.168.15.101.49158: Flags [P.], ack 1, win 8212, length 628 13:13:41.954724 IP 192.168.15.101.49158 > freebsd1.net.nt.ssh: Flags [.], ack 1780, win 256, length 0 13:13:42.739095 IP freebsd1.net.nt.ssh > 192.168.15.101.49158: Flags [P.], ack 1, win 8212, length 260 13:13:42.953032 IP 192.168.15.101.49158 > freebsd1.net.nt.ssh: Flags [.], ack 2040, win 255, length 0 ^C 18 packets captured 21 packets received by filter 0 packets dropped by kernel |
#tcpdump
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode listening on re0, link-type EN10MB (Ethernet), capture size 96 bytes 13:13:38.743593 IP freebsd1.net.nt.ssh > 192.168.15.101.49158: Flags [P.], ack 1002052411, win 8212, length 116 13:13:38.744242 IP 192.168.15.101.49158 > freebsd1.net.nt.ssh: Flags [.], ack 116, win 255, length 0 13:13:38.744525 IP freebsd1.net.nt.ssh > 192.168.15.101.49158: Flags [P.], ack 1, win 8212, length 116 13:13:38.944239 IP 192.168.15.101.49158 > freebsd1.net.nt.ssh: Flags [.], ack 232, win 255, length 0 13:13:39.742361 IP freebsd1.net.nt.37820 > fobos.net.nt.domain: 3381+ PTR? 101.15.168.192.in-addr.arpa. (45) 13:13:39.743082 IP fobos.net.nt.domain > freebsd1.net.nt.37820: 3381 NXDomain* 0/1/0 (92) 13:13:39.745308 IP freebsd1.net.nt.ssh > 192.168.15.101.49158: Flags [P.], ack 1, win 8212, length 468 13:13:39.958128 IP 192.168.15.101.49158 > freebsd1.net.nt.ssh: Flags [.], ack 700, win 253, length 0 ... 13:13:41.566633 ARP, Request who-has freebsd1.net.nt tell fobos.net.nt, length 46 13:13:41.566656 ARP, Reply freebsd1.net.nt is-at 00:16:4e:00:00:01 (oui Unknown), length 28 13:13:41.739370 IP freebsd1.net.nt.ssh > 192.168.15.101.49158: Flags [P.], ack 1, win 8212, length 628 13:13:41.954724 IP 192.168.15.101.49158 > freebsd1.net.nt.ssh: Flags [.], ack 1780, win 256, length 0 13:13:42.739095 IP freebsd1.net.nt.ssh > 192.168.15.101.49158: Flags [P.], ack 1, win 8212, length 260 13:13:42.953032 IP 192.168.15.101.49158 > freebsd1.net.nt.ssh: Flags [.], ack 2040, win 255, length 0 ^C 18 packets captured 21 packets received by filter 0 packets dropped by kernel |
#tcpdump
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode listening on re0, link-type EN10MB (Ethernet), capture size 96 bytes 13:13:38.743593 IP freebsd1.net.nt.ssh > 192.168.15.101.49158: Flags [P.], ack 1002052411, win 8212, length 116 13:13:38.744242 IP 192.168.15.101.49158 > freebsd1.net.nt.ssh: Flags [.], ack 116, win 255, length 0 13:13:38.744525 IP freebsd1.net.nt.ssh > 192.168.15.101.49158: Flags [P.], ack 1, win 8212, length 116 13:13:38.944239 IP 192.168.15.101.49158 > freebsd1.net.nt.ssh: Flags [.], ack 232, win 255, length 0 13:13:39.742361 IP freebsd1.net.nt.37820 > fobos.net.nt.domain: 3381+ PTR? 101.15.168.192.in-addr.arpa. (45) 13:13:39.743082 IP fobos.net.nt.domain > freebsd1.net.nt.37820: 3381 NXDomain* 0/1/0 (92) 13:13:39.745308 IP freebsd1.net.nt.ssh > 192.168.15.101.49158: Flags [P.], ack 1, win 8212, length 468 13:13:39.958128 IP 192.168.15.101.49158 > freebsd1.net.nt.ssh: Flags [.], ack 700, win 253, length 0 ... 13:13:41.566633 ARP, Request who-has freebsd1.net.nt tell fobos.net.nt, length 46 13:13:41.566656 ARP, Reply freebsd1.net.nt is-at 00:16:4e:00:00:01 (oui Unknown), length 28 13:13:41.739370 IP freebsd1.net.nt.ssh > 192.168.15.101.49158: Flags [P.], ack 1, win 8212, length 628 13:13:41.954724 IP 192.168.15.101.49158 > freebsd1.net.nt.ssh: Flags [.], ack 1780, win 256, length 0 13:13:42.739095 IP freebsd1.net.nt.ssh > 192.168.15.101.49158: Flags [P.], ack 1, win 8212, length 260 13:13:42.953032 IP 192.168.15.101.49158 > freebsd1.net.nt.ssh: Flags [.], ack 2040, win 255, length 0 ^C 18 packets captured 21 packets received by filter 0 packets dropped by kernel |
#man tcpdump
|
#man tcpdump
|
#man tcpdump
|
#man tcpdump
|
#trafshow
|
#trafshow
|
#trafshow
|
#trafshow
|
#man show
|
#man show
|
#man show
|
#man show
|
#cd /usr/ports/
|
#cd /usr/ports/
|
#cd /usr/ports/
|
#cd /usr/ports/
|
#make search name=trafshow
Port: trafshow-5.2.3,1 Path: /usr/ports/net/trafshow Info: Full screen visualization of network traffic Maint: alexey@renatasystems.org B-deps: R-deps: WWW: http://soft.risp.ru/trafshow/index_en.shtml Port: trafshow-3.1_6,1 Path: /usr/ports/net/trafshow3 Info: Full screen visualization of network traffic (an ancient version) Maint: sem@FreeBSD.org B-deps: R-deps: WWW: http://soft.risp.ru/trafshow/index_en.shtml |
#make search name=trafshow
Port: trafshow-5.2.3,1 Path: /usr/ports/net/trafshow Info: Full screen visualization of network traffic Maint: alexey@renatasystems.org B-deps: R-deps: WWW: http://soft.risp.ru/trafshow/index_en.shtml Port: trafshow-3.1_6,1 Path: /usr/ports/net/trafshow3 Info: Full screen visualization of network traffic (an ancient version) Maint: sem@FreeBSD.org B-deps: R-deps: WWW: http://soft.risp.ru/trafshow/index_en.shtml |
#make search name=trafshow
Port: trafshow-5.2.3,1 Path: /usr/ports/net/trafshow Info: Full screen visualization of network traffic Maint: alexey@renatasystems.org B-deps: R-deps: WWW: http://soft.risp.ru/trafshow/index_en.shtml Port: trafshow-3.1_6,1 Path: /usr/ports/net/trafshow3 Info: Full screen visualization of network traffic (an ancient version) Maint: sem@FreeBSD.org B-deps: R-deps: WWW: http://soft.risp.ru/trafshow/index_en.shtml |
#make search name=trafshow
Port: trafshow-5.2.3,1 Path: /usr/ports/net/trafshow Info: Full screen visualization of network traffic Maint: alexey@renatasystems.org B-deps: R-deps: WWW: http://soft.risp.ru/trafshow/index_en.shtml Port: trafshow-3.1_6,1 Path: /usr/ports/net/trafshow3 Info: Full screen visualization of network traffic (an ancient version) Maint: sem@FreeBSD.org B-deps: R-deps: WWW: http://soft.risp.ru/trafshow/index_en.shtml |
#cd /usr/ports/net/traf
traff/ traffic/ trafshow/ trafshow3/ |
#cd /usr/ports/net/traf
traff/ traffic/ trafshow/ trafshow3/ |
#cd /usr/ports/net/traf
traff/ traffic/ trafshow/ trafshow3/ |
#cd /usr/ports/net/traf
traff/ traffic/ trafshow/ trafshow3/ |
Время первой команды журнала | 12:08:00 2012-12-18 | ||||||||||||||||||||||||
Время последней команды журнала | 12:28:10 2012-12-18 | ||||||||||||||||||||||||
Количество командных строк в журнале | 101 | ||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 21.78 | ||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 3.96 | ||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 0.34 | ||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 5.01 | ||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду w. В поле WHAT, соответствующем текущему терминалу, должна быть указана программа script.
Команды, при наборе которых были допущены синтаксические ошибки, выводятся перечёркнутым текстом:
$ l s-l bash: l: command not found |
Если код завершения команды равен нулю, команда была выполнена без ошибок. Команды, код завершения которых отличен от нуля, выделяются цветом.
$ test 5 -lt 4 |
Команды, ход выполнения которых был прерван пользователем, выделяются цветом.
$ find / -name abc find: /home/devi-orig/.gnome2: Keine Berechtigung find: /home/devi-orig/.gnome2_private: Keine Berechtigung find: /home/devi-orig/.nautilus/metafiles: Keine Berechtigung find: /home/devi-orig/.metacity: Keine Berechtigung find: /home/devi-orig/.inkscape: Keine Berechtigung ^C |
Команды, выполненные с привилегиями суперпользователя, выделяются слева красной чертой.
# id uid=0(root) gid=0(root) Gruppen=0(root) |
Изменения, внесённые в текстовый файл с помощью редактора, запоминаются и показываются в журнале в формате ed. Строки, начинающиеся символом "<", удалены, а строки, начинающиеся символом ">" -- добавлены.
$ vi ~/.bashrc
|
Для того чтобы изменить файл в соответствии с показанными в диффшоте изменениями, можно воспользоваться командой patch. Нужно скопировать изменения, запустить программу patch, указав в качестве её аргумента файл, к которому применяются изменения, и всавить скопированный текст:
$ patch ~/.bashrc |
Для того чтобы получить краткую справочную информацию о команде, нужно подвести к ней мышь. Во всплывающей подсказке появится краткое описание команды.
Если справочная информация о команде есть, команда выделяется голубым фоном, например: vi. Если справочная информация отсутствует, команда выделяется розовым фоном, например: notepad.exe. Справочная информация может отсутствовать в том случае, если (1) команда введена неверно; (2) если распознавание команды LiLaLo выполнено неверно; (3) если информация о команде неизвестна LiLaLo. Последнее возможно для редких команд.
Большие, в особенности многострочные, всплывающие подсказки лучше всего показываются браузерами KDE Konqueror, Apple Safari и Microsoft Internet Explorer. В браузерах Mozilla и Firefox они отображаются не полностью, а вместо перевода строки выводится специальный символ.
Время ввода команды, показанное в журнале, соответствует времени начала ввода командной строки, которое равно тому моменту, когда на терминале появилось приглашение интерпретатора
Имя терминала, на котором была введена команда, показано в специальном блоке. Этот блок показывается только в том случае, если терминал текущей команды отличается от терминала предыдущей.
Вывод не интересующих вас в настоящий момент элементов журнала, таких как время, имя терминала и других, можно отключить. Для этого нужно воспользоваться формой управления журналом вверху страницы.
Небольшие комментарии к командам можно вставлять прямо из командной строки. Комментарий вводится прямо в командную строку, после символов #^ или #v. Символы ^ и v показывают направление выбора команды, к которой относится комментарий: ^ - к предыдущей, v - к следующей. Например, если в командной строке было введено:
$ whoami
user
$ #^ Интересно, кто я?в журнале это будет выглядеть так:
$ whoami
user
Интересно, кто я? |
Если комментарий содержит несколько строк, его можно вставить в журнал следующим образом:
$ whoami
user
$ cat > /dev/null #^ Интересно, кто я?
Программа whoami выводит имя пользователя, под которым мы зарегистрировались в системе. - Она не может ответить на вопрос о нашем назначении в этом мире.В журнале это будет выглядеть так:
$ whoami user
|
Комментарии, не относящиеся непосредственно ни к какой из команд, добавляются точно таким же способом, только вместо симолов #^ или #v нужно использовать символы #=
1 2 3 4Группы команд, выполненных на разных терминалах, разделяются специальной линией. Под этой линией в правом углу показано имя терминала, на котором выполнялись команды. Для того чтобы посмотреть команды только одного сенса, нужно щёкнуть по этому названию.
LiLaLo (L3) расшифровывается как Live Lab Log.
Программа разработана для повышения эффективности обучения Unix/Linux-системам.
(c) Игорь Чубин, 2004-2008