This is a quick post to show you how you can add SNMP v3 users to your HPE iLO systems using PowerShell. This is a handy tip if you have hundreds, maybe thousands of iLOs to update with a new user
Follow my earlier guide on how to install the HPE iLO PowerShell module
Once you have done this create a simple csv file with the column name ‘ServersiLO’ and list all your iLO IPs or DNS names underneath. Then run the below PowerShell code. Remember to update your passphrases as needed.
$InputFile = "C:\Temp\HPEServers.csv" $MyHPEFile = Import-CSV $InputFile $credential = Get-Credential foreach ($HPServer in $MyHPEFile) { $Server = $HPServer.ServersiLO $connection = Connect-HPEiLO -Credential $credential -DisableCertificateAuthentication -IP $Server Add-HPEiLOSNMPv3User -Connection $connection -SecurityName CMDB -AuthenticationProtocol MD5 -AuthenticationPassphrase <enter phrase> -PrivacyProtocol DES -PrivacyPassphrase <enter phrase> }