Can I override the defVersion in host specific conf files?
Ari Rabinowitz <[email protected]> Mon, 21 Apr 2025 15:43:30 -0400
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <CAECnTpP_HubnToDJ=jMztW1KJV_QN5RjcKk8iR+hji1=rTLvVg@mail.gmail.com> |
--===============3302757052911923005== Content-Type: multipart/alternative; boundary="000000000000c64c4606334f1553" --000000000000c64c4606334f1553 Content-Type: text/plain; charset="UTF-8" Hi, I'm trying to set up SNMP monitoring of many of our devices. Since most of them support SNMPv3 I've set up the following in my /etc/snmp/snmp.conf: defVersion 3 defSecurityLevel authPriv defAuthType SHA defPrivType AES defAuthPassphrase REDACTED defPrivPassphrase REDACTED defSecurityName USER I'm able to override the Version 3 parameters such as defSecurityLevel, defAuthType and the passphrases for the devices which support SNMPv3 in host specific configuration files in /etc/snmp/hosts/, but I can't find any way to specify in a host-specific configuration that the host uses version 2c or version 1. Is there any way to do that, if the general default is version 3? I'm running NET-SNMP version: 5.9.1 on an Ubuntu 24.04 system. Thanks, Ari -- Ari Rabinowitz Systems Administrator IT Infrastructure and Support Computer Science Department Columbia University Tel: 212-853-8418 --000000000000c64c4606334f1553 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div dir=3D"ltr"><div>Hi,</div><div><br></div><div>I'm= trying to set up SNMP monitoring of many of our devices. Since most of the= m support SNMPv3 I've set up the following in my /etc/snmp/snmp.conf:<b= r>defVersion 3<br>defSecurityLevel authPriv<br>defAuthType SHA<br>defPrivTy= pe AES<br></div><div>defAuthPassphrase REDACTED<br>defPrivPassphrase=C2=A0 REDACTED<br>defSecurityName USER<br></div><div><br></div><div>I'm able = to override the Version 3 parameters such as defSecurityLevel, defAuthType = and the passphrases for the devices which support SNMPv3 in host specific c= onfiguration files in /etc/snmp/hosts/, but I can't find any way to spe= cify in a host-specific configuration that the host uses version 2c or vers= ion 1. Is there any way to do that, if the general default is version 3?</d= iv><div><br></div><div>I'm running=C2=A0NET-SNMP version: 5.9.1 on an U= buntu 24.04 system.</div><div><br></div><div>Thanks,</div><div>Ari</div><di= v><br></div><span class=3D"gmail_signature_prefix">-- </span><br><div dir= =3D"ltr" class=3D"gmail_signature" data-smartmail=3D"gmail_signature"><div = dir=3D"ltr"><div><font size=3D"2" face=3D"arial, helvetica, sans-serif">Ari= Rabinowitz<br></font></div><div><font size=3D"2" face=3D"arial, helvetica,= sans-serif">Systems Administrator<br></font></div><div><font size=3D"2" fa= ce=3D"arial, helvetica, sans-serif">IT Infrastructure and Support<br></font= ></div><div><font size=3D"2" face=3D"arial, helvetica, sans-serif">Computer= Science Department</font></div><div><font size=3D"2" face=3D"arial, helvet= ica, sans-serif">Columbia University</font></div><font size=3D"2" face=3D"a= rial, helvetica, sans-serif">Tel:=C2=A0<a value=3D"+12129397131" style=3D"c= olor:rgb(17,85,204)">212-853-8418</a></font></div></div></div> </div> --000000000000c64c4606334f1553-- --===============3302757052911923005== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline --===============3302757052911923005== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ 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 --===============3302757052911923005==--