Skip to content

Commit 3007b77

Browse files
committed
Initial release.
0 parents  commit 3007b77

16 files changed

+1970
-0
lines changed

examples/cisco_bgp_summary_example

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
BGP router identifier 192.0.2.70, local AS number 65550
2+
BGP table version is 9, main routing table version 9
3+
4 network entries using 468 bytes of memory
4+
4 path entries using 208 bytes of memory
5+
3/2 BGP path/bestpath attribute entries using 420 bytes of memory
6+
1 BGP AS-PATH entries using 24 bytes of memory
7+
1 BGP community entries using 24 bytes of memory
8+
0 BGP route-map cache entries using 0 bytes of memory
9+
0 BGP filter-list cache entries using 0 bytes of memory
10+
BGP using 1144 total bytes of memory
11+
BGP activity 12/4 prefixes, 12/4 paths, scan interval 5 secs
12+
13+
Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd
14+
192.0.2.77 4 65551 6965 1766 9 0 0 5w4d 1
15+
192.0.2.78 4 65552 6965 1766 9 0 0 5w4d 10

examples/cisco_bgp_summary_template

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Carry down the local end information so that it is present on each row item.
2+
Value Filldown RouterID (\S+)
3+
Value Filldown LocalAS (\d+)
4+
Value RemoteAS (\d+)
5+
Value Required RemoteIP (\d+(\.\d+){3})
6+
Value Uptime (\d+\S+)
7+
Value Received_V4 (\d+)
8+
Value Status (\D.*)
9+
10+
Start
11+
^BGP router identifier ${RouterID}, local AS number ${LocalAS}
12+
^${RemoteIP}\s+\d+\s+${RemoteAS}(\s+\S+){5}\s+${Uptime}\s+${Received_V4} -> Record
13+
^${RemoteIP}\s+\d+\s+${RemoteAS}(\s+\S+){5}\s+${Uptime}\s+${Status} -> Record
14+
15+
# Last record is already recorded then skip doing so here.
16+
EOF

examples/cisco_version_example

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
Cisco IOS Software, Catalyst 4500 L3 Switch Software (cat4500-ENTSERVICESK9-M), Version 12.2(31)SGA1, RELEASE SOFTWARE (fc3)
2+
Technical Support: http://www.cisco.com/techsupport
3+
Copyright (c) 1986-2007 by Cisco Systems, Inc.
4+
Compiled Fri 26-Jan-07 14:28 by kellythw
5+
Image text-base: 0x10000000, data-base: 0x118AD800
6+
7+
ROM: 12.2(31r)SGA
8+
Pod Revision 0, Force Revision 34, Gill Revision 20
9+
10+
router.abc uptime is 3 days, 13 hours, 53 minutes
11+
System returned to ROM by reload
12+
System restarted at 05:09:09 PDT Wed Apr 2 2008
13+
System image file is "bootflash:cat4500-entservicesk9-mz.122-31.SGA1.bin"
14+
15+
16+
This product contains cryptographic features and is subject to United
17+
States and local country laws governing import, export, transfer and
18+
use. Delivery of Cisco cryptographic products does not imply
19+
third-party authority to import, export, distribute or use encryption.
20+
Importers, exporters, distributors and users are responsible for
21+
compliance with U.S. and local country laws. By using this product you
22+
agree to comply with applicable laws and regulations. If you are unable
23+
to comply with U.S. and local laws, return this product immediately.
24+
25+
A summary of U.S. laws governing Cisco cryptographic products may be found at:
26+
http://www.cisco.com/wwl/export/crypto/tool/stqrg.html
27+
28+
If you require further assistance please contact us by sending email to [email protected].
29+
30+
cisco WS-C4948-10GE (MPC8540) processor (revision 5) with 262144K bytes of memory.
31+
Processor board ID FOX111700ZP
32+
MPC8540 CPU at 667Mhz, Fixed Module
33+
Last reset from Reload
34+
2 Virtual Ethernet interfaces
35+
48 Gigabit Ethernet interfaces
36+
2 Ten Gigabit Ethernet interfaces
37+
511K bytes of non-volatile configuration memory.
38+
39+
Configuration register is 0x2102
40+

