Created
November 12, 2019 08:31
-
-
Save dzerrenner/585c152ddc144691dd19fbdac64df851 to your computer and use it in GitHub Desktop.
Check load with snmpwalk
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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