This is a discussion on Need help for snmpset - SNMP ; Hi, I need help. I adds new private mib process module to snmp agent, and successfully bulid it into snmpd. But I have problem when I use snmpset to set a data to snmp agent. I run snmpd(snmp agent) on ...
I need help. I adds new private mib process module to snmp agent, and
successfully bulid it into snmpd.
But I have problem when I use snmpset to set a data to snmp agent. I run
snmpd(snmp agent) on pc whose IP address is 10.48.138.84, and run
snmpset on other snmp client whose IP is 10.48.138.85. snmpset give
error shown below
# snmpset -v 2c -On -c public 10.48.138.84
..18.104.22.168.22.214.171.124.126.96.36.199.2 i 2
Error in packet.
But when I run snmpset on pc which run snmpd, it is no error
#snmpset -v 2c -On -c public localhost .188.8.131.52.184.108.40.206.220.127.116.11.2 i
..18.104.22.168.22.214.171.124.126.96.36.199.2 = INTEGER: 2
I thinks it maybe snmpd do not let other snmp client to write except
localhost. But I changed the /etc/snmp/snmpd.conf like below to let
10.48.138.85 have a writable right(I think). But, it does not work, and
have same error like "noAccess".
Could you give me some advice, tell me what wrong? Thanks !
# sec.name source community
#com2sec notConfigUser default public
com2sec local localhost public
com2sec mynetwork 10.48.138.85 public
#com2sec mynetwork 10.48.137.0/24 public
#com2sec mynetwork 10.48.138.0/24 public
# Second, map the security name into a group name:
# groupName securityModel securityName
group MyRWGroup v1 mynetwork
group MyRWGroup v2c mynetwork
group MyRWGroup usm mynetwork
group MyRWGroup v1 local
group MyRWGroup v2c local
group MyRWGroup usm local
# Third, create a view for us to let the group have rights to:
# Make at least snmpwalk -v 1 localhost -c public system fast again.
# name incl/excl subtree mask(optional)
#view systemview included .188.8.131.52.2.1.1
#view systemview included .184.108.40.206.220.127.116.11.1
view all included .1 80
# Finally, grant the group read-only access to the systemview view.
# group context sec.model sec.level match read
access MyRWGroup "" any noauth exact all all
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
Net-snmp-users mailing list
Please see the following page to unsubscribe or change other options: