Last active
November 20, 2016 22:32
-
-
Save vMarkusK/15817118791a1651bdd0 to your computer and use it in GitHub Desktop.
HP iLO mass Configuration
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
$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