Update: still valid for Ubuntu 20.04 LTS !!!
Where are the MIB files ?
I’m in the middle of upgrading old servers and I found Ubuntu starting on 12.04 didn’t install the MIB files. Even if you install the SNMP applications. It was really strange to launch
tkmib and just see a couple of nodes.
The explanation is simple. Just check the preamble of
# As the snmp packages come without MIB files due to license reasons, loading
# of MIBs is disabled by default. If you added the MIBs you can reenable
# loaging them by commenting out the following line.
Sure, but how can I install them ?
Fortunately there is a package to deal with that.
$ sudo apt-get install snmp-mibs-downloader
It will download the IETF MIB files and install them under the usual
If for any reason you don’t see it happen force it with
You can repeat this command later to update any new MIB file.
Well, almost. At this time your tools still won’t work correctly. Just remember the text on
/etc/snmp/snmp.conf. You have to comment out the
mibs : line! Now everything is by the book. Enjoy!
Install HP Support Software in your Ubuntu server
If you are using the Google repository to update your Chrome it doesn’t update anymore with
apt-get due to security reasons.
Reading package lists... Done
E: Repository 'http://dl.google.com/linux/chrome/deb stable Release' changed its 'Origin' value from 'Google, Inc.' to 'Google LLC'
N: This must be accepted explicitly before updates for this repository can be applied. See apt-secure(8) manpage for details.
The solution is fast. Just run
apt and not
apt-get. And just accept the change.
Do you want to accept these changes and continue updating from this repository? [y/N]
Then just use again
sudo apt-get update and
sudo apt-get upgrade
I lost too much time just doing a simple script: checking for a
class-map configuration across several backup configuration files. And it never matched!
The problem should be with me or my script as I knew it was all ok on some of the files.
However after bouncing my head several times I found the issue.
Some of the configuration has trailing spaces at the end of the line!
At first I thought it was may be a problem with RANCID. But it was not.
To make this visible I just issued something like this at the router prompt
sh run | b ^class-map match-any CORE-VOICE
And copy-pasted some lines to vim that gave me this
The red squares show that there are spaces at the end of two lines!
It’s a nice feature to have active on vim. Just add these two lines to your
highlight ExtraWhitespace ctermbg=red guibg=red
match ExtraWhitespace /\s\+$/
So, next time you have to chew some IOS-XR configurations files don’t forget to right trim all those lines!