Skip to content

Instantly share code, notes, and snippets.

@vMarkusK
Last active November 20, 2016 22:32
Show Gist options
  • Save vMarkusK/15817118791a1651bdd0 to your computer and use it in GitHub Desktop.
Save vMarkusK/15817118791a1651bdd0 to your computer and use it in GitHub Desktop.
HP iLO mass Configuration
$ILOs = Import-Csv "C:\ILOs.csv"
$user = "user"
$password = "Passw0rd!"
foreach ($ILO in $ILOs) {
Set-HPiLOSNMPIMSetting -Server $ILO.ILO -Username $user -Password $password -SNMPAddress1 192.168.2.1 -SNMPAddress2 192.168.2.2 `
-SNMPADDRESS1ROCOMMUNITY public -SNMPADDRESS1TRAPCOMMUNITYvalue public -SNMPADDRESS1TRAPCOMMUNITYVERSION v1 -SNMPADDRESS2ROCOMMUNITY public `
-SNMPADDRESS2TRAPCOMMUNITYvalue public -SNMPADDRESS2TRAPCOMMUNITYVERSION v1 -AgentlessManagementEnable Yes
Add-HPiLOSSORecord -Server $ILO.ILO -Username $user -Password $password -SSOInputType "IMPORT_FROM_NETWORK" `
-SSOInputValue "https://HPSIM-FQDN:50000/GetCertificate?certtype=sso"
# Remove-HPiLOSSORecord -Server $ILO.ILO -Username $user -Password $password -Index 1
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment