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:
|10.1.44.62||public tuba, HP printer, CSB 120|
|10.1.44.66||public guitar, HP printer, CSB 3rd floor|
|10.1.44.63||public copier-1, Xerox copier/printer/scanner|
|18.104.22.168||this4now sw-1mdf3, ProCurve J4899C Switch|
|22.214.171.124||this4now sw-4mrm2, ProCurve J9022A Switch|
They all speak both version 1 and version 2c of the SNMP protocol.
Ensure that the following packages are installed:
See the Installation lab if you’ve forgotten how to install packages.
Ensure that the line “
mibs :” in
is commented out.
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
sysDescr.0 ends with
Execute the second command several times; note that the time increases.
snmpget, identify all five hosts. What sort of device is each
one? Write it down.
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.)
snmpget to retrieve just the contact information for
snmpget -v2c -c public 10.1.44.63 sysContact.0
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
snmpwalk -mPrinter-MIB -v1 -c public 10.1.44.66 printmib
Send it to a file; view it in an editor.
prtInputMaxCapacity. There are two values, one for each paper tray. What are the values?
prtInputCapacityUnitin the output, which is the units used for
prtInputMaxCapacity. That is, it says whether
prtInputMaxCapacityis 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?
prtInputCurrentLevelentry in the MIB. What do the values from the previous question really mean?
snmpwalk. Which printers can print what colors?
Show your work to the TA for credit.