0% found this document useful (0 votes)
16 views

IT19115962 Lab-6 SNMP

This document discusses configuring and using SNMP on a network. It provides instructions on installing SNMP, configuring the SNMP daemon configuration file, starting the SNMP service, and using SNMP commands like snmptranslate, snmpget, snmpgetnext and snmpwalk to retrieve and view SNMP data. SNMP is a standard network protocol for monitoring devices on a network and gathering management information stored in MIBs.

Uploaded by

Kashmika Gamage
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
16 views

IT19115962 Lab-6 SNMP

This document discusses configuring and using SNMP on a network. It provides instructions on installing SNMP, configuring the SNMP daemon configuration file, starting the SNMP service, and using SNMP commands like snmptranslate, snmpget, snmpgetnext and snmpwalk to retrieve and view SNMP data. SNMP is a standard network protocol for monitoring devices on a network and gathering management information stored in MIBs.

Uploaded by

Kashmika Gamage
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 9

IE3020

Directory Services and Network Management


3rd Year, 1st Semester

Lab 6-SNMP

Submitted to
Sri Lanka Institute of Information Technology

In partial fulfillment of the requirements for the


Bachelor of Science Special Honors Degree in Information Technology

2021-06-30
Declaration
I certify that this report does not incorporate without acknowledgement, any material
previously submitted for a degree or diploma in any university, and to the best of my knowledge
and belief it does not contain any material previously published or written by another person,
except where due reference is made in text.

Registration Number : IT19115962


Name : H.B.G. Hasintha Kashmika

2
1. Stop all the running services.

# service dhcpd stop


# service named stop.

2. Install SNMP using the following command.

# yum install –y net-snmp net-snmp-utils

3
3. Use the following command to view the SNMP configuration file.

# vi /etc/snmp/snmpd.conf
Add below configuration to /etc/snmp/snmpd.conf
rocommunity public 10.0.1.2 rocommunity public
127.0.0.1 syslocation "HYD, UM DataCenter"
syscontact [email protected]

4. Start SNMP service using the following command

# service snmpd start

4
5. Use the snmptranslate commands to view the MIB-II and to retrieve information using
SNMP get requests.
#snmptranslate .1.3.6.1.2.1.1.3.0

#snmptranslate -On SNMPv2-MIB::system.sysUpTime.0

# snmptranslate .iso.3.6.1.private.enterprises.2021.2.1.prNames.0

# snmptranslate -On .iso.3.6.1.private.enterprises.2021.2.1.prNames.0

# snmptranslate -Of .iso.3.6.1.private.enterprises.2021.2.1.prNames.0

# snmptranslate sysUpTime.0

5
# -
snmptranslate IR sysUpTime.0
# snmptranslate -Ib 'sys.*ime'

# snmptranslate -TB 'vacm.*table'

# snmptranslate -On -Td -Ib 'sys.*ime'


-

snmptranslate Tp -IR system

snmpget : retrieving data from a host.

# snmpget -v 1 -c demopublic test.net-snmp.org system.sysUpTime.0

#snmpget -v 2c -c public test.net-snmp.org system.sysUpTime.0

7
-
#snmpget -v 1 c public localhost system.sysUpTime
# snmpget -v 2c -c public localhost system.sysUpTime

snmpgetnext : retrieving unknown indexed data

Snmpwalk command

8
-

Snmptable command

The Simple Network Management Protocol (SNMP) is an Internet Standard protocol for
gathering and organizing information about managed devices on IP networks, as well as
changing that information to alter device behavior. Cable modems, routers, switches, servers,
workstations, printers, and other devices commonly support SNMP.

In network administration, SNMP is frequently used for network monitoring. SNMP provides
management data about managed systems in the form of variables, which are structured in a
management information base (MIB) and explain the state and configuration of the system.
Managing apps can then query these variables remotely.

SNMP has been developed and deployed in three major versions. The initial version of the
protocol is SNMPv1. SNMPv2c and SNMPv3 are newer versions with improved
performance, flexibility, and security.

You might also like