From: Trygve Lunheim <Trygve.Lunheim@idi.ntnu.no>
Hello list,
Setting up fully automated gathering of data for router traffic was like
child's play compared to our old mrtg setup. Very nice.
Now, we'd like a more detailed view of the network, so I moved on to
gathering data for the switch-ports in use. Since there are quite a few
switches, setting up and updating the cricket-config files has to involve
as little manual work as possible.
Trying a similar approach to the one that worked so well for
router-interfaces.. need a new map (map port-name) to get right inst..
Now, querying .1.3.6.1.4.1.9.5.1.4.1.1.11
(cisco.workgroup.stack.portGrp.portTable.portEntry.portIfIndex)
gives the mapping from portName to mib-2 variable ifIndex, like this:
1.1 : 3
1.2 : 4
2.1 : 5
2.2 : 6
2.3 : 7 ..etc
\/ \_ifIndex
\__port
So to read traffic on port 2.2 I would go to
mib-2.interfaces.ifTable.ifEntry.if[In,Out]Octets.6
If I'm not mistaken this mapping is reverse from the one normally used to
map router-interfaces, and so I'm stuck on my map port-name. Trying a
bit more..
Ok, I looked at the anichols/switches/map_port.pl in cricket-contrib that
actually does this, but I can't make it work. Somehow I don't think the
collector evaluates 'inst = "map_port($target)"' at all. Has anyone got
this working on cricket-0.67?
Yrs,
-- Trygve Lunheim NTNU ITEA Nettseksjon--------------------------- ONElist Sponsor ----------------------------
With more than 20 million e-mails exchanged daily... http://www.onelist.com ....ONElist is home to the liveliest discussions on the Internet!
------------------------------------------------------------------------
This archive was generated by hypermail 2b29 : Mon Mar 06 2000 - 19:00:55 PST