Files
minimal-setups/content/content/HowTos/snmpwalk-with-numeric-and-text-output.md
2025-01-14 14:49:29 +01:00

294 B

title
title
snmpwalk with numeric and text output of oid
snmpwalk -v 2c -c $COMMUNITY -On $HOST $BASE_OID | while read -r line; do 
  oid=`echo $line | awk '{print $1}'`
  textoid=`snmptranslate $oid`
  value=`echo $line | cut -d ' ' -f 3-`
  echo "$oid ($textoid): $value" 
done