(a). Create a MIB module for your company that indicates how the respective inventories can be accessed with SNMP. Define OIDs for branch1 and branch2, and create separate MIB entries for each branch. That is, define OIDs for branch1, branch2, branch_1_hats, b1jacketTable, etc. Use the OBJECT IDENTIFIER and OBJECT-TYPE macros; follow the syntax of any MIB file. Note that hats get a scalar under each branch, but jackets need a sub-table.
(b). What would be an advantage for having a table of branches, branch1
... branchN, versus entries for specific branches? (The tricky part here
is that you can't have a table of tables; that is, you can't have
jacketTable be a column of branchTable.)
7. Suppose you are on a subnet. One workstation on the subnet is also a router
to the outside world. How could you determine which workstation is the
router using SNMP?
What if the workstation were a switch
and not a router?
8. Account for the differences between TCP and UDP in the RFC1213-MIB
(mib-2). That is, explain the differences and explain why they are there.
9. Consider a simplified version of the RFC1213-MIB
Interfaces table (some columns described in M&S, p 349), with entries
for ifIndex, ifDescr, and ifSpeed.
(a). Give the OIDs for the columns themselves.
(b). Suppose the table has the following data:
ifIndex |
ifDescr |
ifSpeed |
1 |
eth0 |
10,000,000 |
2 |
eth1 |
100,000,000 |
Give the full OIDs for each of these six table entries.
You may express the OIDs as either 1.3.6.1.2.1._________ or as
mib-2.________
10. Consider the ETHERLIKE-MIB
for ethernet-like nodes, and
(a) identify how to find the number of collisions
(b) identify how to determine if any host is violating the 1500-byte
maximum packet size
(c) identify how to determine the rate of collisions per good packet.
11. Be familiar with get-next
traversal, and at least somewhat familiar with the get-bulk
extension. In what order will values be retrieved from the following
table?
|
+---------+
| |
|
T |
| |
+---------+
|
|
+---------+
|
|
|
E |
|
|
+---------+
|
|
+-----------------+-----------------+
|
|
|
+---------+
+---------+ +---------+
|
|
|
|
| |
| T.E.1.1
| | T.E.2.1
| | T.E.3.1 |
|
|
|
|
| |
+---------+
+---------+ +---------+
|
|
|
+---------+
+---------+ +---------+
|
|
|
|
| |
| T.E.1.2
| | T.E.2.2
| | T.E.3.2 |
|
|
|
|
| |
+---------+
+---------+ +---------+
|
|
|
+---------+
+---------+ +---------+
|
|
|
|
| |
| T.E.1.4
| | T.E.2.4
| | T.E.3.4 |
|
|
|
|
| |
+---------+
+---------+ +---------+