in reply to Multiple conditions matching when pulling OID value with Net::SNMP
if ( $status == 3 ) { print "The ups is normal\n"; } else { print "The ups is on battery\n"; } $session->close; [download]