From 6ed81741bc81a74f72457c52d9af4aa406ad7ca2 Mon Sep 17 00:00:00 2001 From: linggao Date: Mon, 19 May 2008 19:33:06 +0000 Subject: [PATCH] fixed ipmi trap problem git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@1450 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server-2.0/sbin/xcat_traphandler | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/xCAT-server-2.0/sbin/xcat_traphandler b/xCAT-server-2.0/sbin/xcat_traphandler index b3a6fb70b..b916506fa 100755 --- a/xCAT-server-2.0/sbin/xcat_traphandler +++ b/xCAT-server-2.0/sbin/xcat_traphandler @@ -70,9 +70,10 @@ checkWithOid($oid, $value); #print "I=$IGNORE,E=$EMAIL, L=$LOG, R=$RUNCMD\n"; if ($IGNORE) { exit 0;} -#for ipmi traps, the values is: SNMPv2-SMI::enterprises.3183.1.1.0.x, x is the ipmi trap id. -$value =~ s/(SNMPv2-SMI::enterprises\.3183\.1\.1\.0\.)//g; -my $trapid=$value; +#for ipmi traps, the values is: SNMPv2-SMI::enterprises.3183.1.1.0.x or +# RFC1155-SMI::enterprises.3183.1.1.0.x, where x is the ipmi trap id. +my $trapid; +if ($value =~ /enterprises\.3183\.1\.1\.0\.(.*)/) { $trapid=$1; } #print "trapid=$trapid\n";