Archivo de 7 Febrero 2008

ifstat

  • english
  • spanish

ifstat is like some kind of vmstat for network interfaces. Every X seconds, it prints two columns per network interface monitoring the input and output bandwidth.

Quite useful when you need to diagnose a slow network, identify bottlenecks, monitor bandwidth consumption, etc. When invoked with the -t parameter it adds a timestamp on each line, very important if you plan to left it running for hours dumping its output to a file.

# ifstat -t   Time eth0 eth1 HH:MM:SS KB/s in KB/s out KB/s in KB/s out 12:40:25 0.05 0.19 0.00 0.00 12:40:26 0.26 0.24 0.00 0.00 12:40:27 6.87 30.14 0.00 0.00 12:40:28 0.17 0.26 0.00 0.00 12:40:29 0.05 0.22 0.00 0.00 12:40:30 0.05 0.14 0.00 0.00 12:40:31 0.05 0.14 0.00 0.00 12:40:32 0.29 0.38 0.00 0.00 12:40:33 0.29 0.38 0.00 0.00 12:40:34 0.13 0.22 0.00 0.00 12:40:35 2.85 8.70 0.00 0.00 12:40:36 9.01 38.84 0.00 0.00 12:40:37 0.55 0.24 0.00 0.00 12:40:38 0.05 0.14 0.00 0.00

Si te ha interesado, ¿me invitas a una cerveza? / If you liked the post, would you buy me a beer?

Command Line

  • english
  • spanish

I start here a new section on my blog, Command Line (feed), where I will comment on UNIX commands (Linux and MacOS X mainly) that I find useful on my daily work. The articles will range from a very obscure command that I didn’t knew of until some day I needed something like it and found it and saved my day, new or creative ways to use old commands, or small shell-scripts that can make your life easier.

Unless otherwise specified, all these commands are just an “aptitude install” away on Debian and derivate distros (on Ubuntu they may be on universe or multiverse). For RedHat, CentOS, etc. there’s a good chance that you’ll find RPM packages on Dag Wieërs’ repository.

So, without further addo, the first command on the next entry. :)

VMWare to Virtual Box: vmdk2vdi

  • english
  • spanish

I’ve been playing around a little bit with the MacOS X port of Virtual Box, and it looks really promising. Speed-wise it runs quite OK, I couldn’t tell wether or not it’s on par with VMWare Fusion. But I’ve had small problems with the keyboard (couldn’t get the alt and command keys to work right) and the “desktop resolution resizing” when in windowed mode.

Following these instrucions,  I’ve made a small shell-script that converts a .vmdk disk image file from VMWare to a .vdi one for Virtual Box. It should detect the OS (Mac or Linux) and warn you in case you miss some of the dependencies (QEMU ’s qemu-img and Virtual Box’s vditool). It can be downloaded here: