Configuring SNMP Agents
Configuring SNMP Agent in
Windows XP, 2000, and 2003 Systems
For details about installing SNMP agents in Windows systems, refer
to Installing SNMP Agent on Windows Systems.
To configure SNMP agent in Windows XP and 2000 systems, follow the
steps given below:
- Click Start, point to Settings,
click Control Panel.
- Under Administrative Tools, click Services.
- In the details pane, right-click SNMP Service and
select Properties.
- In the Security tab, select Send
authentication trap if you want a trap message to be sent
whenever authentication fails.
- Under Accepted community names, click Add.
- Under Community Rights, select a permission
level for this host to process SNMP requests from the selected
community.
- In Community Name, type a case-sensitive
community name, and then click Add.
- Specify whether or not to accept SNMP packets from a host:
- To accept SNMP requests from any host on the network,
regardless of identity, click Accept SNMP packets from any host.
- To limit acceptance of SNMP packets, click Accept
SNMP packets from these hosts, click Add,
type the appropriate host name, IP or IPX address, and then click Add
again.
- Click Apply to apply the changes.
To configure SNMP traps, follow the steps given below:
- Click Start, point to Settings,
click Control Panel.
- Under Administrative Tools, click Services.
- In the details pane, right-click SNMP Service and
select Properties.
- In the Traps tab, under Community name,
type the case-sensitive community name to which this computer will send
trap messages, and then click Add to list.
- Under Trap destinations, click Add.
- In the Host name, IP or IPX address field,
type host name or its IP address of the server (OpManager server) to
send the trap, and click Add.
- Repeat steps 5 through 7 until you have added all the communities
and trap destinations you want.
- Click OK to apply the changes.
Configuring SNMP Agent in
Windows NT Systems
For details about installing SNMP agents in Windows systems, refer
to Installing SNMP Agent on Windows Systems.
To configure SNMP agent in Windows NT systems, follow the steps
given below:
- Click Start, point to Settings,
click Control Panel.
- Under Administrative Tools, click Services.
- In the details pane, right-click SNMP Service and
select Properties.
- In the Security tab, select Send
authentication trap if you want a trap message to be sent
whenever authentication fails.
- Under Accepted Community Names, click Add.
- In the Community Names box, type the community
name to authenticate the SNMP requests.
- To move the name to the Accepted Community Names
list, click Add.
- Repeat steps 6 and 7 for any additional community name.
- To specify whether to accept SNMP packets from any host or from
only specified hosts, click one of two options:
- Accept SNMP Packets From Any Host, if no SNMP
packets are to be rejected on the basis of source computer ID.
- Only Accept SNMP Packets From These Hosts, if
SNMP packets are to be accepted only from the computers listed. To
designate specific hosts, click Add, type the names or addresses of the
hosts from which you will accept requests in the IP Host or IPX Address
box, and then click Add.
- Repeat step 11 for any additional hosts.
- In the Agent tab, specify the appropriate
information (such as comments about the user, location, and services).
- Click OK to apply the changes.
Further, the SNMP Agent running Windows NT does not respond to Host
Resource Data, by default. To include this support, you should have
Windows NT Service Pack 6 & above. Verify this and then follow the
steps given below:
- Extract the NTHR-MIB.zip available at
http://bonitas.adventnet.com/opmanager/09Sep2004/NTHR-MIB.zip
into C:\WinNT\system32 folder.
- Double click on the registry files to import the mibs into
Windows registry.
- Restart your Windows NT box.
To Configure SNMP Traps, follow the steps given below:
- Click Start, point to Settings,
and then click Control Panel. Double-click Administrative
Tools, and then double-click Services.
- In the details pane, click SNMP Service, and
then click Properties.
- Click the Traps tab.
- To identify each community to which you want this computer to
send traps, type the name in the Community Name box.
Community names are case sensitive.
- After typing each name, click Add to add the
name to the list.
- To specify hosts for each community you send traps to, after you
have added the community and while it is still highlighted, click Add
under Trap Destination.
- To move the name or address to the Trap Destination list for the
selected community, type the host name in the IP Host/Address
or IPX Address box, and then click Add.
- Repeat step 10 for any additional hosts.
- Click OK to apply the changes.
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.
- Stop the agent if it is running already using the command:
/etc/rc.d/init.d/snmpd stop
- 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.
- 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:
- Insert the line
view allview
included .1.3.6
next to the line
# name
incl/excl
subtree
mask(optional)
- Change the line
access notConfigGroup "" any
noauth exact
systemview none none
next to the line
# group
context sec.model
sec.level prefix read write notif
as
access notConfigGroup "" any
noauth exact
allview none none
- Then restart the snmp agent using the following command:
/etc/rc.d/init.d/snmpd restart
Configuring the Agent in
Solaris Systems
For details about installing SNMP agents in Solaris systems, refer
to Installing SNMP Agent on Solaris Systems.
- Stop the agent if it is running already using the following
command:
/etc/init.d/init.snmpdx stop
- Make the following changes in /etc/init.d/init.snmpdx
file
- Replace the lines
if [ -f /etc/snmp/conf/snmpdx.rsrc -a -x /usr/lib/snmp/snmpdx ]; then
/usr/lib/snmp/snmpdx -y -c /etc/snmp/conf -d 3 -f 0
fi
with
<Installation Directory>/sbin/snmpd
- Replace the line
/usr/bin/pkill -9 -x -u 0 '(snmpdx|snmpv2d|mibiisa)'
with
/usr/bin/pkill -9 -x -u 0 '(snmpd)'
- Restart the agent using the following command:
/etc/init.d/init.snmpdx start.
Copyright © 2005-2009,
ZOHO Corp. All Rights Reserved.