CT320: Network and Systems Administration                 
For this lab, we will execute SNMP commands with several different options. You will create a document with answers to the questions that follow. Number each question part.question, e.g., 4.3 for Part 4, Question 3. Show it to the TA when you’re done.                 
Here are the hosts that we will use. They are not workstations or laptops, but they are devices on the net:                 
Host | Community String |
---|---|
10.1.44.62 | public |
10.1.44.66 | public |
10.1.44.63 | public |
129.82.44.45 | this4now |
129.82.44.50 | this4now |
They all speak both version 1 and version 2c of the SNMP protocol.                 
Ensure that the following packages are installed:
snmp
snmp-mibs-downloader
See the Installation lab if you’ve forgotten how to install packages.                 
Ensure that the line “mibs :
” in /etc/snmp/snmp.conf
is commented out.
                
snmpget
                Use snmpget
to retrieve some information about 10.1.44.62:
                
snmpget -v2c -c public 10.1.44.62 sysDescr.0 snmpget -v2c -c public 10.1.44.62 sysUpTimeInstance
That’s correct: sysDescr.0
ends with .0
, but
sysUpTimeInstance
doesn’t.
                
Execute the second command several times; note that the time increases.                 
-v2c
mean?
-c public
mean?
Using snmpget
, identify all five hosts. What sort of device is each
one? Write it down.
                
snmpwalk
                The snmpwalk
command retrieves a bunch of information:
                
snmpwalk -v2c -c public 10.1.44.63
It’s quite a lot—send it to a file, and view the file in an editor.                 
IF-MIB::
for network interface
information.)
snmpset
                Use snmpget
to retrieve just the contact information for
10.1.44.63:
                
snmpget -v2c -c public 10.1.44.63 sysContact.0
Now, use snmpset
to change that contact information:
                
snmpset -v2c -c public 10.1.44.63 sysContact.0 string "The Dread Pirate Roberts"
We will now focus on one particular MIB, the Printer MIB.                 
Execute this command, which will display all the information
defined in the Printer MIB, which is in /var/lib/mibs/ietf/Printer-MIB
.
                
snmpwalk -mPrinter-MIB -v1 -c public 10.1.44.66 printmib
Send it to a file; view it in an editor.                 
-mPrinter-MIB
?
prtInputMaxCapacity
. There are two values, one for each paper
tray. What are the values?
prtInputCapacityUnit
in the output, which is the units used
for prtInputMaxCapacity
. That is, it says whether
prtInputMaxCapacity
is in sheets of paper, inches of paper, meters
of paper, etc. Which one is it?
prtInputCurrentLevel
, which is how much paper is actually in
the tray right now. What are the values?
prtInputCurrentLevel
entry in the MIB. What do the values
from the previous question really mean?
prtMarkerColorantValue
using snmpwalk
. Which printers can print what colors?
Show your work to the TA for credit.                 
Modified: 2017-10-24T10:51                  User: Guest                  Check: HTML CSSEdit History Source |
Apply to CSU |
Contact CSU |
Disclaimer |
Equal Opportunity Colorado State University, Fort Collins, CO 80523 USA © 2015 Colorado State University |