30 Posts

May 10th, 2013 08:00

Hi,

From WSMAN you will need to enumerate each component separately to check its status. There is no 1 common class which will display the status of the components.

For eg: to check if the Fans are all "healthy" you will need to enumerate the DCIM_FanView class.

winrm e schemas.dell.com/.../cim-sche

ma/2/root/dcim/DCIM_FanView -u:username -password -r:https://idracip/wsman -SkipCNcheck -

SkipCAcheck -encoding:utf-8 -a:basic  

Now, there is an attribute for each instance of a Fan called Primary Status. This value. will indicate the state of that particular Fan component. A value of 1 indicates "OK".

You can find information about all the profiles in this link -

en.community.dell.com/.../1906.dcim-library-profile.aspx

And you can find the MOFs here-

en.community.dell.com/.../1840.dcim-library-mof.aspx

In the MOF link, select the appropriate LifeCycle Controller MOF link and download it. After unzipping, open the DCIM_FanView MOF file and check for PrimaryStatus.  

Description (

               "PrimaryStatus provides a high level status value, intended to align"

               "with Red-Yellow-Green type representation of status. It should be"

               "used in conjunction with DetailedStatus to provide high level and"

               " detailed health status of the ManagedElement and its subcomponents."

               "PrimaryStatus consists of one of the following values: Unknown, OK,"

               "Degraded or Error. \"Unknown\" indicates the implementation is in"

               "general capable of returning this property, but is unable to do so"

               "at this time. \"OK\" indicates the ManagedElement is functioning "

               "normally. \"Degraded\" indicates the ManagedElement is functioning"

               "below normal. \"Error\" indicates the ManagedElement is in an Error"

               " condition. " ),

         ValueMap { "0", "1", "2", "3", "0x8000", "0xFFFF" },

         Values { "Unknown", "OK", "Degraded", "Error",

               "DMTF Reserved", "Vendor Reserved" }]

   uint32 PrimaryStatus;

So, you can understand that 1 means OK. Similarly, you will need to check all the diff MOFs for each attribute values.

Hope this helped.

Regards,

Mondeep

May 10th, 2013 09:00

Hi Mondeep,

Thank you for the nice response.  I will review the profile class.  Please note that I have tried "GetFanViews" with recite.py to formulate the appropriate wsman command and it comes back with an error.  Perhaps a problem with my configuration.

Best Regards,

John

30 Posts

May 10th, 2013 13:00

Hi John,

I haven't used recite till now (although have been planning for a  long time now :))  If you execute any recite command, does it display the winrm command as well in command prompt at the time of execution. If so, maybe you can post that here and we can figure out what went wrong.

Regards,

Mondeep

May 10th, 2013 14:00

Hi Mondeep,

Thank you again for the response.  As a demonstration that things are working, please note the following:

--> GetSensorViews

Fri May 10 15:10:50 2013: GetSensorViews

wsman enumerate " -h 192.168.1.157 -P 443 -u jgroezin -p ****** -V -v -c dummy.cert -j utf-8 -y basic

DCIM_PSNumericSensor

 BaseUnits = 7

 CreationClassName = DCIM_PSNumericSensor

 CurrentReading = 98

 CurrentState = Normal

 Description = System Power Consumption in Watts

 DeviceID = iDRAC.Embedded.1#SystemBoardPwrConsumption

 ElementName = System Board Pwr Consumption

 EnabledDefault = 2

--> GetFanViews

Fri May 10 15:12:11 2013: GetFanViews

wsman enumerate "

-h 192.168.1.157 -P 443 -u jgroezin -p ****** -V -v -c dummy.cert -j utf-8 -y basic

GetFanViews failed

-->

Your assistance is greatly appreciated to help me figure out the appropriate syntax.

Best Regards,

John

May 14th, 2013 15:00

Hi Mondeep.  This is very odd.  The very same system is now responding.

--> GetFanViews

Tue May 14 16:16:51 2013: GetFanViews

wsman enumerate " -h 192.168.1.157 -P 443 -u jgroezin -p ****** -V -v -c dummy.cert -j utf-8 -y basic

DCIM_FanView

 ActiveCooling = true

 BaseUnits = 19

 CurrentReading = 4800

 FQDD = Fan.Embedded.1A

 InstanceID = Fan.Embedded.1A

 LastSystemInventoryTime = 20130514232635.000000+000

 LastUpdateTime = 20130515021711.000000+000

 PrimaryStatus = 1

 RateUnits = 0

 RedundancyStatus = 2

 UnitModifier = 0

 VariableSpeed = true

Please note the different in the command.  I can think of nothing that I have changed.

John

30 Posts

May 16th, 2013 22:00

Hi John,

Glad to know it started working now.

Can you give me more details of the server state when the command had failed. Was it powered off or was it in POST or booted to OS? Maybe the next time it happens, please make a note if this and update us.

Regards,

Mondeep

May 17th, 2013 11:00

Hi Mondeep,

The system was on when I did the GetFanViews test for both failing and passing command response.

I tried to repeat the failure today by turning the system off and issuing the command GetFanViews.

Not only did the command work with the system off, but it appeared to report stale data.

--> GetFanViews

Fri May 17 12:53:26 2013: GetFanViews

wsman enumerate " -h 192.168.1.157 -P 443 -u jgroezin -p ****** -V -v -c dummy.cert -j utf-8 -y basic

DCIM_FanView

 ActiveCooling = true

 BaseUnits = 19

 CurrentReading = 4800

 FQDD = Fan.Embedded.1A

 InstanceID = Fan.Embedded.1A

 LastSystemInventoryTime = 20130517224722.000000+000

 LastUpdateTime = 20130517225349.000000+000

 PrimaryStatus = 1

 RateUnits = 0

 RedundancyStatus = 4

 UnitModifier = 0

 VariableSpeed = true

At the same time, the iDRAC said it could get Fan speed due to system being off.

Best Regards,

John

No Events found!

Top