import torrus 1.0.9
[freeside.git] / torrus / xmlconfig / vendor / cisco.ios.mac-accounting.xml
1 <?xml version="1.0"?>
2 <!--
3    Copyright (C) 2002  Stanislav Sinyagin
4
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.
9
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.
14
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.
18
19   $Id: cisco.ios.mac-accounting.xml,v 1.1 2010-12-27 00:04:24 ivan Exp $
20   Stanislav Sinyagin <ssinyagin@yahoo.com>
21
22 -->
23
24 <!--
25   This file defines the template for MAC accounting
26   on Cisco routers. It may be useful for per-BGP peer statistics
27   on an Ethernet media.
28
29   See also "examples/cisco-mac-accounting.xml" for a working example.
30  -->
31
32 <configuration>
33
34 <definitions>
35
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" />
38
39 </definitions>
40
41
42 <datasources>
43
44   <template name="cisco-macacc-subtree">
45     <param name="snmp-object">
46       $cipMacHCSwitchedBytes.%ifindex-map%.%direction%.%peer-macoid%
47     </param>
48     <param name="snmp-object-type"  value="COUNTER64" />
49     <param name="ext-dstype"        value="COUNTER64" />
50
51     <param name="data-file">
52       %system-id%_%interface-nick%_%peer-macaddr%_macacc.rrd
53     </param>
54
55     <param name="rrd-ds" value="%direction%" />
56     <param name="rrd-create-dstype" value="COUNTER" />
57     <param name="graph-title" value="%descriptive-nickname%" />
58     <param name="graph-lower-limit" value="0" />
59
60     <param name="has-overview-shortcuts" value="yes"/>
61     <param name="overview-shortcuts" value="traffic"/>
62     <param name="overview-subleave-name-traffic" value="InOut_bps"/>
63     <param name="overview-shortcut-text-traffic"
64            value="All traffic"/>
65     <param name="overview-shortcut-title-traffic"
66            value="Show traffic for all interfaces on one page"/>
67     <param name="overview-page-title-traffic"
68            value="Input/Output Graphs"/>    
69   </template>
70
71
72   <template name="cisco-macacc">
73     <leaf name="Bytes_In">
74       <param name="comment"          value="Input bytes per second" />
75       <param name="direction"        value="1" />
76       <param name="hidden"           value="yes" />
77       <param name="graph-legend"     value="Bytes in" />
78     </leaf>
79
80     <leaf name="Bytes_Out">
81       <param name="comment"          value="Output bytes per second" />
82       <param name="direction"        value="2" />
83       <param name="hidden"           value="yes" />
84       <param name="graph-legend"     value="Bytes out" />
85     </leaf>
86
87     <leaf name="In_bps">
88       <param name="comment"          value="Input bits per second" />
89       <param name="ds-type"          value="rrd-file" />
90       <param name="leaf-type"        value="rrd-cdef" />
91       <param name="rpn-expr"         value="{Bytes_In},8,*" />
92       <param name="graph-legend"     value="Bits in" />
93     </leaf>
94
95     <leaf name="Out_bps">
96       <param name="comment"          value="Output bits per second" />
97       <param name="ds-type"          value="rrd-file" />
98       <param name="leaf-type"        value="rrd-cdef" />
99       <param name="rpn-expr"         value="{Bytes_Out},8,*" />
100       <param name="graph-legend"     value="Bits out" />
101     </leaf>
102
103     <leaf name="InOut_bps">
104       <param name="comment" value="Input and Output bits per second graphs" />
105       <param name="rrd-hwpredict"    value="disabled" />
106       <param name="precedence"       value="1000" />
107       <param name="ds-type"          value="rrd-multigraph" />
108       <param name="ds-names"         value="in,out" />
109
110       <param name="ds-expr-in"       value="{Bytes_In},8,*" />
111       <param name="graph-legend-in"  value="Bits per second in" />
112       <param name="line-style-in"    value="AREA" />
113       <param name="line-color-in"    value="#00FF00" />
114       <param name="line-order-in"    value="1" />
115
116       <param name="ds-expr-out"      value="{Bytes_Out},8,*" />
117       <param name="graph-legend-out" value="Bits per second out" />
118       <param name="line-style-out"   value="LINE2" />
119       <param name="line-color-out"   value="#0000FF" />
120       <param name="line-order-out"   value="2" />
121     </leaf>
122   </template>
123
124 </datasources>
125
126 </configuration>