Skip to content

Instantly share code, notes, and snippets.

@natesubra
Last active August 9, 2018 19:25
Show Gist options
  • Select an option

  • Save natesubra/43509e7af0fe697139a6019965421e66 to your computer and use it in GitHub Desktop.

Select an option

Save natesubra/43509e7af0fe697139a6019965421e66 to your computer and use it in GitHub Desktop.
Check/Detect/Validate HP SMH / HPSIM Version
#!/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