Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env ruby
# use snmptranslate to lookup OID if there's no comment after an existing numeric OID
def translate_oid(oid)
@cache ||= {}
@cache[oid] ||= `snmptranslate -Os -mALL #{oid}`
end
file = 'generator.yml.j2'
juniper:
auth:
community: {{ community_strings.neteng }}
lookups:
- old_index: ifIndex
new_index: ifDescr
- old_index: dot3StatsIndex
new_index: ifDescr
walk: [