# | Line 311 | Line 311 | class ProcInfo: | |
---|---|---|
311 | # run nestat and collect sockets info (tcp, udp, unix) and connection states for tcp sockets from netstat | |
312 | def readNetStat(this): | |
313 | try: | |
314 | < | output = os.popen('netstat -an'); |
314 | > | output = os.popen('netstat -an 2>/dev/null'); |
315 | sockets = { 'sockets_tcp':0, 'sockets_udp':0, 'sockets_unix':0, 'sockets_icm':0 }; | |
316 | tcp_details = { 'sockets_tcp_ESTABLISHED':0, 'sockets_tcp_SYN_SENT':0, | |
317 | 'sockets_tcp_SYN_RECV':0, 'sockets_tcp_FIN_WAIT1':0, 'sockets_tcp_FIN_WAIT2':0, |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |