CT320: Network and System Administration

Fall 2018



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:

HostCommunity String tuba, HP printer, CSB 120 guitar, HP printer, CSB 3rd floor copier-1, Xerox copier/printer/scanner sw-1mdf3, ProCurve J4899C Switch sw-4mrm2, ProCurve J9022A Switch

They all speak both version 1 and version 2c of the SNMP protocol.

Part 1 — SNMP Package Installation

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 /etc/snmp/snmp.conf is commented out.

Part 2 — Using snmpget

Use snmpget to retrieve some information about

    snmpget -v2c -c public sysDescr.0
    snmpget -v2c -c public sysUpTimeInstance

That’s correct: sysDescr.0 ends with .0, but sysUpTimeInstance doesn’t.

Execute the second command several times; note that the time increases.

  1. What does -v2c mean?
  2. What does -c public mean?
  3. What is the system description?
  4. How long has been up?

Part 3 — Identification

Using snmpget, identify all five hosts. What sort of device is each one? Write it down.

Part 4 — Using snmpwalk

The snmpwalk command retrieves a bunch of information:

    snmpwalk -v2c -c public

It’s quite a lot—send it to a file, and view the file in an editor.

  1. What is the system description?
  2. Who is the system contact?
  3. How many network interfaces are there?
    (Look at the lines starting with IF-MIB:: for network interface information.)
  4. What are the interface types?
  5. What is the MTU of each interface?
  6. What is the physical address (alias MAC address) of the Ethernet interface?

Part 5 — Using snmpset

Use snmpget to retrieve just the contact information for

    snmpget -v2c -c public sysContact.0

Now, use snmpset to change that contact information:

    snmpset -v2c -c public sysContact.0 string "The Dread Pirate Roberts"
  1. How did that work out?
  2. Why?

Part 6 — Printer MIB

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 printmib

Send it to a file; view it in an editor.

  1. Why did we specify -mPrinter-MIB?
  2. Find the capacity of the paper trays, by looking in the output for prtInputMaxCapacity. There are two values, one for each paper tray. What are the values?
  3. Find 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?
  4. See prtInputCurrentLevel, which is how much paper is actually in the tray right now. What are the values?
  5. Read the prtInputCurrentLevel entry in the MIB. What do the values from the previous question really mean?

Part 7 — Color Printers

  1. For each printer, fetch the values for prtMarkerColorantValue using snmpwalk. Which printers can print what colors?
  2. Do the same for non-printers. What happens?

Part 8 — Credit

Show your work to the TA for credit.

Modified: 2017-10-24T10:51

User: Guest

Edit History Source
Apply to CSU | Contact CSU | Disclaimer | Equal Opportunity
Colorado State University, Fort Collins, CO 80523 USA
© 2015 Colorado State University
CS Building