This is a discussion on Re: How can I set contextName instead of default NULL within the SNMP Users forums, part of the Networking and Network Related category; --===============1711377069== Content-Type: multipart/alternative; boundary="=_9781307e45f6fbdb715caee5dac132cb" --=_9781307e45f6fbdb715caee5dac132cb Content-Type: text/plain; charset="ISO-8859-1" ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
--===============1711377069== Content-Type: multipart/alternative; boundary="=_9781307e45f6fbdb715caee5dac132cb" --=_9781307e45f6fbdb715caee5dac132cb Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit Hi Dave, Sorry if i'm wasting your time. But since I'm new user to netsnmp I dont know wat are all to post and all. Well here is the snmpd.conf file which I 've configured######################################## ################################### &nb sp;   ; & nbsp; &nb sp;   ; & nbsp; &nb sp;   ; # & nbsp; &nb sp;   ; & nbsp; &nb sp;   ; &n bsp; &nbs p; &n bsp; &nbs p; &n bsp; &nbs p; &n bsp; # snmpd.conf &nbs p; &n bsp; &nbs p; &n bsp; &nbs p; &n bsp; &nbs p; &n bsp; &nbs p; &n bsp; &nbs p; # & nbsp; &nb sp;   ; & nbsp; &nb sp;   ; & nbsp; &nb sp;   ; & nbsp; &nb sp;   ; & nbsp; & nbsp; &nb sp;   ; # - created by the snmpconf configuration program & nbsp; &nb sp;   ; & nbsp; &nb sp;   ; & nbsp; &nb sp;   ; & nbsp; # & nbsp; &nb sp;   ; & nbsp; &nb sp;&n bsp; &nbs p; &n bsp; &nbs p; &n bsp; &nbs p; &n bsp; &nbs p; ################################################## ######################### & nbsp; &nb sp;   ; & nbsp; &nb sp;   ; & nbsp; &nb sp; # SECTION: System Information Setup &nb sp;   ; & nbsp; &nb sp;   ; & nbsp; &nb sp;   ; & nbsp; &nb sp;   ; & nbsp; # & nbsp; &nb sp;   ; & nbsp; &nb sp; &n bsp; &nbs p; &n bsp; &nbs p; &n bsp; &nbs p; &n bsp; # This section defines some of the information reported in &n bsp; &nbs p; &n bsp; &nbs p; &n bsp; &nbs p; # the "system" mib group in the mibII tree. &nb sp;   ; & nbsp; &nb sp;   ; & nbsp; &nb sp;   ; & nbsp; &nb sp;   ; &n bsp; &nbs p; &n bsp; &nbs p; &n bsp; &nbs p; &n bsp; &nbs p; &n bsp; &nbs p; &n bsp; &nbs p; # syslocation: The [typically physical] location of the system. & nbsp; &nb sp;   ; & nbsp; &nb sp;   ; & nbsp; &nb sp;   ;   ; # Note that setting this value here means that when trying to &n bsp; &nbs p; &n bsp; &nbs p; &n bsp; &nbs p; # perform an snmp SET operation to the sysLocation.0 variable will make &nbs p; &n bsp; &nbs p; &n bsp; &nbs p; # the agent return the "notWritable" error code. IE, including   ; & nbsp; &nb sp;   ; & nbsp; &nb sp;   ; & nbsp; &nb sp; # this token in the snmpd.conf file will disable write access to &n bsp; &nbs p; &n bsp; &nb sp;   ; & nbsp; &nb sp; # the variable.   ; & nbsp; &nb sp;   ; & nbsp; &nb sp;   ; & nbsp; &nb sp;   ; & nbsp; &nb sp;   ; & nbsp; # arguments: location_string   ; & nbsp; &nb sp;   ; & nbsp; &nb sp;   ; & nbsp; &nb sp;   ; & nbsp; &nb sp;   ; &n bsp; &nbs p; &n bsp; &nbs p; &n b sp;   ; & nbsp; &nb sp;   ; & nbsp; &nb sp;   ; & nbsp; &nb sp; #syslocation sysLocation.0 & nbsp; &nb sp;   ; & nbsp; &nb sp;   ; & nbsp; &nb sp;   ;   ; & nbsp; &nb sp;   ;   ; &n bsp; &nbs p; &n bsp; &nbs p; &n bsp; &nbs p; &n bsp; &nbs p; &n bsp; &nbs p; &nb sp; # syscontact: The contact information for the administrator & nbsp; &nb sp;   ; & nbsp; &nb sp;   ; & nbsp; &nb sp;   ; # Note that setting this value here means that when trying to &n bsp; &nbs p; &n bsp; &nbs p; &n bsp; &nbs p; # perform an snmp SET operation to the sysContact.0 variable will make &nbs p; &n bsp; &nbs p; &n bsp; &nbs p; # the agent return the "notWritable" error code. IE, including   ; & nbsp; &nb sp;   ; & nbsp; &nb sp;&nb sp;   ; & nbsp; # this token in the snmpd.conf file will disable write access to &n bsp; &nbs p; &n bsp; &nbs p; &n bsp; # the variable.   ; & nbsp; &nb sp;   ; & nbsp; &nb sp;  ; & nbsp; &nb sp;   ; & nbsp; &nb sp;   ; & nbsp; &nb sp; # arguments: contact_string &n bsp; &nbs p; &n bsp; &nbs p; &n bsp; &nbs p; &n bsp; &nbs p; &n bsp; &nbs p; &n bsp; &nbs p; &n bsp; &nbs p; &n bsp; &nbs p; &n bsp; &nbs p; &n bsp; #sysconta ct sysContact.0 &n bsp; &nbs p; &n bsp; &nbs p; &n bsp; &nbs p; &n bsp; &nbs p; &n bsp; &n bsp; &nbs p; &n bsp; &nbs p; & nbsp; &nb sp;   ; & nbsp; &nb sp;   ; & nbsp; &nb sp;   ; & nbsp; &nb sp;   ; &n bsp; &nbs p; &n bsp; &nbs p; &n bsp; &nbs p;   ; & nbsp; &nb sp;   ; & nbsp; &nb sp;   ; & nbsp; #agentxsocket /tmp/agentx &n bsp; &nbs p; &n bsp; &nbs p; &n bsp; &nbs p; &n bsp; &nbs p; &n bsp; &nbs p; #agentxperms 777 777 myuser mygroup & nbsp; &nb sp;   ; & nbsp; &nb sp;   ; & nbsp; &nb sp;   ; & nbsp; &nb sp;   ; rwuser myuser &n bsp; &nbs p; &n bsp ; & nbsp; &nb sp;   ; & nbsp; &nb sp;   ; & nbsp; &nb sp;   ; & nbsp; &nb sp; rwuser myuser &n bsp; &nbs p; &n bsp; &nbs p; &n bsp; &nbs p; &n bsp; &nbs p; &n bsp; &nbs p; &n bsp; &n bsp; &nbs p; &n bsp; &nbs p; &n bsp; &nbs p; &n bsp; &nbs p;   ; &n bsp; &nbs p; trapsess -v 3 -u myuser -l authNoPriv -a MD5 -A my_password localhost   ; & nbsp; &nb sp;   ; & nbsp; &nb sp;   ; & nbsp; trap2sink localhost   ; & nbsp; &nb sp;   ; & nbsp; &nb sp ; & nbsp; &nb sp;   ; & nbsp; &nb sp;   ; & nbsp; &nb sp; informsink 10.203.199.28 public 162   ; & nbsp; &nb sp;   ; & nbsp; &nb sp;   ; & nbsp; &nb sp;   ; &nbs p;   ; #informsink localhost   ; & nbsp; &nb sp;   ; & nbsp; &nb sp;   ; & nbsp; &nb sp;   ; & nbsp; &nb sp;   ; & nbsp; agentxsocket tcp:localhost:705 &nb sp;   ; &nbs p; &n bsp; &nbs p; &n bsp; &nbs p; &n bsp; &nbs p; agentxperms 777 777 myuser mygroup master agentx &n bsp; &nbs p; &n bsp; &nbs p; &n bsp; &nbs p; &n bsp; &nbs p; &n bsp; &nbs p; &n bsp; [snmp] doDebugging 1 & nbsp; &nb sp;   ; & nbsp; &nb sp;   ; & nbsp; &nb sp;   ; & nbsp; &nb sp;   ; &nbs p; [snmp] debugTokens all   ; & nbsp; &nb sp;   ; & nbsp; &nb sp;   ; & nbsp; &nb sp;   ; & nbsp; &nb sp;   ; & nbsp; rwuser myuser &n bsp; &nbs p; &n bsp; &nbs p; &n bsp; &nbs p; &n bsp; &nbs p; &n bsp; &nbs p; rwuser myuser &n bsp; &nbs p; &n bsp; &nbs p; &n bsp;   ; & nbsp; &nb sp;   ; & nbsp; &nb sp;   ; & nbsp; agentXRetries 0 & nbsp; &nb sp;   ; & nbsp; &nb sp;   ; & nbsp; &nb sp;   ; & nbsp; &nb sp;   ; &n bsp; &nbs p; agentXTimeout 10000 &nb sp;   ; & nbsp; &nb sp;   ; & nbsp; &nb sp;   ; & nbsp; &nb sp;   ; & nbsp; &nb sp;   ; access mygroup "mycontext" authNoPriv myuser &n bsp;  ; & nbsp; &nb sp;   ; & nbsp; &nb sp;   ; & nbsp; &nb sp;   ; & nbsp; &nb sp; Regards, Girish --=_9781307e45f6fbdb715caee5dac132cb Content-Type: text/html; charset="ISO-8859-1" Content-Transfer-Encoding: quoted-printable Hi Dave,<br /> Sorry if i'm w= asting your time. But since I'm new user to netsnmp I dont know wat are all= to post and all. Well here is the snmpd.conf file which I 've configured<b= r /><br />################################################# ################= ########## &nbs p;  = ; & nbsp; &n= bsp; &nbs p;  = ; & nbsp; &n= bsp; &nbs p;  = ; <br /># = &n bsp; &nb= sp;   ; = &n bsp; &nb= sp;   ; = &n bsp; &nb= sp;   ; = &n bsp; &nb= sp;   ; = &n bsp; &nb= sp;   ; = <br /># snmpd.conf &n= bsp; &nbs p;  = ; & nbsp; &n= bsp; &nbs p;  = ; & nbsp; &n= bsp; &nbs p;  = ; & nbsp; &n= bsp; &nbs p;  = ; & nbsp; &n= bsp; &nbs p;  = ; & nbsp; <br /># = &n bsp; &nb= sp;   ; = &n bsp; &nb= sp;   ; = &n bsp; &nb= sp;   ; = &n bsp; &nb= sp;   ; = &n bsp; &nb= sp;   ; = &n bsp; <b= r /># - created by the snmpconf configuration program &nbs= p; &= nbsp; &nb sp; &nbs= p; &= nbsp; &nb sp; &nbs= p; &= nbsp; &nb sp; &nbs= p; <br />= # & nbsp; &n= bsp; &nbs p;  = ; & nbsp; &n= bsp; &nbs p;  = ; & nbsp; &n= bsp; &nbs p;  = ; & nbsp; &n= bsp; &nbs p;  = ; & nbsp; &n= bsp; &nbs p;  = ; & nbsp; &n= bsp; <br />################################################# ###############= ########### &nb sp; &nbs= p; &= nbsp; &nb sp; &nbs= p; &= nbsp; &nb sp; &nbs= p; <br /># SECTION: System Information Setup &= nbsp; &nb sp; &nbs= p; &= nbsp; &nb sp; &nbs= p; &= nbsp; &nb sp; &nbs= p; &= nbsp; &nb sp; &nbs= p; &= nbsp; <br /># &n= bsp; &nbs p;  = ; & nbsp; &n= bsp; &nbs p;  = ; & nbsp; &n= bsp; &nbs p;  = ; & nbsp; &n= bsp; &nbs p;  = ; & nbsp; &n= bsp; &nbs p;  = ; & nbsp; &n= bsp; <br /># This section defines some of the= information reported in &nb= sp;   ; = &n bsp; &nb= sp;   ; = &n bsp; &nb= sp;   ; =   ; <br /># the "s= ystem" mib group in the mibII tree. &nbs= p; &= nbsp; &nb sp; &nbs= p; &= nbsp; &nb sp; &nbs= p; &= nbsp; &nb sp; &nbs= p; = <br /> & nbsp; &nb= sp;   ; = &n bsp; &nb= sp;   ; = &n bsp; &nb= sp;   ; = &n bsp; &nb= sp;   ; = &n bsp; &nb= sp;   ; = &n bsp; &nb= sp; <br /># syslocation: The [typically physical] location of t= he system. & nbsp;  = ; & nbsp; &n= bsp; &nbs p;  = ; & nbsp; &n= bsp; &nbs p;  = ; & nbsp; &n= bsp; <br /># Note that setting this value here mean= s that when trying to = &n bsp; &nb= sp;   ; = &n bsp; &nb= sp;   ; = &n bsp; &nb= sp; <br /># perform an snmp SET operati= on to the sysLocation.0 variable will make &nb= sp;   ; = &n bsp; &nb= sp;   ; = &n bsp; &nb= sp;   ; <br />#&nbs= p; the agent return the "notWritable" error code. IE, including= &n bsp; &nb= sp;   ; = &n bsp; &nb= sp;   ; = &n bsp; &nb= sp;   ; <br /= ># this token in the snmpd.conf file will disable write access = to &= nbsp; &nb sp; &nbs= p; &= nbsp; &nb sp; &nbs= p; &= nbsp; &nb sp; <br />#&n= bsp; the variable.   ; &nb= sp;   ; = &n bsp; &nb= sp;   ; = &n bsp; &nb= sp;   ; = &n bsp; &nb= sp;   ; = &n bsp; &nb= sp;   ; = <br /># arguments: location_string &nbs= p; &= nbsp; &nb sp; &nbs= p; &= nbsp; &nb sp; &nbs= p; &= nbsp; &nb sp; &nbs= p; &= nbsp; &nb sp; &nbs= p; <br /> = &n bsp; &nb= sp;   ; = &n bsp; &nb= sp;   ; = &n bsp; &nb= sp;   ; = &n bsp; &nb= sp;   ; = &n bsp; &nb= sp;   ; =   ; <br />#syslocation s= ysLocation.0 &n bsp; &nb= sp;   ; = &n bsp; &nb= sp;   ; = &n bsp; &nb= sp;   ; = &n bsp; &nb= sp;   ; = &n bsp; &nb= sp; <br /> & nbsp; = ; & nbsp; &n= bsp; &nbs p;  = ; & nbsp; &n= bsp; &nbs p;  = ; & nbsp; &n= bsp; &nbs p;  = ; & nbsp; &n= bsp; &nbs p;  = ; & nbsp; &n= bsp; &nbs p;  = ; <br /># syscontact: The contact information for t= he administrator & nbsp;  = ; & nbsp; &n= bsp; &nbs p;  = ; & nbsp; &n= bsp; &nbs p;  = ; & nbsp; &n= bsp; <br /># Note tha= t setting this value here means that when trying to = &n bsp; &nb= sp;   ; = &n bsp; &nb= sp;   ; = &n bsp; &nb= sp;   ; <br /># &nbs= p; perform an snmp SET operation to the sysContact.0 variable will make&nbs= p; &= nbsp; &nb sp; &nbs= p; &= nbsp; &nb sp; &nbs= p; &= nbsp; <br /># the agent return the "notWritab= le" error code. IE, including &nbs= p; &= nbsp; &nb sp; &nbs= p; &= nbsp; &nb sp; &nbs= p; &= nbsp; <br /># this token in the snmpd.c= onf file will disable write access to &n= bsp; &nbs p;  = ; & nbsp; &n= bsp; &nbs p;  = ; & nbsp; &n= bsp; &nbs p;  = ; <br /># the variable. &nbs= p; &= nbsp; &nb sp; &nbs= p; &= nbsp; &nb sp; &nbs= p; &= nbsp; &nb sp; &nbs= p; &= nbsp; &nb sp; &nbs= p; &= nbsp; <br /># arguments:&nb= sp; contact_string &nb= sp;   ; = &n bsp; &nb= sp;   ; = &n bsp; &nb= sp;   ; = &n bsp; &nb= sp;   ; = &n bsp; <b= r /> & nbsp;  = ; & nbsp; &n= bsp; &nbs p;  = ; & nbsp; &n= bsp; &nbs p;  = ; & nbsp; &n= bsp; &nbs p;  = ; & nbsp; &n= bsp; &nbs p;  = ; & nbsp; &n= bsp; &nbs p;  = ; <br />#syscontact sysContact.0 &= nbsp; &nb sp; &nbs= p; &= nbsp; &nb sp; &nbs= p; &= nbsp; &nb sp; &nbs= p; &= nbsp; &nb sp; &nbs= p; &= nbsp; &nb sp; <br /> &nb= sp;   ; = &n bsp; &nb= sp;   ; = &n bsp; &nb= sp;   ; = &n bsp; &nb= sp;   ; = &n bsp; &nb= sp;   ; = &n bsp; &nb= sp;   ; = <br /> & nbsp; &n= bsp; &nbs p;  = ; & nbsp; &n= bsp; &nbs p;  = ; & nbsp; &n= bsp; &nbs p;  = ; & nbsp; &n= bsp; &nbs p;  = ; & nbsp; &n= bsp; &nbs p;  = ; & nbsp; &n= bsp; <br />#agentxsocket /tmp/agentx &nb= sp;   ; = &n bsp; &nb= sp;   ; = &n bsp; &nb= sp;   ; = &n bsp; &nb= sp;   ; = &n bsp; &nb= sp;   ; <br />#agentxperm= s 777 777 myuser mygroup & nbsp;&nb= sp;   ; = &n bsp; &nb= sp;   ; = &n bsp; &nb= sp;   ; = &n bsp; &nb= sp;   ; =   ; <br />rwuser myuser &= nbsp; &nb sp; &nbs= p; &= nbsp; &nb sp; &nbs= p; &= nbsp; &nb sp; &nbs= p; &= nbsp; &nb sp; &nbs= p; &= nbsp; &nb sp; &nbs= p; = <br />rwuser myuser &n bsp; &n= bsp; &nbs p;  = ; & nbsp; &n= bsp; &nbs p;  = ; & nbsp; &n= bsp; &nbs p;  = ; & nbsp; &n= bsp; &nbs p;  = ; & nbsp; &n= bsp; &nbs p;  = ; <br /> &= nbsp; &nb sp; &nbs= p; &= nbsp; &nb sp; &nbs= p; &= nbsp; &nb sp; &nbs= p; &= nbsp; &nb sp; &nbs= p; &= nbsp; &nb sp; &nbs= p; &= nbsp; <br />trapsess -v 3 -u myuser -l = authNoPriv -a MD5 -A my_password localhost &nb= sp;   ;   |