-More sensor types supported in rvitals decode

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@8828 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jbjohnso
2011-02-11 18:03:02 +00:00
parent f3a660e820
commit 34d4ebe5e5

View File

@ -4411,6 +4411,52 @@ sub sensor_was_read {
if (@exparts) {
$extext = join(",",@exparts);
}
} elsif ($sdr->sensor_type == 0x12) {
@exparts=();
if ($exdata1 & 1) {
push @exparts,"System Reconfigured";
}
if ($exdata1 & 1<<1) {
push @exparts,"OEM System Boot Event";
}
if ($exdata1 & 1<<2) {
push @exparts,"Undetermined system hardware failure";
}
if ($exdata1 & 1<<3) {
push @exparts,"Aux log manipulated";
}
if ($exdata1 & 1<<4) {
push @exparts,"PEF Action";
}
if (@exparts) {
$extext = join(",",@exparts);
}
} elsif ($sdr->sensor_type == 0x25) {
if ($exdata1 & 1) {
push @exparts,"Present";
}
if ($exdata1 & 1<<1) {
push @exparts,"Absent";
}
if ($exdata1 & 1<<2) {
push @exparts,"Disabled";
}
if (@exparts) {
$extext = join(",",@exparts);
}
} elsif ($sdr->sensor_type == 0x23) {
if ($exdata1 & 1) {
push @exparts,"Expired";
}
if ($exdata1 & 1<<1) {
push @exparts,"Hard Reset";
}
if ($exdata1 & 1<<2) {
push @exparts,"Power Down";
}
if ($exdata1 & 1<<3) {
push @exparts,"Power Cycle";
}
} else {
$extext = "xCAT needs to add support for ".$sdr->sensor_type;
}