Presentation is loading. Please wait.

Presentation is loading. Please wait.

SNMP. Monitoring Read (udp 162) Write (udp 162) Traps (udp161)

Similar presentations


Presentation on theme: "SNMP. Monitoring Read (udp 162) Write (udp 162) Traps (udp161)"— Presentation transcript:

1 SNMP

2 Monitoring Read (udp 162) Write (udp 162) Traps (udp161)

3 Brief description Simple Network Management Protocol (SNMP) is a widely used protocol for monitoring the health and welfare of network equipment (eg. routers), computer equipment and even devices like UPSs. Net-SNMP is a suite of applications used to implement SNMP v1, SNMP v2c and SNMP v3 using both IPv4 and IPv6.

4 Net-SNMP Net-SNMP Tutorials http://www.net-snmp.org/tutorial/tutorial-5/ http://www.net-snmp.org/tutorial/tutorial-5/ Download Net-SNMP http://www.net-snmp.org/download.html http://www.net-snmp.org/download.html Net-SNMP Documentation http://www.net-snmp.org/docs/readmefiles.html http://www.net-snmp.org/docs/readmefiles.html

5 Install If you want to install snmp server in debian you need to install snmpd package using the following command. This will complete the installation process.installation process #apt-get install snmpd

6 Backup default config Before doing any changes to your /etc/snmp/snmpd.conf file take a copy of original file using the following command. #cp /etc/snmp/snmpd.conf /etc/snmp/snmpd.conf.orig

7 Config files Default Configuration files are located at /etc/snmp directory this contains the following files.Configuration files /etc/snmp/snmpd.conf - configuration file for the Net- SNMP SNMP agent. /etc/snmp/snmptrapd.conf - configuration file for the Net- SNMP trap daemon.

8 Setup Set up the snmp server to allow read access from the other machines in your network for this you need to open the file /etc/snmp/snmpd.conf change the following Configuration and save the file. network

9 First step # sec.name source community com2sec paranoid default public #com2sec readonly default public #com2sec readwrite default private to #com2sec paranoid default public com2sec local localhost public com2sec localnet 172.16.99.0/24 public #com2sec readwrite default private Syntax : com2sec

10 Second step #### # Second, map the security names into group names: # sec.model sec.name group MyROSystem v1 paranoid group MyROSystem v2c paranoid group MyROSystem usm paranoid group MyROGroup v1 readonly group MyROGroup v2c readonly group MyROGroup usm readonly group MyRWGroup v1 readwrite group MyRWGroup v2c readwrite group MyRWGroup usm readwrite to group MyROSystem v1 local group MyROSystem v2c local group MyROSystem usm local group MyROGroup v1 localnet group MyROGroup v2c localnet group MyROGroup usm localnet group MyRWGroup v1 local group MyRWGroup v2c local group MyRWGroup usm local Syntax : group

11 Third step #### # Third, create a view for us to let the groups have rights to: # incl/excl subtree mask view all included.1 80 view system included.iso.org.dod.internet.mgmt.mib-2.system Don't change anything here leave this one as default setting

12 Fourth step #### # Finally, grant the 2 groups access to the 1 view with different # write permissions: # context sec.model sec.level match read write notif access MyROSystem "" any noauth exact system none none access MyROGroup "" any noauth exact all none none access MyRWGroup "" any noauth exact all all none Syntax : access any noauth exact Don't change anything here leave this one as default setting.

13 Optional Optional Configuration # System contact information syslocation Unknown (configure /etc/snmp/snmpd.local.conf) syscontact Root (configure /etc/snmp/snmpd.local.conf)

14 Restart daemon #/etc/init.d/snmpd restart The daemon, not the server … ;)

15 Install SNMP client tools #apt-get install snmp

16 Test your config #snmpwalk -v 2c -c SNMPv2-MIB::sysDescr.0 = STRING: Linux sritest 2.4.27-2-386 #1 Wed Aug 17 09:33:35 UTC 2005 i686 SNMPv2-MIB::sysObjectID.0 = OID: NET-SNMP- MIB::netSnmpAgentOIDs.10 SNMPv2-MIB::sysUpTime.0 = Timeticks: (168871) 0:28:08.71 …


Download ppt "SNMP. Monitoring Read (udp 162) Write (udp 162) Traps (udp161)"

Similar presentations


Ads by Google