Instalación de módulos de perl

[shell]
perl -MCPAN -e ‘install Net::SNMP::Interfaces::Details’
[/shell]

alternativa
[shell]
perl -MCPAN -e shell
cpan> install Net::SNMP::Interfaces::Details
[/shell]

Si encuentra errores:

[shell]
perl -MCPAN -e shell
cpan> make Net::SNMP::Interfaces::Details
[/shell]

Detallará donde se encuentra el error

Ejemplo:

[shell]

Looks good
Writing Makefile for Net::SNMP::Interfaces
Can’t exec “/usr/bin/make”: No existe el fichero o el directorio at /usr/share/perl/5.8/CPAN.pm line 4567.
/usr/bin/make — NOT OK
[/shell]

Ver estadisticas de red y configuración sin usar ifconfig

/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

nota mental

Añadir el nls cp437 cuando compilo que si no al enganchar el mp3 no lo pilla XDDD

usb-storage: queuecommand called
usb-storage: *** thread awakened.
usb-storage: Command READ_10 (10 bytes)
usb-storage: 28 00 00 00 00 3f 00 00 01 00
usb-storage: Bulk Command S 0x43425355 T 0x40 L 512 F 128 Trg 0 LUN 0 CL 10
usb-storage: usb_stor_bulk_transfer_buf: xfer 31 bytes
usb-storage: Status code 0; transferred 31/31
usb-storage: — transfer complete
usb-storage: Bulk command transfer result=0
usb-storage: usb_stor_bulk_transfer_sglist: xfer 512 bytes, 1 entries
usb-storage: Status code 0; transferred 512/512
usb-storage: — transfer complete
usb-storage: Bulk data transfer result 0x0
usb-storage: Attempting to get CSW…
usb-storage: usb_stor_bulk_transfer_buf: xfer 13 bytes
usb-storage: Status code 0; transferred 13/13
usb-storage: — transfer complete
usb-storage: Bulk status result = 0
usb-storage: Bulk Status S 0x53425355 T 0x40 R 0 Stat 0x0
usb-storage: scsi cmd done, result=0x0
usb-storage: *** thread sleeping.
usb-storage: queuecommand called
usb-storage: *** thread awakened.
usb-storage: Command READ_10 (10 bytes)
usb-storage: 28 00 00 00 00 40 00 00 01 00
usb-storage: Bulk Command S 0x43425355 T 0x41 L 512 F 128 Trg 0 LUN 0 CL 10
usb-storage: usb_stor_bulk_transfer_buf: xfer 31 bytes
usb-storage: Status code 0; transferred 31/31
usb-storage: — transfer complete
usb-storage: Bulk command transfer result=0
usb-storage: usb_stor_bulk_transfer_sglist: xfer 512 bytes, 1 entries
usb-storage: Status code 0; transferred 512/512
usb-storage: — transfer complete
usb-storage: Bulk data transfer result 0x0
usb-storage: Attempting to get CSW…
usb-storage: usb_stor_bulk_transfer_buf: xfer 13 bytes
usb-storage: Status code 0; transferred 13/13
usb-storage: — transfer complete
usb-storage: Bulk status result = 0
usb-storage: Bulk Status S 0x53425355 T 0x41 R 0 Stat 0x0
usb-storage: scsi cmd done, result=0x0
usb-storage: *** thread sleeping.
Unable to load NLS charset cp437
FAT: codepage cp437 not found