Professional Documents
Culture Documents
IT19115962 Lab-6 SNMP
IT19115962 Lab-6 SNMP
Lab 6-SNMP
Submitted to
Sri Lanka Institute of 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.
2
1. Stop all the running services.
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 surya@unixmantra.com
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 .iso.3.6.1.private.enterprises.2021.2.1.prNames.0
# snmptranslate sysUpTime.0
5
# -
snmptranslate IR sysUpTime.0
# snmptranslate -Ib 'sys.*ime'
7
-
#snmpget -v 1 c public localhost system.sysUpTime
# snmpget -v 2c -c public localhost system.sysUpTime
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.