Munin.md
... ...
@@ -1,31 +0,0 @@
1
-Number of routes by AS (IPv4)
2
-```#!/bin/bash
3
-if [ "$1" = "config" ];then
4
- echo graph_title Number of routes
5
- echo graph_vlabel num. routes
6
- echo graph_category network
7
- echo graph_scale no
8
- for AS in $(ip r|sed 's/.* dev //;s/ .*//'|sort|uniq -c|grep as|awk '{print $2}');do
9
- echo $AS.label $AS
10
- done
11
-else
12
- ip r|sed 's/.* dev //;s/ .*//'|sort|uniq -c|grep as|awk '{print $2".value "$1}'
13
-fi
14
-```
15
-
16
-IPv6:
17
-```
18
-#!/bin/bash
19
-if [ "$1" = "config" ];then
20
- echo graph_title Number of routes
21
- echo graph_vlabel num. routes
22
- echo graph_category network
23
- echo graph_scale no
24
- for AS in $(ip -6 r|sed 's/.* dev //;s/ .*//'|sort|uniq -c|grep as|awk '{print $2}');do
25
- echo $AS.label $AS
26
- done
27
-else
28
- ip -6 r|sed 's/.* dev //;s/ .*//'|sort|uniq -c|grep as|awk '{print $2".value "$1}'
29
-fi
30
-```
31
-(hint: The difference just the -6 on the ip command)
... ...
\ No newline at end of file