Ver estadisticas de red y configuración sin usar ifconfig

Friday, June 30th, 2006 @ 3:40 pm | Notas rápidas

/sys/class/net/eth0/address -> mac
/sys/class/net/eth0/statistics/rx_bytes -> trafico entrante en bytes
/sys/class/net/eth0/statistics/tx_bytes -> trafico saliente en bytes

otra de trafico
grep “eth0″ /proc/net/dev | awk ‘{print “rx_bytes:”$2 ” tx_bytes:”$10}’

/proc/net/tcp -> conexiones TCP establecidas y puertos abiertos
/proc/net/tcp -> conexiones UDP establecidas y puertos abiertos

 

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

 

 

Recently

  • Cómo instalar dropbox en Debian usando los sources , copia y pega
  • Infección en apps de Android
  • virt-manager: ERROR:root:unsupported locale setting
  • sopastrike.com – Vamos a la huelga
  • No me gusta wordpress
  • [Asterisk] Tareas de mantenimiento
  • screengrab queda muerto
  • rails + omniauth + omniauth-twitter
  • Ruby on Rails + Papercliip: cannot load such file — cocaine (LoadError)
  • `autodetect’: Could not find a JavaScript runtime. See https://github.com/sstephenson/execjs for a list of available runtimes. (ExecJS::RuntimeUnavailable)
  •