Check port/deamon thats running

testserver:~ # netstat -an | grep 512
tcp 0 0 0.0.0.0:512 0.0.0.0:* LISTEN
unix 3 [ ] STREAM CONNECTED 802512508 /tmp/ksocket-sshusr/klauncherZNMCS
unix 3 [ ] STREAM CONNECTED 802512507

testserver:~ # lsof -i :512
COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME
xinetd 8133 root 9u IPv4 23607 TCP *:exec (LISTEN)

testserver:~ # ps -ef | grep 8133
root 8133 1 0 2011 ? 00:00:00 /usr/sbin/xinetd
nobody 8676 8133 0 Jun28 ? 00:09:31 Xvnc :42 -inetd -once -query localhost -geometry 1024×768 -depth 16
nobody 8689 8133 0 Jun28 ? 00:09:58 Xvnc :42 -inetd -once -query localhost -geometry 1024×768 -depth 16
root 27017 19240 0 11:40 pts/4 00:00:00 grep 8133

Advertisements