Hi Majit, I dint actually get what u meant by copying the line. I am attaching my conf file with this reply. Please make the changes. Also tell me if i have to make changes to other PC's conf file. And i am running this on linux platform(Virtual Machine). Configuring net-snmp for my is critical for my project. Please help.
Thanks for your valuable time, --Hemant On Mon, Mar 15, 2010 at 2:27 PM, Manjit <manjit.si...@globaledgesoft.com>wrote: > Hi Hemant, > Put the below line in snmpd.conf and try : > rwcommunity demopublic > > Regards, > Manjit > > Hemant Soundankar wrote: > >> Hi ALL, >> >> >> I have installed net-snmp 5.4.2.1 on two PCs >> I have modified the snmp.conf file on my PC. >> >> >> >> --This is some part of my snmp.conf file >> >> #### >> # First, map the community name (COMMUNITY) into a security name >> # (local and mynetwork, depending on where the request is coming >> # from): >> >> # sec.name <http://sec.name> source community >> >> com2sec local localhost democommunity >> com2sec mynetwork 192.168.0.0 /24 democommunity >> >> #### >> # Second, map the security names into group names: >> >> # sec.model sec.name <http://sec.name> >> >> group MyRWGroup v1 local >> group MyRWGroup v2c local >> group MyRWGroup usm local >> group MyROGroup v1 mynetwork >> group MyROGroup v2c mynetwork >> group MyROGroup usm mynetwork >> >> #### >> # Third, create a view for us to let the groups have rights to: >> >> # incl/excl subtree mask >> view all included .1 80 >> >> #### >> # Finally, grant the 2 groups access to the 1 view with different >> # write permissions: >> >> # context sec.model sec.level match read write notif >> access MyROGroup "" any noauth exact all none none >> access MyRWGroup "" any noauth exact all all none >> >> # >> ----------------------------------------------------------------------------- >> >> >> When I ping 192.168.1.8 (other PC from my PC), it responds successfully. >> >> But when i make run the following command : >> snmptable -v 2c -c democommunity 192.168.1.8 ifTable >> I get the following o/p: >> Timeout: No Response from 192.168.1.8 >> >> Please reply with a solution >> >> Thanks in advance >> -- >> Hemant Soundankar >> ------------------------------------------------------------------------ >> >> >> >> ------------------------------------------------------------------------------ >> Download Intel® Parallel Studio Eval >> Try the new software tools for yourself. Speed compiling, find bugs >> proactively, and fine-tune applications for parallel performance. >> See why Intel Parallel Studio got high marks during beta. >> http://p.sf.net/sfu/intel-sw-dev >> ------------------------------------------------------------------------ >> >> _______________________________________________ >> Net-snmp-coders mailing list >> Net-snmp-coders@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/net-snmp-coders >> >> > > -- Hemant Soundankar
snmpd.conf
Description: Binary data
------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev
_______________________________________________ Net-snmp-coders mailing list Net-snmp-coders@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/net-snmp-coders