Advertisement
opexxx

snmptest.sh

Mar 20th, 2015
363
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.28 KB | None | 0 0
  1. #!/bin/sh
  2. IP=$1
  3. COMMUNITY="public"
  4. USER="user"
  5. PASS="pass"
  6. OID="system.sysUpTime.0"
  7. echo "Test1"
  8. snmpget -t 2 -r 3 -On -v1 -c $COMMUNITY $IP $OID
  9. echo "Test2"
  10. snmpget -v2c -c $COMMUNITY $IP $OID
  11. echo "Test3"
  12. snmpget -Oqv -lauthNoPriv -u $USER -A $PASS $IP $OID
  13. echo "Done!"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement