Skip to content

Instantly share code, notes, and snippets.

@dzerrenner
Created November 12, 2019 08:31
Show Gist options
  • Save dzerrenner/585c152ddc144691dd19fbdac64df851 to your computer and use it in GitHub Desktop.
Save dzerrenner/585c152ddc144691dd19fbdac64df851 to your computer and use it in GitHub Desktop.
Check load with snmpwalk
#!/bin/bash
SYSTEMS = ("testDNS", "productionDNS", "integrationDNS", "testVPN", "productionVPN", "integrationVPN")
IP_ADDR = ("172.16.47.11", "10.0.47.11", "192.168.47.11", "172.16.13.37", "10.0.13.37", "192.168.13.37")
for INDEX in ${!SYSTEMS[@]}; do
echo Testing: ${SYSTEMS[INDEX]} Address: ${IP_ADDR[INDEX]}
snmpwalk -v -2c -c community ${IP_ADDR[INDEX]} UCD-SNMP-MIB:laLoad.1
echo
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment