Configuring SNMP Agents


Configuring the Agent in Linux versions prior to 8

For details about installing SNMP agents in Linux systems, refer to Installing SNMP Agent on Linux Systems.

  1. Stop the agent if it is running already using the command:
    /etc/rc.d/init.d/snmpd stop
     
  2. Make the following changes in /etc/rc.d/init.d/snmpd file
    Replace the line
    daemon /usr/sbin/snmpd $OPTIONS
    with
    daemon /root/ucd_agent/sbin/snmpd $OPTIONS
     

    Replace the line
    killproc /usr/sbin/snmpd
    with
    killproc /root/ucd_agent/sbin/snmpd
     
    This is to choose the current installed version while starting and stopping the SNMP agent.

  1. Start the agent using the command /etc/rc.d/init.d/snmpd start.



Configuring the Agent in Linux versions 8 and above

On Linux versions 8 and above, the latest version of SNMP will already be available. You need to just make the following changes in snmpd.conf file:

  1. Insert the line
    view allview included .1.3.6
     
    next to the line
    # name incl/excl subtree mask(optional)
     
  2. Change the line
    access notConfigGroup " " any noauth exact systemview none none
     
    next to the line
    # group context sec.modelsec.level prefix read write notif
     
    as
    access notConfigGroup "" any noauth exact allview none none
     
  3. Then restart the snmp agent using the following command:
    /etc/rc.d/init.d/snmpd restart
     
Page was generated in 0.0163 seconds