Skip to content

Instantly share code, notes, and snippets.

@rewida17
Created July 4, 2019 08:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rewida17/682bdeaec76d3a051888903056540f8e to your computer and use it in GitHub Desktop.
Save rewida17/682bdeaec76d3a051888903056540f8e to your computer and use it in GitHub Desktop.
#!/bin/bash
while IFS= read -r ip
do
snmpwalk -v1 -c public "${ip}" 1.3.6.1.4.1.14988.1.1.3.8.0 | awk -v ip="$ip" '{print ip"=>"$4/10"V"}'
done < <(cat ~/ip)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment