how tos
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
2025-01-13 15:49:09 +01:00
parent 0fb46dcb79
commit 0686704da5
6 changed files with 245 additions and 0 deletions

View File

@ -0,0 +1,10 @@
# 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
```