[rrd-users] Re: howto get the MIBs

Todd Caine todd_caine at eli.net
Fri Mar 1 22:54:35 MET 2002


Hello,

spiekey wrote:

> is this: "interfaces.ifTable.ifEntry.ifInOctets.1" the MIB?

That is an OID.  Devices which speak SNMP support various MIBs.  Since MIBs are
tree data structures the OID describes a path through the tree.  I like to think
of it as a way to describe the location of a needle in a haystack.  The ifEntry
MIB object is part of the Interface Group MIB aka IF-MIB,
http://www.ietf.org/rfc/rfc2863.txt.

> Anyway, i want to capture different stuff, like CPU usage, used Memory,
> etc...
>
> where can i find a list of that, which command gives me that list?

I have a small quick reference that I use for Cisco routers.

#-------------------
# Router Interfaces
#-------------------
  Input Octets
    snmpbulkwalk -v 2c server public .1.3.6.1.2.1.2.2.1.10
  Output Octets
    snmpbulkwalk -v 2c server public .1.3.6.1.2.1.2.2.1.16
  Input HC Octets
    snmpbulkwalk -v 2c server public .1.3.6.1.2.1.31.1.1.1.6
  Output HC Octets
    snmpbulkwalk -v 2c server public .1.3.6.1.2.1.31.1.1.1.10

  Description lines
    snmpbulkwalk -v 2c server public .1.3.6.1.2.1.31.1.1.1.18

#----------------
# Router Chassis
#----------------
  CPU 1 minute
    snmpget server public .1.3.6.1.4.1.9.2.1.57.0
  CPU 5 minute
    snmpget server public .1.3.6.1.4.1.9.2.1.58.0
  Temperature Inlet
    snmpget server public .1.3.6.1.4.1.9.9.13.1.3.1.3.1
  Temperature Outlet
    snmpget server public .1.3.6.1.4.1.9.9.13.1.3.1.3.3
  Temperature State
    snmpget server public .1.3.6.1.4.1.9.9.13.1.3.1.6.1
  Memory 5 minutes used
    snmpget server public .1.3.6.1.4.1.9.9.48.1.1.1.5.1
  Memory 5 minutes free
    snmpget server public .1.3.6.1.4.1.9.9.48.1.1.1.6.1
  In Packets per second
    snmpbulkwalk -v 2c server public .1.3.6.1.4.1.9.2.2.1.1.7
  Out Packets per second
    snmpbulkwalk -v 2c server public .1.3.6.1.4.1.9.2.2.1.1.9

> p.s. Can i also monitor my tcp traffic, and see how much traffic was created
by the protocolls (http, ftp, etc..)

Your best bet for these types of stats is to use Netflow
(http://www.cisco.com/warp/public/732/Tech/netflow/netflow_techdoc.shtml),
Cflowd (http://www.caida.org/tools/measurement/cflowd/), and FlowScan
(http://www.caida.org/tools/utilities/flowscan/).

Hope that helps.

Ciao,
Todd


--
Unsubscribe mailto:rrd-users-request at list.ee.ethz.ch?subject=unsubscribe
Help        mailto:rrd-users-request at list.ee.ethz.ch?subject=help
Archive     http://www.ee.ethz.ch/~slist/rrd-users
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi



More information about the rrd-users mailing list