-
-
Notifications
You must be signed in to change notification settings - Fork 91
Old Updating MIBs Process
Oliver Gorwits edited this page Sep 14, 2017
·
1 revision
- On MacOS and Linux:
git config --global core.autocrlf input
- Always push new tags with commits:
git config --global push.followTags true
- Short diff summary:
git diff --shortstat
Check out a Github pull request into a branch using the commands in this gist.
- Having indexes helps with verifying the MIB collection using the old
chk_*
scripts from Max - Always run
snmptranslate -Tt
on the whole collection before changing anything, and closely inspect the diffs - Do a lot of intermediate
snmptranslate
sequences as well, to spot errors or incompatible MIB updates
Remove all files in /var/net-snmp/mib_indexes/
, run the command snmptranslate -Tt | sed -re 's/ tc=[0-9]+//g'
and redirect its output to a file, fixing items in STDERR until it's empty.
The STDOUT output is the one to compare between "starting point" and "end point" of changes.
After that snmptranslate
routine, run the regen_indexes.pl
script, then the mkindex
script, then the chk_*
scripts. Fix issues, rinse, repeat.
So something like...
- run snmptranslate -Tt and save STDOUT
- run snmptranslate -Tt inspecting errors (rinse, repeat....)
- run snmptranslate and compare to (1)
- run regen indexes to copy system indexes
- run mkindex to gather indexes
- run chk_dups
- run chk_mibs (should be error free?)