From e24c7b862ca1198ae6daf9fb9315ef7d2666f12b Mon Sep 17 00:00:00 2001 From: linggao Date: Fri, 23 Jan 2009 20:19:00 +0000 Subject: [PATCH] added predefined conditions and sensors for HFI monitoring git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@2654 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- .../mn/IBM.Condition/Drawer_not_configured.pm | 15 +++++++++++++++ xCAT-rmc/resources/mn/IBM.Condition/HFI_down.pm | 15 +++++++++++++++ .../mn/IBM.Condition/HFI_not_configured.pm | 15 +++++++++++++++ xCAT-rmc/resources/mn/IBM.Condition/ISR_down.pm | 15 +++++++++++++++ .../mn/IBM.Sensor/Drawer_configuration.pm | 15 +++++++++++++++ .../resources/mn/IBM.Sensor/HFI_configuration.pm | 15 +++++++++++++++ xCAT-rmc/resources/mn/IBM.Sensor/HFI_status.pm | 15 +++++++++++++++ xCAT-rmc/resources/mn/IBM.Sensor/ISR_status.pm | 15 +++++++++++++++ 8 files changed, 120 insertions(+) create mode 100644 xCAT-rmc/resources/mn/IBM.Condition/Drawer_not_configured.pm create mode 100644 xCAT-rmc/resources/mn/IBM.Condition/HFI_down.pm create mode 100644 xCAT-rmc/resources/mn/IBM.Condition/HFI_not_configured.pm create mode 100644 xCAT-rmc/resources/mn/IBM.Condition/ISR_down.pm create mode 100644 xCAT-rmc/resources/mn/IBM.Sensor/Drawer_configuration.pm create mode 100644 xCAT-rmc/resources/mn/IBM.Sensor/HFI_configuration.pm create mode 100644 xCAT-rmc/resources/mn/IBM.Sensor/HFI_status.pm create mode 100644 xCAT-rmc/resources/mn/IBM.Sensor/ISR_status.pm diff --git a/xCAT-rmc/resources/mn/IBM.Condition/Drawer_not_configured.pm b/xCAT-rmc/resources/mn/IBM.Condition/Drawer_not_configured.pm new file mode 100644 index 000000000..f218ee0b0 --- /dev/null +++ b/xCAT-rmc/resources/mn/IBM.Condition/Drawer_not_configured.pm @@ -0,0 +1,15 @@ +#!/usr/bin/perl + +$RES::Condition{'Drawer_not_configured'} = { + Name => q(Drawer_not_configured), + ResourceClass => q(IBM.Sensor), + EventExpression => q(SD.Uint32 != SD@P.Uint32 && SD.Int32>0), + RearmExpression => q(SD.Uint32 != SD@P.Uint32 && SD.Int32<0), + EventDescription => q(Drawer (FSP) has not been populated with its server-specific configuration data.), + RearmDescription => q(Drawer (FSP) is configured.), + SelectionString => q(Name="Drawer_configuration"), + ManagementScope => q(1), + Severity => q(1), + NoToggleExprFlag => q(1), +}; +1; diff --git a/xCAT-rmc/resources/mn/IBM.Condition/HFI_down.pm b/xCAT-rmc/resources/mn/IBM.Condition/HFI_down.pm new file mode 100644 index 000000000..336af05b5 --- /dev/null +++ b/xCAT-rmc/resources/mn/IBM.Condition/HFI_down.pm @@ -0,0 +1,15 @@ +#!/usr/bin/perl + +$RES::Condition{'HFI_down'} = { + Name => q(HFI_down), + ResourceClass => q(IBM.Sensor), + EventExpression => q(SD.Uint32 != SD@P.Uint32 && SD.Int32>0), + RearmExpression => q(SD.Uint32 != SD@P.Uint32 && SD.Int32<0), + EventDescription => q(HFI is unavailable for use due to severe HFI or ISR hardware error.), + RearmDescription => q(HFI is back to normal.), + SelectionString => q(Name="HFI_status"), + ManagementScope => q(1), + Severity => q(1), + NoToggleExprFlag => q(1), +}; +1; diff --git a/xCAT-rmc/resources/mn/IBM.Condition/HFI_not_configured.pm b/xCAT-rmc/resources/mn/IBM.Condition/HFI_not_configured.pm new file mode 100644 index 000000000..d03d5d43f --- /dev/null +++ b/xCAT-rmc/resources/mn/IBM.Condition/HFI_not_configured.pm @@ -0,0 +1,15 @@ +#!/usr/bin/perl + +$RES::Condition{'HFI_not_configured'} = { + Name => q(HFI_not_configured), + ResourceClass => q(IBM.Sensor), + EventExpression => q(SD.Uint32 != SD@P.Uint32 && SD.Int32>0), + RearmExpression => q(SD.Uint32 != SD@P.Uint32 && SD.Int32<0), + EventDescription => q(HFI did not get configured during server power-on.), + RearmDescription => q(HFI is configured.), + SelectionString => q(Name="HFI_configuration"), + ManagementScope => q(1), + Severity => q(1), + NoToggleExprFlag => q(1), +}; +1; diff --git a/xCAT-rmc/resources/mn/IBM.Condition/ISR_down.pm b/xCAT-rmc/resources/mn/IBM.Condition/ISR_down.pm new file mode 100644 index 000000000..adc74fd9f --- /dev/null +++ b/xCAT-rmc/resources/mn/IBM.Condition/ISR_down.pm @@ -0,0 +1,15 @@ +#!/usr/bin/perl + +$RES::Condition{'ISR_down'} = { + Name => q(ISR_down), + ResourceClass => q(IBM.Sensor), + EventExpression => q(SD.Uint32 != SD@P.Uint32 && SD.Int32>0), + RearmExpression => q(SD.Uint32 != SD@P.Uint32 && SD.Int32<0), + EventDescription => q(ISR is unavailable for use due to severe hardware error.), + RearmDescription => q(ISR is back to normal.), + SelectionString => q(Name="ISR_status"), + ManagementScope => q(1), + Severity => q(1), + NoToggleExprFlag => q(1), +}; +1; diff --git a/xCAT-rmc/resources/mn/IBM.Sensor/Drawer_configuration.pm b/xCAT-rmc/resources/mn/IBM.Sensor/Drawer_configuration.pm new file mode 100644 index 000000000..bcf016ab5 --- /dev/null +++ b/xCAT-rmc/resources/mn/IBM.Sensor/Drawer_configuration.pm @@ -0,0 +1,15 @@ +#!/usr/bin/perl +BEGIN +{ + $::XCATROOT = $ENV{'XCATROOT'} ? $ENV{'XCATROOT'} : '/opt/xcat'; +} + +$RES::Sensor{'Drawer_configuration'} = { + Name => q(Drawer_configuration), + Command => "/tmp/fake", + UserName => q(root), + RefreshInterval => q(0), + ControlFlags => q(0),#change to 8 for rsct 2.5.3.0 and greater + Description => q(This sensor is refreshed when a drawer (FSP) has not been populated with its server-specific configuration data. It is also refreshed when the drawer is back to normal.), +}; +1; diff --git a/xCAT-rmc/resources/mn/IBM.Sensor/HFI_configuration.pm b/xCAT-rmc/resources/mn/IBM.Sensor/HFI_configuration.pm new file mode 100644 index 000000000..3c285b4c4 --- /dev/null +++ b/xCAT-rmc/resources/mn/IBM.Sensor/HFI_configuration.pm @@ -0,0 +1,15 @@ +#!/usr/bin/perl +BEGIN +{ + $::XCATROOT = $ENV{'XCATROOT'} ? $ENV{'XCATROOT'} : '/opt/xcat'; +} + +$RES::Sensor{'HFI_configuration'} = { + Name => q(HFI_configuration), + Command => "/tmp/fake", + UserName => q(root), + RefreshInterval => q(0), + ControlFlags => q(0), #change to 8 for rsct 2.5.3.0 and greater + Description => q(This sensor is refreshed when an HFI did not get configured during server power-on. It is also refreshed when the HFI is configured.), +}; +1; diff --git a/xCAT-rmc/resources/mn/IBM.Sensor/HFI_status.pm b/xCAT-rmc/resources/mn/IBM.Sensor/HFI_status.pm new file mode 100644 index 000000000..7bef437bf --- /dev/null +++ b/xCAT-rmc/resources/mn/IBM.Sensor/HFI_status.pm @@ -0,0 +1,15 @@ +#!/usr/bin/perl +BEGIN +{ + $::XCATROOT = $ENV{'XCATROOT'} ? $ENV{'XCATROOT'} : '/opt/xcat'; +} + +$RES::Sensor{'HFI_status'} = { + Name => q(HFI_status), + Command => "/tmp/fake", + UserName => q(root), + RefreshInterval => q(0), + ControlFlags => q(0), #change to 8 for rsct 2.5.3.0 and greater + Description => q(This sensor is refreshed when an HFI is unavailable for use due to severe HFI or ISR hardware error. It is also refreshed when the HFI is back to normal.), +}; +1; diff --git a/xCAT-rmc/resources/mn/IBM.Sensor/ISR_status.pm b/xCAT-rmc/resources/mn/IBM.Sensor/ISR_status.pm new file mode 100644 index 000000000..7eaac1823 --- /dev/null +++ b/xCAT-rmc/resources/mn/IBM.Sensor/ISR_status.pm @@ -0,0 +1,15 @@ +#!/usr/bin/perl +BEGIN +{ + $::XCATROOT = $ENV{'XCATROOT'} ? $ENV{'XCATROOT'} : '/opt/xcat'; +} + +$RES::Sensor{'ISR_status'} = { + Name => q(ISR_status), + Command => "/tmp/fake", + UserName => q(root), + RefreshInterval => q(0), + ControlFlags => q(0), #change to 8 for rsct 2.5.3.0 and greater + Description => q(This sensor is refreshed when an ISR is unavailable for use due to severe hardware error. It is also refreshed when ISR is back to normal.), +}; +1;