not taking snmp version from .snmp/host/host.conf

"Michael W. Lucas" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Hi,

Running net-snmp 5.7.3 on FreeBSD 12.0, and 5.7.2 on CentOS 7.7.1908.

I can set SNMPv3 auth information in $HOME/.snmp/hostname.conf just
fine. If I create a per-host file to tell snmpwalk to use v2 or v2c,
however, it insists on using v3 anyway.

I can set snmp.conf to use v2c, and have individual hosts files
override that with v3. That's less than optimal.

My regular $HOME/.snmp/snmp.conf is:

defVersion 3
defSecurityName secureRW
defAuthPassphrase beVeryCareful
defAuthType SHA
defPrivPassphrase moreCarefulThanThat
defPrivType AES
defSecurityLevel authPriv


I have $HOME/.snmp/hosts/centos.conf to poke the host named "centos":

doDebugging 1
defversion  2c
defcommunity  insecureRO

When I run snmpbulkwalk without debugging, I get:

$ snmpbulkwalk centos
snmpbulkwalk: Unknown user name

Packet sniffing shows we're sending SNMPv3.

I have the full debug at http://www-old.michaelwlucas.com/centos.debug

Any suggestions?

Thanks,
==ml

-- 
Michael W. Lucas 	https://mwl.io/
author of: Absolute OpenBSD, SSH Mastery, git commit murder,
Immortal Clay, PGP & GPG, Absolute FreeBSD, etc, etc, etc...


_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.