HPE Onboard Administrator

HewlettPackard.Oneview.Enclosure.HPMonitoredEnclosureOnboardAdministrator.OA.Task (ConsoleTask)

Element properties:

TargetHewlettPackard.Oneview.Enclosure.HPMonitoredEnclosureOnboardAdministrator
Applicationpowershell.exe
WorkingDirectory
isRequireOutputFalse
AccessibilityInternal
EnabledTrue

Source Code:

<ConsoleTask ID="HewlettPackard.Oneview.Enclosure.HPMonitoredEnclosureOnboardAdministrator.OA.Task" Accessibility="Internal" Enabled="true" Target="HewlettPackard.Oneview.Enclosure.HPMonitoredEnclosureOnboardAdministrator" RequireOutput="false">
<Assembly>Res.HewlettPackard.Oneview.Enclosure.HPMonitoredEnclosureOnboardAdministrator.OA.Task</Assembly>
<Handler>ShellHandler</Handler>
<Parameters>
<Argument Name="WorkingDirectory"/>
<Argument Name="Application">powershell.exe</Argument>
<Argument>
-WindowStyle hidden -command "&amp; { Param([String[]] $IpAddress)
$url = ''
$validIP = ''
foreach ($Ip in $IpAddress)
{
if ($validIP -eq '' -And $Ip -ne '' -And $Ip -ne 'none' -And $Ip -ne 'not set' -And $Ip -ne 'not applicable' -And $Ip -ne 'not available')
{
$Result = $Ip -match ($DetailedInfo = [IPAddress]$Ip)
If ($DetailedInfo.AddressFamily -eq 'InterNetworkV6')
{ $url = 'https://['+ [Net.IPAddress]::Parse($Ip) +']'
$validIP = $Ip
}

If ($DetailedInfo.AddressFamily -eq 'InterNetwork')
{ $url = 'https://'+ [Net.IPAddress]::Parse($Ip)
$validIP = $Ip
}
}
}
$ie = New-Object -com internetexplorer.application;
$ie.visible = $true;
$ie.navigate($url);
}" </Argument>
<Argument>"$Target/Host/Host/Property[Type="HewlettPackard.OneView.Enclosure.HPMonitoredEnclosure"]/ActiveOAPreferredIP$", "$Target/Host/Host/Property[Type="HewlettPackard.OneView.Enclosure.HPMonitoredEnclosure"]/ActiveOAPreferredIPV6$", "$Target/Host/Host/Property[Type="HewlettPackard.OneView.Enclosure.HPMonitoredEnclosure"]/StandByOAPreferredIP$", "$Target/Host/Host/Property[Type="HewlettPackard.OneView.Enclosure.HPMonitoredEnclosure"]/StandByOAPreferredIPV6$"</Argument>
</Parameters>
</ConsoleTask>