SNMP Install

From INIwiki
(Redirected from Windows/SNMP Install)
Jump to: navigation, search

Contents

[edit] Windows

The following steps describe how to install the SNMP service on a Windows 2000 machine:

1.Invoke the Windows 2000/XP Control Panel.
2.Double click the Add/Remove Programs icon.
3.Select Add/Remove Windows Components. The Windows Component Wizard is displayed.
4.Check the Management and Monitoring Tools box.
5.Click the Details button.
6.Check the Simple Network Management Protocol box and click OK. The Windows Component Wizard is redisplayed.
7.Click Next to proceed through the Windows Component Wizard until it has finished.

Configuring SNMP Service for Windows 2000 Follow the steps below to configure SNMP Service on a Windows 2000 machine:

1.Invoke the Windows 2000/XP Control Panel.
2.Double click the Administrative Tools icon.
3.Double click the Services icon.
4.Select SNMP Service.
5.Choose the Agent tab.
6.Enter Contact and Location.
7.Choose the Traps tab.
8.Enter Community Name: public.
9.Click Add to List.
10.Under Trap Destinations, click Add and enter the IP address for each management node to receive trap notifications from this managed node. 
11.Click OK when done.
12.Choose the Security tab.
13.Highlight public and click Edit. Change Community Rights to READ CREATE.
14.Click OK.
15.Stop SNMP Service (if started) and restart.
16.Double click SNMP Trap Service.
17.Set Startup Type to 'Automatic'.
18.Click OK.
19.Stop SNMP Trap Service (if started) and restart.

[edit] Linux Install

yum install net-snmp
apt-get install snmpd

[edit] Sample Config File

###############################################################################
# SECTION: Custom File
#       Company: Company Name
#       Created By: Chad Stanfield
#       Create Date: 08/14/2006
#       Version: 1
#       Last Modified By: Chad Stanfield
#       Last Modified Date: 07/18/2007
##############################################################################
#
# SECTION: System/Contact Info
sysdescription "INIsec Standard SNMP Setup"
syslocation "INIsec - Salt Lake City Corporate"
syscontact "Chad Stanfield chad@inisec.com"
###############################################################################
# SECTION: Access Control Setup (v2c)
#community      -c name         ip alloed to connect    OID
#--------------------------------------------------------------
rocommunity     iniro           192.168.0.71            1.3.6.1
rocommunity     iniro           127.0.0.1
#rocommunity    public   
#
###############################################################################
# Process checks.
proc httpd                              #1.3.6.1.4.1.2021.2.4
proc mysqld                             #1.3.6.1.4.1.2021.2.5  
#
###############################################################################
# File Size checks
file /var/log/messages                  #1.3.6.1.4.1.2021.15.1
#                                       #1.3.6.1.4.1.2021.15.2
###############################################################################
# Executables/scripts
# Not Used
###############################################################################
# disk checks
disk /                                  #1.3.6.1.4.1.2021.9.1 
#
###############################################################################
# load average checks
load 12 12 14                           #1.3.6.1.4.1.2021.10.0  
#
###############################################################################
# Extensible sections.
#Not Used
# ideas:
#
# exec .1.3.6.1.4.1.2021.51 ps /bin/ps
# exec .1.3.6.1.4.1.2021.52 top /usr/local/bin/top 
#
###############################################################################
# Pass through control.
pass .1.3.6.1.4.1.4413.4.1 /usr/bin/ucd5820stat 
#
##############################################################################
# End of File

[edit] Additional SNMP Commands

[edit] SNMP WALK

snmpwalk -v 2c 192.168.0.71 -c iniro

[edit] SNMP Translate

Reference: http://net-snmp.sourceforge.net/wiki/index.php/TUT:snmptranslate

Personal tools