Page MenuHomeFreeBSD

bsnmpget should print protocol errors to stderr
ClosedPublic

Authored by eugen_grosbein.net on Aug 1 2020, 9:08 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Nov 25, 1:23 PM
Unknown Object (File)
Oct 14 2024, 5:52 PM
Unknown Object (File)
Oct 4 2024, 12:53 AM
Unknown Object (File)
Oct 3 2024, 9:05 PM
Unknown Object (File)
Oct 1 2024, 10:11 PM
Unknown Object (File)
Oct 1 2024, 7:25 PM
Unknown Object (File)
Sep 28 2024, 7:19 AM
Unknown Object (File)
Sep 22 2024, 11:44 PM
Subscribers

Details

Summary

Currently it is hard to determine if remote SNMP agent supports needed OID/subtree using automated tools with bsnmpget(1) because it prints an error to stdout mixing it with received other data.

This change makes it print error to stderr, as well as bsnmpwalk/bsnmpset that is same tool really.

Test Plan

Try to check for IF-MIB::ifHCInMulticastPkts

bsnmpwalk -o quiet -n -r 3 -t 2 -s public@switch .1.3.6.1.2.1.31.1.1.1.8 > /dev/null

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Looks good to me; let's wait if syrinx thinks the same.

The change looks reasonable to me, please commit

This revision is now accepted and ready to land.Aug 5 2020, 9:05 AM