Linux


 

The installation of new version of SNMP is required only for Redhat Linux versions.

 

Download the latest version of SNMP using the following URL:
 

http://heanet.dl.sourceforge.net/sourceforge/net-snmp/

 

Extract the file using following command:
 

tar -zxvf ucd-snmp-4.2.6.tar.gz
 

To install SNMP, follow the steps given below:

  1. Log in as root user.

  2. Execute the command to set the path of the C compiler:

  3. Export PATH=<gcc path>:$PATH

  4. Execute the following four commands from the directory where you have extracted the ucd-snmp:

In case of rpm (redhat package manager) package installation use the following command.
 

$ rpm -i <package name>

Configuring the Agent in Linux versions prior to 8

  1. Stop the agent if it is already running using the command:

/etc/rc.d/init.d/snmpd stop

 

    2 . Make the following changes in the /etc/rc.d/init.d/snmpd file

This is to choose the current installed version while starting and stopping the SNMP agent.
 

3.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)
 

3.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
 

4.Then restart the SNMP agent using the following command:
 

/etc/rc.d/init.d/snmpd restart

Copyright © 2004-2012, ZOHO Corp. All Rights Reserved.
ManageEngine