Discover single child OID with external script, snmpwalk

External script:
Move to external dir:
cd $(find / -name externalscripts)
Put filename in variable:
filename=$(curl -s "https://catonrug.blogspot.com/feeds/posts/default/8979966102279055543?alt=json" | jq -r '.entry|.title|."$t"')
Check if the filename is OK:
echo $filename
Install:
curl -s "https://catonrug.blogspot.com/feeds/posts/default/8979966102279055543?alt=json" | jq -r '.entry|.content|."$t"' | sudo base64 --decode > $filename
Set executable:
chmod +x $filename
Usage:
discover-base-oid.sh[{#OZEKICONNAME},{HOST.CONN},{$SNMP_PORT},{$SNMP_COMMUNITY},.1.3.6.1.4.1.33355.1.1.3]
Template:

No comments: