All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
13 lines
293 B
Markdown
13 lines
293 B
Markdown
<!--
|
|
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
|
|
```
|