Page MenuHomeFreeBSD

bsnmpget should print protocol errors to stderr
Needs ReviewPublic

Authored by eugen_grosbein.net on Sat, Aug 1, 9:08 AM.

Details

Reviewers
syrinx
Group Reviewers
network
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
Lint
Lint Skipped
Unit
Unit Tests Skipped
Build Status
Buildable 32692

Event Timeline

eugen_grosbein.net requested review of this revision.Sat, Aug 1, 9:08 AM
eugen_grosbein.net edited the summary of this revision. (Show Details)Sat, Aug 1, 9:10 AM
bz added a subscriber: bz.Sat, Aug 1, 10:02 AM

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