Last active
August 9, 2018 19:25
-
-
Save natesubra/43509e7af0fe697139a6019965421e66 to your computer and use it in GitHub Desktop.
Check/Detect/Validate HP SMH / HPSIM Version
This file contains hidden or 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 | |
| # Checks the self reported version of HP System Management Homepage (HPSIM/HPSMH), no auth required | |
| if [[ $# != 1 ]] ; then | |
| echo "usage: ./check_hpsim.sh <FQDN/Hostname/IP>" | |
| else | |
| curl -i -s -k "https://$1:2381/cpqlogin.htm?RedirectUrl=/&RedirectQueryString=" | grep -i smhversion | head -n 1 | |
| fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment