From 1162dc3a7bbb0b4a41d8a72ff02104b0e2d0e88a Mon Sep 17 00:00:00 2001 From: Eric Miller <> Date: Mon, 28 Mar 2005 00:52:17 +0000 Subject: [PATCH] add endofmibview exception handling --- Info.pm | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Info.pm b/Info.pm index 545562c2..2121fcb8 100644 --- a/Info.pm +++ b/Info.pm @@ -2366,6 +2366,12 @@ sub _load_attr { last; } + # Check if last element, V2 devices may report ENDOFMIBVIEW even if + # instance or object doesn't exist. + if ($val eq 'ENDOFMIBVIEW'){ + last; + } + if ($val eq 'NOSUCHOBJECT'){ $self->error_throw("SNMP::Info::_load_attr: $attr : NOSUCHOBJECT"); next;