~ubuntu-branches/ubuntu/lucid/torrus/lucid

« back to all changes in this revision

Viewing changes to xmlconfig/vendor/cisco.ios.mac-accounting.xml

  • Committer: Bazaar Package Importer
  • Author(s): Jurij Smakov
  • Date: 2005-08-03 20:02:19 UTC
  • Revision ID: james.westby@ubuntu.com-20050803200219-sasyqlzj967sx1w7
Tags: upstream-1.0.3
ImportĀ upstreamĀ versionĀ 1.0.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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.4 2005/06/02 15:36:26 ssinyagin 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
 
 
50
    <param name="data-file">
 
51
      %system-id%_%interface-nick%_%peer-macaddr%_macacc.rrd"
 
52
    </param>
 
53
 
 
54
    <param name="rrd-ds" value="%direction%" />
 
55
    <param name="rrd-create-dstype" value="COUNTER" />
 
56
    <param name="graph-title" value="%descriptive-nickname%" />
 
57
 
 
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"
 
62
           value="All 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"/>    
 
67
  </template>
 
68
 
 
69
 
 
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" />
 
76
    </leaf>
 
77
 
 
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" />
 
83
    </leaf>
 
84
 
 
85
    <leaf name="In_bps">
 
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" />
 
91
    </leaf>
 
92
 
 
93
    <leaf name="Out_bps">
 
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" />
 
99
    </leaf>
 
100
 
 
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" />
 
107
 
 
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" />
 
113
 
 
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" />
 
119
    </leaf>
 
120
  </template>
 
121
 
 
122
</datasources>
 
123
 
 
124
</configuration>