Translate OIDs returned by Entity MIB e_type

This commit is contained in:
Bill Fenner
2007-02-26 00:19:15 +00:00
parent e5c81896aa
commit 09f80eeed7
2 changed files with 10 additions and 0 deletions

View File

@@ -68,6 +68,7 @@ use vars qw/$VERSION $DEBUG %MIBS %FUNCS %GLOBALS %MUNGE $INIT/;
);
%MUNGE = (
'e_type' => \&munge_e_type,
);
sub e_port {
@@ -88,6 +89,14 @@ sub e_port {
return \%e_port;
}
sub munge_e_type {
my $oid = shift;
my $name = &SNMP::translateObj($oid);
return $name if defined($name);
return $oid;
}
1;
=head1 NAME