in reply to Net::SNMP $session-get_request problem

I've never used Net::SNMP, but this syntax looks a little odd to me (not wrong, just unusual). According to this: ($remote_snmp_session,$error) = Net::SNMP->session(...there is a (class) method session which returns an array of at least two elements; the first is an object (which you assign to $remote_snmp_session), and the second is some sort of error indicator ($error).

Later you call an (instance) method called error off the returned object. Are you sure the module indicates errors both ways? TIMTOWTDI, but this is new to me.

Your die looks unusual also. You're interpolating the system error, if any, into your die string ($!), and then calling the error method. If that method returns a string, try this instead:

$result = $remote_snmp_session->get_request($iod) or die("Problem " . $remote_snmp_session->error);
If that error method does something else, this code is probably wrong....

HTH