This is a discussion on problem when configured view(SNMPv3).. within the SNMP Users forums, part of the Networking and Network Related category; This is a multi-part message in MIME format. ------_=_NextPart_001_01C65F74.80E6D174 Content-Type: text/plain; charset="us-ascii&...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
This is a multi-part message in MIME format.
------_=_NextPart_001_01C65F74.80E6D174 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi All, =20 I am using net-snmp-5.3.0.1. my /usr/local/share/snmp/snmpd.conf file has following configuration =20 #-----------------snmpd.conf file begins----------------------- =20 =20 # viewname incl/excl OID view test-view included system =20 # groupName securityModel securityName group mygroup usm raghu =20 # group context sec.model sec.level prefix read write notif access mygroup "" usm auth exact test-view none none =20 #user configuration authuser read raghu auth -v test-view =20 #-----------------snmpd.conf file ends----------------------- =20 =20 my /var/net-snmp/snmpd.conf has following line createUser raghu MD5 testraghu DES testraghu =20 which gets encrypted after enabling snmpd(which is enabled on 192.168.31.14). The problem that I have here is I am doing snmpget which is not giving the expected output. I am executing snmpget from 192.168.31.199. command and output as goes below. =20 snmpget -v 3 -u raghu -l authNoPriv -a MD5 -A testraghu 192.168.31.14 system.sysUpTime.0 DISMAN-EVENT-MIB::sysUpTimeInstance =3D No Such Object available on this agent at this OID =20 Can any one tell me what is wrong in this configuration file. If I remove -v test-view from user it works fine but it does not serve any purpose. =20 Regards, Raghavendra. S ------_=_NextPart_001_01C65F74.80E6D174 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META http-equiv=3DContent-Type content=3D"text/html; = charset=3Dus-ascii"> <META content=3D"MSHTML 6.00.2900.2802" name=3DGENERATOR></HEAD> <BODY> <DIV dir=3Dltr align=3Dleft><FONT face=3DArial size=3D2><SPAN=20 class=3D215130212-12042006>Hi All,</SPAN></FONT></DIV> <DIV><FONT face=3DArial size=3D2><SPAN=20 class=3D215130212-12042006></SPAN></FONT> </DIV> <DIV><FONT face=3DArial size=3D2><SPAN=20 class=3D215130212-12042006> I am using=20 <STRONG>net-snmp-5.3.0.1</STRONG>. </SPAN></FONT><FONT face=3DArial = size=3D2><SPAN class=3D215130212-12042006>my=20 <STRONG>/usr/local/share/snmp/snmpd.conf</STRONG> file has following=20 configuration</SPAN></FONT></DIV> <DIV><FONT face=3DArial size=3D2><SPAN=20 class=3D215130212-12042006></SPAN></FONT> </DIV> <DIV><FONT face=3DArial size=3D2><SPAN=20 class=3D215130212-12042006>#-----------------snmpd.conf file=20 begins----------------------- </SPAN></FONT></DIV> <DIV><FONT face=3DArial size=3D2><SPAN=20 class=3D215130212-12042006></SPAN></FONT> </DIV> <DIV><SPAN class=3D215130212-12042006><SPAN = class=3D529131803-14042006><FONT=20 face=3DArial size=3D2># &nbs p; =20 viewname incl/excl &n= bsp; OID</FONT></SPAN></SPAN></DIV> <DIV><SPAN class=3D215130212-12042006><FONT size=3D2><FONT = face=3DArial><SPAN=20 class=3D529131803-14042006> </SPAN>view =20 <STRONG>test-view</STRONG> =20 included =20 system</FONT></FONT></SPAN></DIV> <DIV><FONT face=3DArial color=3D#0000ff size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2><SPAN=20 class=3D215130212-12042006># =20 groupName securityModel=20 securityName<BR>group =20 mygroup = 20 usm   ; =20 <STRONG>raghu</STRONG></SPAN></FONT></DIV> <DIV><FONT face=3DArial color=3D#0000ff size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2><SPAN=20 class=3D215130212-12042006># = group =20 context sec.model sec.level prefix read write =20 notif<BR>access mygroup "" =20 usm auth = exact =20 <STRONG>test-view</STRONG> none =20 none</SPAN></FONT></DIV> <DIV><FONT face=3DArial color=3D#0000ff size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2><SPAN class=3D215130212-12042006>#user=20 configuration<BR>authuser read <STRONG>raghu</STRONG> auth = <STRONG>-v=20 test-view</STRONG></SPAN></FONT></DIV> <DIV><FONT face=3DArial size=3D2><SPAN=20 class=3D215130212-12042006></SPAN></FONT> </DIV> <DIV><SPAN class=3D215130212-12042006> <DIV><FONT face=3DArial size=3D2><SPAN=20 class=3D215130212-12042006>#-----------------snmpd.conf file=20 ends----------------------- </SPAN></FONT></DIV> <DIV><FONT face=3DArial color=3D#0000ff size=3D2><SPAN=20 class=3D215130212-12042006></SPAN></FONT> </DIV> <DIV><FONT face=3DArial size=3D2><SPAN class=3D215130212-12042006>my=20 <STRONG>/var/net-snmp/snmpd.conf</STRONG> has following = line</SPAN></FONT></DIV> <DIV><FONT face=3DArial size=3D2><SPAN = class=3D215130212-12042006>createUser raghu MD5=20 testraghu DES testraghu</SPAN></FONT></DIV> <DIV><FONT face=3DArial color=3D#0000ff size=3D2><SPAN=20 class=3D215130212-12042006></SPAN></FONT> </DIV> <DIV><FONT face=3DArial size=3D2><SPAN class=3D215130212-12042006>which = gets encrypted=20 after enabling <STRONG>snmpd(</STRONG>which is enabled on=20 <STRONG>192.168.31.14</STRONG>). The problem that I have here is I = am doing=20 snmpget which is not giving the expected output. I am = executing=20 <STRONG>snmpget</STRONG> from <STRONG>192.168.31.199</STRONG>.<STRONG>=20 </STRONG>command and output as goes below.</SPAN></FONT></DIV> <DIV><FONT face=3DArial size=3D2><SPAN=20 class=3D215130212-12042006></SPAN></FONT> </DIV> <DIV><FONT face=3DArial size=3D2><SPAN = class=3D215130212-12042006>snmpget -v 3 -u=20 raghu -l authNoPriv -a MD5 -A testraghu 192.168.31.14=20 system.sysUpTime.0<BR>DISMAN-EVENT-MIB::sysUpTimeInstance =3D No Such = Object=20 available on this agent at this OID<BR></SPAN></FONT></DIV> <DIV><SPAN class=3D215130212-12042006><FONT face=3DArial><FONT = size=3D2><SPAN=20 class=3D529131803-14042006><FONT=20 color=3D#0000ff></FONT></SPAN></FONT></FONT></SPAN> </DIV> <DIV><SPAN class=3D215130212-12042006><FONT face=3DArial><FONT = size=3D2><SPAN=20 class=3D529131803-14042006> </SPAN>Can any one tell me what is = wrong in this=20 configuration file. If I remove <STRONG>-v test-view</STRONG> from user = it works=20 fine but it does not serve any purpose.</FONT></FONT></SPAN></DIV> <DIV><FONT face=3DArial size=3D2><SPAN=20 class=3D215130212-12042006></SPAN></FONT> </DIV> <DIV><FONT face=3DArial size=3D2><SPAN=20 class=3D215130212-12042006>Regards,</SPAN></FONT></DIV> <DIV><FONT face=3DArial size=3D2><SPAN = class=3D215130212-12042006>Raghavendra.=20 S</SPAN></FONT></SPAN></DIV></DIV></BODY></HTML> ------_=_NextPart_001_01C65F74.80E6D174-- ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=...720&dat=121642 _______________________________________________ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/...net-snmp-users |