examples/cisco_version_template

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
Value Model (\S+)
2+
Value Memory (\S+)
3+
Value ConfigRegister (0x\S+)
4+
Value Uptime (.*)
5+
Value Version (.*?)
6+
Value ReloadReason (.*)
7+
Value ReloadTime (.*)
8+
Value ImageFile ([^"]+)
9+
10+
Start
11+
^Cisco IOS Software.*Version ${Version},
12+
^.*uptime is ${Uptime}
13+
^System returned to ROM by ${ReloadReason}
14+
^System restarted at ${ReloadTime}
15+
^System image file is "${ImageFile}"
16+
^cisco ${Model} .* with ${Memory} bytes of memory
17+
^Configuration register is ${ConfigRegister}

examples/f10_ip_bgp_summary_example

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
BGP router identifier 192.0.2.1, local AS number 65551
2+
BGP table version is 173711, main routing table version 173711
3+
255 network entrie(s) using 43260 bytes of memory
4+
1114 paths using 75752 bytes of memory
5+
BGP-RIB over all using 76866 bytes of memory
6+
23 BGP path attribute entrie(s) using 1472 bytes of memory
7+
3 BGP AS-PATH entrie(s) using 137 bytes of memory
8+
10 BGP community entrie(s) using 498 bytes of memory
9+
2 BGP route-reflector cluster entrie(s) using 62 bytes of memory
10+
6 neighbor(s) using 28128 bytes of memory
11+
12+
Neighbor AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/Pfx
13+
14+
10.10.10.10 65551 647 397 73711 0 (0) 10:37:12 5
15+
10.10.100.1 65552 664 416 73711 0 (0) 10:38:27 0
16+
10.100.10.9 65553 709 526 73711 0 (0) 07:55:38 1

examples/f10_ip_bgp_summary_template

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
Value Filldown RouterID (\d+(\.\d+){3})
2+
Value Filldown LocalAS (\d+)
3+
Value RemoteAS (\d+)
4+
Value Required RemoteIP (\d+(\.\d+){3})
5+
Value Uptime (\S+)
6+
Value Received_V4 (\d+)
7+
Value Received_V6 ()
8+
Value Status (\D.*)
9+
10+
Start
11+
^BGP router identifier ${RouterID}, local AS number ${LocalAS}
12+
^${RemoteIP}\s+${RemoteAS}(\s+\S+){5}\s+${Uptime}\s+${Received_V4} -> Next.Record
13+
^${RemoteIP}\s+${RemoteAS}(\s+\S+){5}\s+${Uptime}\s+${Status} -> Next.Record
14+
15+
EOF

examples/f10_version_example

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
Force10 Networks Real Time Operating System Software
2+
Force10 Operating System Version: 1.0
3+
Force10 Application Software Version: 7.7.1.1
4+
Copyright (c) 1999-2008 by Force10 Networks, Inc.
5+
Build Time: Fri Sep 12 14:08:26 PDT 2008
6+
Build Path: /sites/sjc/work/sw/build/special_build/Release/E7-7-1/SW/SRC
7+
router.abc uptime is 3 day(s), 2 hour(s), 3 minute(s)
8+
9+
System image file is "flash://FTOS-EF-7.7.1.1.bin"
10+
11+
Chassis Type: E1200
12+
Control Processor: IBM PowerPC 750FX (Rev D2.2) with 536870912 bytes of memory.
13+
Route Processor 1: IBM PowerPC 750FX (Rev D2.2) with 1073741824 bytes of memory.
14+
Route Processor 2: IBM PowerPC 750FX (Rev D2.2) with 1073741824 bytes of memory.
15+
16+
128K bytes of non-volatile configuration memory.
17+
18+
1 Route Processor Module
19+
9 Switch Fabric Module
20+
1 48-port GE line card with SFP optics (EF)
21+
7 4-port 10GE LAN/WAN PHY line card with XFP optics (EF)
22+
1 FastEthernet/IEEE 802.3 interface(s)
23+
48 GigabitEthernet/IEEE 802.3 interface(s)
24+
28 Ten GigabitEthernet/IEEE 802.3 interface(s)
25+

examples/f10_version_template

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
Value Chassis (\S+)
2+
Value Model (.*)
3+
Value Software (.*)
4+
Value Image ([^"]*)
5+
6+
Start
7+
^Force10 Application Software Version: ${Software}
8+
^Chassis Type: ${Chassis} -> Continue
9+
^Chassis Type: ${Model}
10+
^System image file is "${Image}"

examples/juniper_bgp_summary_example

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
Groups: 3 Peers: 3 Down peers: 0
2+
Table Tot Paths Act Paths Suppressed History Damp State Pending
3+
inet.0 947 310 0 0 0 0
4+
inet6.0 849 807 0 0 0 0
5+
Peer AS InPkt OutPkt OutQ Flaps Last Up/Dwn State|#Active/Received/Damped...
6+
10.247.68.182 65550 131725 28179233 0 11 6w3d17h Establ
7+
inet.0: 4/5/1
8+
inet6.0: 0/0/0
9+
10.254.166.246 65550 136159 29104942 0 0 6w5d6h Establ
10+
inet.0: 0/0/0
11+
inet6.0: 7/8/1
12+
192.0.2.100 65551 1269381 1363320 0 1 9w5d6h 2/3/0 0/0/0

examples/juniper_bgp_summary_template

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
Value RemoteAS (\d+)
2+
Value RemoteIP (\S+)
3+
Value Uptime (.*[0-9h])
4+
Value Active_V4 (\d+)
5+
Value Received_V4 (\d+)
6+
Value Accepted_V4 (\d+)
7+
Value Damped_V4 (\d+)
8+
Value Active_V6 (\d+)
9+
Value Received_V6 (\d+)
10+
Value Accepted_V6 (\d+)
11+
Value Damped_V6 (\d+)
12+
Value Status (.*)
13+
14+
Start
15+
# New format IPv4 & IPv6 split across newlines.
16+
^\s+inet.0: ${Active_V4}/${Received_V4}/${Damped_V4}
17+
^\s+inet6.0: ${Active_V6}/${Received_V6}/${Damped_V6} -> Next.Record
18+
^${RemoteIP}\s+${RemoteAS}(\s+\d+){4}\s+${Uptime}\s+Establ
19+
^${RemoteIP}\s+${RemoteAS}(\s+\d+){4}\s+${Uptime}\s+${Active_V4}/${Received_V4}/${Damped_V4}\s+${Active_V6}/${Received_V6}/${Damped_V6} -> Next.Record
20+
^${RemoteIP}\s+${RemoteAS}(\s+\d+){4}\s+${Uptime}\s+${Active_V4}/${Received_V4}/${Accepted_V4}/${Damped_V4}\s+${Active_V6}/${Received_V6}/${Accepted_V6}/${Damped_V6} -> Next.Record
21+
^${RemoteIP}\s+${RemoteAS}(\s+\d+){4}\s+${Uptime}\s+${Status} -> Next.Record

examples/juniper_version_example

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
Hostname: router.abc
2+
Model: mx960
3+
JUNOS Base OS boot [9.1S3.5]
4+
JUNOS Base OS Software Suite [9.1S3.5]
5+
JUNOS Kernel Software Suite [9.1S3.5]
6+
JUNOS Crypto Software Suite [9.1S3.5]
7+
JUNOS Packet Forwarding Engine Support (M/T Common) [9.1S3.5]
8+
JUNOS Packet Forwarding Engine Support (MX Common) [9.1S3.5]
9+
JUNOS Online Documentation [9.1S3.5]
10+
JUNOS Routing Software Suite [9.1S3.5]

examples/juniper_version_template

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
Value Chassis (\S+)
2+
Value Required Model (\S+)
3+
Value Boot (.*)
4+
Value Base (.*)
5+
Value Kernel (.*)
6+
Value Crypto (.*)
7+
Value Documentation (.*)
8+
Value Routing (.*)
9+
10+
Start
11+
# Support multiple chassis systems.
12+
^\S+:$$ -> Continue.Record
13+
^${Chassis}:$$
14+
^Model: ${Model}
15+
^JUNOS Base OS boot \[${Boot}\]
16+
^JUNOS Software Release \[${Base}\]
17+
^JUNOS Base OS Software Suite \[${Base}\]
18+
^JUNOS Kernel Software Suite \[${Kernel}\]
19+
^JUNOS Crypto Software Suite \[${Crypto}\]
20+
^JUNOS Online Documentation \[${Documentation}\]
21+
^JUNOS Routing Software Suite \[${Routing}\]

examples/unix_ifcfg_example

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
2+
inet6 ::1 prefixlen 128
3+
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1
4+
inet 127.0.0.1 netmask 0xff000000
5+
en0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
6+
ether 34:15:9e:27:45:e3
7+
inet6 fe80::3615:9eff:fe27:45e3%en0 prefixlen 64 scopeid 0x4
8+
inet6 2001:db8::3615:9eff:fe27:45e3 prefixlen 64 autoconf
9+
inet 192.0.2.215 netmask 0xfffffe00 broadcast 192.0.2.255
10+
media: autoselect (1000baseT <full-duplex,flow-control>)
11+
status: active
12+
en1: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
13+
ether 90:84:0d:f6:d1:55
14+
media: <unknown subtype> (<unknown type>)
15+
status: inactive
16+

examples/unix_ifcfg_template

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
Value Required Interface ([^:]+)
2+
Value MTU (\d+)
3+
Value State ((in)?active)
4+
Value MAC ([\d\w:]+)
5+
Value List Inet ([\d\.]+)
6+
Value List Netmask (\S+)
7+
# Don't match interface local (fe80::/10) - achieved with excluding '%'.
8+
Value List Inet6 ([^%]+)
9+
Value List Prefix (\d+)
10+
11+
Start
12+
# Record interface record (if we have one).
13+
^\S+:.* -> Continue.Record
14+
# Collect data for new interface.
15+
^${Interface}:.* mtu ${MTU}
16+
^\s+ether ${MAC}
17+
^\s+inet6 ${Inet6} prefixlen ${Prefix}
18+
^\s+inet ${Inet} netmask ${Netmask}

0 commit comments

Comments
 (0)