HPE OneView
1748227 Members
4197 Online
108759 Solutions
New Discussion

How to get SUT Info from OV with Powershell

 
SOLVED
Go to solution
Marcel_D
Advisor

How to get SUT Info from OV with Powershell

Hi,

OneView presenting this Information about installed SUT in the Profile View/Firmware Section:

Firmware install state 

Installed pending reboot, 11:52am January 31, 2020
 

Smart Update Tools 

Install mode 

  1. Automatic stage and deploy
  2. Version 
    2.5.0.0
  3. Verified 
    Running 12:37pm February 28, 2020

I am not able to get this Information by Using the Powershell cmdlets. 

Primary Goal is to get the "pending Reboot" Information by Using Powershell.

Would appretiate any help. THX

4 REPLIES 4
AmRa
HPE Pro

Re: How to get SUT Info from OV with Powershell

Hi

Please use below OneView commandlet to get profile information.

Get-HPOVServerProfile -Name <Profile Name>

If still you are unable to get the information, please share the command output.

I am an HPE Employee.
[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]

Accept or Kudo
Marcel_D
Advisor

Re: How to get SUT Info from OV with Powershell

I've tried the standard Profile cmdlets already and also navigated down the Objects.

type : ServerProfileV11
uri : /rest/server-profiles/f00f06c4-a675-4253-8261-834d54bd6cac
name : ********
description :
serialNumber : ********
uuid : 30393137-3136-5A43-4A36-333332473642
iscsiInitiatorName : iqn.2015-02.com.hpe:oneview-f00f06c4-a675-4253-8261-834d54bd6cac
iscsiInitiatorNameType : AutoGenerated
serverProfileTemplateUri : /rest/server-profile-templates/ef2e6fdb-eafa-4785-871a-cfc1cd69b0af
templateCompliance : Compliant
serverHardwareUri : /rest/server-hardware/30393137-3136-5A43-4A36-333332473642
serverHardwareTypeUri : /rest/server-hardware-types/2EBD1F54-5C7E-4032-8A0B-F2E689CDEFD4
enclosureGroupUri :
enclosureUri :
enclosureBay :
affinity :
associatedServer :
hideUnusedFlexNics :
firmware : @{firmwareBaselineUri=/rest/firmware-drivers/SPP2019-12-0; manageFirmware=True; forceInstallFirmware=False; firmwareInstallType=FirmwareOnly; firmwareScheduleDateTime=; firmwareActivationType=Immediate; reapp
macType : Physical
wwnType : Physical
serialNumberType : Physical
category : server-profiles
created : 2019-03-01T13:19:39.405Z
modified : 2020-02-08T21:30:18.645Z
status : Warning
state : Normal
serverHardwareReapplyState : NotApplying
inProgress : False
taskUri : /rest/tasks/95ea472a-1878-437c-88b7-41643db2725a
connectionSettings : @{reapplyState=NotApplying; connections=System.Object[]}
bootMode : @{manageMode=True; mode=BIOS; pxeBootPolicy=; secureBoot=Unmanaged}
boot : @{manageBoot=False; order=System.Object[]}
bios : @{manageBios=True; overriddenSettings=System.Object[]; reapplyState=NotApplying; consistencyState=Unknown}
managementProcessor : @{reapplyState=NotApplying; manageMp=False; mpSettings=System.Object[]}
localStorage : @{sasLogicalJBODs=System.Object[]; controllers=System.Object[]; reapplyState=NotApplying}
sanStorage : @{manageSanStorage=False; volumeAttachments=System.Object[]; sanSystemCredentials=System.Object[]; reapplyState=NotApplying}
osDeploymentSettings : @{osDeploymentPlanUri=; osVolumeUri=; forceOsDeployment=False; osCustomAttributes=System.Object[]; reapplyState=NotApplying}
scopesUri : /rest/scopes/resources/rest/server-profiles/f00f06c4-a675-4253-8261-834d54bd6cac
eTag : 1580810566050/46
refreshState : NotRefreshing
ApplianceConnection : ******

AmRa
HPE Pro

Re: How to get SUT Info from OV with Powershell

The issue need deep analysis and lab work, hence requesting you to please raise a support ticket with HPE technical support team for further assistance.

I am an HPE Employee.
[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]

Accept or Kudo
Marcel_D
Advisor
Solution

Re: How to get SUT Info from OV with Powershell

Just figured it out:

$server = get-hpovserver 

$sutsettings = $server| select name,@{N="Installstate";E={$_.serverSettings.firmwareAndDriversInstallState.installState}},@{N="SUTVersion";E={$_.serverSettings.hpSmartUpdateToolStatus.version}},@{N="SUTmode";E={$_.serverSettings.hpSmartUpdateToolStatus.mode}},@{N="SUTState";E={$_.serverSettings.hpSmartUpdateToolStatus.servicestate}} | ft