pan_2: (Default)
Get all available information from iLO (version 3 and newer) of HP Server with HPiLOCmdlets

#get stored credentials from clixml file
$oiLOCredentials = Import-Clixml D:\Shares\Scripts\CredentialsStore\HP-iLO_hpautomation.clixml


foreach ($oiLO in "10.7.222.218")
{
#splat connection params
$hConnectParams = @{'Credential'=$oiLOCredentials; 'Server' = "10.7.222.218"}

#get commandlet list
$aCommandsList = Get-Command -Module HPiLOCmdlets Get-HPiLO*

#execute each commandlet against address
foreach ($oCommand in $aCommandsList)
{
Write-Host $oCommand.Name -fo Yellow
& $oCommand.Name @hConnectParams | fl
}

}#end foreach $oiLO
Tags:

Profile

pan_2: (Default)
pan_2

September 2017

M T W T F S S
    123
45678910
11121314151617
18 192021222324
252627282930 

Syndicate

RSS Atom

Page Summary

Page generated 2017-09-20 07:25

Expand Cut Tags

No cut tags