3 Copyright (C) 2002 Stanislav Sinyagin
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 2 of the License, or
8 (at your option) any later version.
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
15 You should have received a copy of the GNU General Public License
16 along with this program; if not, write to the Free Software
17 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
19 $Id: cisco.ios.mac-accounting-0.1.8.xml,v 1.1 2010-12-27 00:04:27 ivan Exp $
20 Stanislav Sinyagin <ssinyagin@yahoo.com>
25 This file defines the template for MAC accounting
26 on Cisco routers. It may be useful for per-BGP peer statistics
29 See also "examples/cisco-mac-accounting.xml" for a working example.
36 <!-- CISCO-IP-STAT-MIB:cipMacTable -->
37 <def name="cipMacSwitchedBytes" value="1.3.6.1.4.1.9.9.84.1.2.1.1.4" />
44 <!-- Template for MAC accounting -->
45 <template name="cisco-mac-accounting">
47 <param name="snmp-object">
48 $cipMacSwitchedBytes.%ifindex-map%.%direction%.%mac%
51 <param name="data-file">
52 %system-id%_%interface-nick%_%mac-nick%.rrd"
55 <param name="rrd-ds" value="%mac-nick%_%direction%" />
57 <param name="rrd-create-dstype" value="COUNTER" />
59 <leaf name="InOctets">
60 <param name="comment" value="Input bytes per second" />
61 <param name="direction" value="1" />
62 <param name="hidden" value="yes" />
63 <param name="graph-legend" value="Bytes in" />
66 <leaf name="OutOctets">
67 <param name="comment" value="Output bytes per second" />
68 <param name="direction" value="2" />
69 <param name="hidden" value="yes" />
70 <param name="graph-legend" value="Bytes out" />
74 <param name="comment" value="Input bits per second" />
75 <param name="ds-type" value="rrd-file" />
76 <param name="leaf-type" value="rrd-cdef" />
77 <param name="rpn-expr" value="{InOctets},8,*" />
78 <param name="graph-legend" value="Bits in" />
82 <param name="comment" value="Output bits per second" />
83 <param name="ds-type" value="rrd-file" />
84 <param name="leaf-type" value="rrd-cdef" />
85 <param name="rpn-expr" value="{OutOctets},8,*" />
86 <param name="graph-legend" value="Bits out" />
89 <leaf name="InOut_bps">
90 <param name="comment" value="Input and Output bits per second graphs" />
91 <param name="rrd-hwpredict" value="disabled" />
92 <param name="precedence" value="1000" />
93 <param name="ds-type" value="rrd-multigraph" />
94 <param name="ds-names" value="in,out" />
96 <param name="ds-expr-in" value="{InOctets},8,*" />
97 <param name="graph-legend-in" value="Bits per second in" />
98 <param name="line-style-in" value="AREA" />
99 <param name="line-color-in" value="#00FF00" />
100 <param name="line-order-in" value="1" />
102 <param name="ds-expr-out" value="{OutOctets},8,*" />
103 <param name="graph-legend-out" value="Bits per second out" />
104 <param name="line-style-out" value="LINE2" />
105 <param name="line-color-out" value="#0000FF" />
106 <param name="line-order-out" value="2" />