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.xml,v 1.4 2005/06/02 15:36:26 ssinyagin 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="cipMacHCSwitchedBytes" value="1.3.6.1.4.1.9.9.84.1.2.3.1.2" />
44
<template name="cisco-macacc-subtree">
45
<param name="snmp-object">
46
$cipMacHCSwitchedBytes.%ifindex-map%.%direction%.%peer-macoid%
48
<param name="snmp-object-type" value="COUNTER64" />
50
<param name="data-file">
51
%system-id%_%interface-nick%_%peer-macaddr%_macacc.rrd"
54
<param name="rrd-ds" value="%direction%" />
55
<param name="rrd-create-dstype" value="COUNTER" />
56
<param name="graph-title" value="%descriptive-nickname%" />
58
<param name="has-overview-shortcuts" value="yes"/>
59
<param name="overview-shortcuts" value="traffic"/>
60
<param name="overview-subleave-name-traffic" value="InOut_bps"/>
61
<param name="overview-shortcut-text-traffic"
63
<param name="overview-shortcut-title-traffic"
64
value="Show traffic for all interfaces on one page"/>
65
<param name="overview-page-title-traffic"
66
value="Input/Output Graphs"/>
70
<template name="cisco-macacc">
71
<leaf name="Bytes_In">
72
<param name="comment" value="Input bytes per second" />
73
<param name="direction" value="1" />
74
<param name="hidden" value="yes" />
75
<param name="graph-legend" value="Bytes in" />
78
<leaf name="Bytes_Out">
79
<param name="comment" value="Output bytes per second" />
80
<param name="direction" value="2" />
81
<param name="hidden" value="yes" />
82
<param name="graph-legend" value="Bytes out" />
86
<param name="comment" value="Input bits per second" />
87
<param name="ds-type" value="rrd-file" />
88
<param name="leaf-type" value="rrd-cdef" />
89
<param name="rpn-expr" value="{Bytes_In},8,*" />
90
<param name="graph-legend" value="Bits in" />
94
<param name="comment" value="Output bits per second" />
95
<param name="ds-type" value="rrd-file" />
96
<param name="leaf-type" value="rrd-cdef" />
97
<param name="rpn-expr" value="{Bytes_Out},8,*" />
98
<param name="graph-legend" value="Bits out" />
101
<leaf name="InOut_bps">
102
<param name="comment" value="Input and Output bits per second graphs" />
103
<param name="rrd-hwpredict" value="disabled" />
104
<param name="precedence" value="1000" />
105
<param name="ds-type" value="rrd-multigraph" />
106
<param name="ds-names" value="in,out" />
108
<param name="ds-expr-in" value="{Bytes_In},8,*" />
109
<param name="graph-legend-in" value="Bits per second in" />
110
<param name="line-style-in" value="AREA" />
111
<param name="line-color-in" value="#00FF00" />
112
<param name="line-order-in" value="1" />
114
<param name="ds-expr-out" value="{Bytes_Out},8,*" />
115
<param name="graph-legend-out" value="Bits per second out" />
116
<param name="line-style-out" value="LINE2" />
117
<param name="line-color-out" value="#0000FF" />
118
<param name="line-order-out" value="2" />