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 eqch question part.question, e.g., 5.3 for Part 5, Question 3. Show it to the TA when you’re done.                 
On the Computer Science Department LAN, the only systems that responded to SNMP queries were HP printers and a Xerox copier. Here are the machines that we will use:                 
IP address | Name | What |
---|---|---|
129.82.44.62 | tuba.cs.colostate.edu | printer in CSB 120 |
129.82.44.73 | bassoon.cs.colostate.edu | printer on CSB 3rd floor |
129.82.44.113 | copier-1.cs.colostate.edu | Xerox copier/printer/scanner/fax |
They all speak both version 1 and version 2c of the SNMP protocol.                 
Ensure that the following packages are installed:
snmp
snmp-mibs-downloader
As super-user, execute the command download-mibs
.
                
Ensure that the line “mibs :
” in /etc/snmp/snmp.conf
is commented out.
                
snmpget
                Use snmpget
to retrieve some information about tuba
:
                
snmpget -v2c -c public tuba sysDescr.0 snmpget -v2c -c public tuba sysUpTimeInstance
That’s correct: sysDescr.0
ends with .0
, but
sysUpTimeInstance
doesn’t.
                
If you don’t have /etc/resolv.conf
set up correctly, you may have
to use tuba.cs.colostate.edu
rather than just tuba
.
                
Execute the second command several times; note that the time increases.                 
-v2c
mean?
-c public
mean?
tuba
been up?
snmpwalk
                The snmpwalk
command retrieves a bunch of information:
                
snmpwalk -v2c -c public copier-1
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
copier-1
:
                
snmpget -v2c -c public copier-1 sysContact.0
Now, use snmpset
to change that contact information:
                
snmpset -v2c -c public copier-1 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 bassoon 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?
tuba
, bassoon
, copier-1
), fetch the
values for prtMarkerColorantValue
using snmpwalk
. Which
printers can print what colors?
Show your work to the TA for credit.                 
Modified: 2015-11-14T16: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 |