LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Make net-snmp to walk only for 2 subtrees (https://www.linuxquestions.org/questions/linux-networking-3/make-net-snmp-to-walk-only-for-2-subtrees-4175558144/)

sluge 11-06-2015 01:57 AM

Make net-snmp to walk only for 2 subtrees
 
Hello,

I need a setup net-snmp to allow for user "myuser" walking only for 2 MIBs subtree.

In snmpd.conf I put the follwong line:

Code:

rwuser  myuser auth .1.3.6.1.2.1.10  .1.3.6.1.2.1.15
But it looks like this line is wrong. Is any way to say snmpd allow to user see only two OIDs?

nini09 11-06-2015 03:35 PM

1)First of all, only SNMPv3 support this kind of authentication.
2)Do you try follow format
rwuser myuser auth .1.3.6.1.2.1.10
rwuser myuser auth .1.3.6.1.2.1.15

sluge 11-09-2015 02:09 AM

Quote:

Originally Posted by nini09 (Post 5445708)
1)
2)Do you try follow format
rwuser myuser auth .1.3.6.1.2.1.10
rwuser myuser auth .1.3.6.1.2.1.15

Yes, the actual only the latest one

nini09 11-09-2015 03:09 PM

Then, you can use VACM configuration to make complicated included and excluded list.


All times are GMT -5. The time now is 02:01 PM.