Tuesday, 26 May 2015

Interface stats per sec

During performance tests related to measuring network throughput, it might be necessary to review the per second Bytes In/Out of a given interface.

While there are tools like iotop which provide a lot more features, here is a quick shell script based on 'ifconfig' which gives an instantaneous stat. Comes across very handy for me!


Tuesday, 17 February 2015

Cacti .... How to fix "SNMP Error" when trying to add a device


I was trying to add one of my devices to Cacti with SNMP data query collection and was repeatedly getting a "SNMP Error" when trying to add the device.

The device was enabled for SNMP, and the device MIB was imported on the server running Cacti. Verified that "snmpwalk" from cacti server to my device worked fine.

Turns out... when I configured the device for SNMP v3, I specified the username, but left it as "NoAuth/NoPriv". And looks like Cacti was not ready to accept a blank password for the authentication.

After re-configuring the device with Auth(MD5)/NoPriv and specifying the password in the cacti 'Add Device' screen as well as choosing Privacy as "None", the SNMP Error was gone!

So.. lessons learnt:

  • On your device, if configuring with SNMP v3, then enable "Authentication". (Privacy is optional)
  • On the cacti Add Device page, do the following:
    • Add the Auth passwords to the "SNMP Password (v3)" field
    • Select "SNMP Privacy Protocol (v3)" as None.
Here's a screenshot of the cacti page:

Cacti - Add Device page


Sunday, 18 January 2015

Do you wanna TryPastry? Its yummy !!

Ctrl+C and Ctrl+V are the keys that get used a gazillion times if you're even remotely associated with building software.

Have you been in a scenario where you want to copy-paste multiple items? maintain a history of what you have copied? be able to see the clipboard contents?

Well... TryPastry (www.trypastry.com) and I'm sure you'll love it.

This tiny utility comes with a bunch of features like allowing users to select what to paste, maintain clipboard history across reboots and so on. Most important... its really easy to use! Just use the Win keys instead of the Ctrl keys

Give it a shot... go on! ;)