-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtriage_release_1.0.5
135 lines (93 loc) · 4.14 KB
/
triage_release_1.0.5
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
Release 1.0.5
- This is the 6th release of IOS-XR-TAC-Triage.
- The IOS XR Tac Triage set of scripts are an offbox utility written in python 3.x to automate triage and log collection for specific use cases. As well helping with other tasks like memory leak detection and scale configuration generation. With minimal inputs from the user specific helpful information can be gleaned for consumption by the user or uploaded to TAC for further triage.
New Triage Checks Added:
- none
New Tools Added:
- None
Enhancements:
- minor changes to regex capture groups for scale configuration tool
Current Working Modules:
| 1 L2VPN
----| 1 AC Down / Unresolved
----| 2 AC Traffic Loss
----| 3 PW Down
| 3 Install
----| 1 Failed Install (cXR)
| 4 Memory
---- | 1 Memory Leak
| 5 High CPU
| Memory Leak Comparison Tool
| Scale Configuration Tool
------------------------------------------------------------
Work In Progress:
| 2 CEF
| 3 Install
----| 1 Failed Install (eXR)
No installation is required or compiling of the scripts, only requirement is python 3 with following libraries:
pexpect
os
sys
getpass
re
Running the Script
To call the script make sure their permissions are set to executable then call them like so (telnet is default):
python3 [--file <filename>][--ipv4addr ][--username ](--ssh)(--timeout)
python3 [--memcompare][--pre <filename>][--post <filename>] (--kb)
python3 [--config][--file <filename>]
Special Keywords
--timeout Specifies the timeout from commands, by default this is 10s for a few reasons.
Because some commands may not output immediately
Some commands pause mid-way through output
General delay in getting data output This allows for the collection of outputs properly as they are generated and a pause in case a command does not output immediately, pauses, or python catches up to the end of the available data Using this keyword and changing the timeout is NOT recommended.
--memcompare Specifies to run a comparison for memory leak detection after the memory leak commands have been run twice. --kb specifies to use a KB difference in heap memory instead of the default MB difference.
--config Specifies to run the script to generate a scaled up configuration based on variables passed, more information at the bottom of this note.
Output
Some output will be displayed on the screen, but this is kept to a minimum, only displaying differences or a summary for each command. Outfiles will have the full outputs.
Bugs / Enhancements / etc
Contact smilstea@cisco.com for any issues, please include terminal logs and the output files for faster debugging.
Don't see a feature or command you want in this tool, contact smilstea@cisco.com preferably with examples.
Scale Configurator Syntax:
"""This script is designed to generate scale configurations.
1. For numbers
Ranges such as [10-50] will automatically increment by 1.
For a different multiplier use a ',' such as [10-50,5].
2. For hex
Ranges such as {0-a} or {0-A} will automatically increment by 1.
For a different multiplier use a ',' such as {0-A,5}.
Case insensitive
3. For letters
Ranges such as (a-g) or (A-G) will automatically increment by 1.
For a different multiplier use a ',' such as (a-g,5).
Case sensitive
Returns:
- Scale config to terminal window.
###Example###
Example Times to Run: 3
Example File:
interface GigabitEthernet0/0/0/13.[1-200] l2transport
vrf vrf(a-e,3)
encapsulation dot1Q [1-200] second-dot1q [30-35,3] exact
ipv6 address 2001::{0-f,7}/26
no shut
!
Example Output:
interface GigabitEthernet0/0/0/13.1 l2transport
vrf vrfa
encapsulation dot1Q 1 second-dot1q 30 exact
ipv6 address 2001::0/26
no shut
!
interface GigabitEthernet0/0/0/13.2 l2transport
vrf vrfd
encapsulation dot1Q 2 second-dot1q 33 exact
ipv6 address 2001::7/26
no shut
!
interface GigabitEthernet0/0/0/13.3 l2transport
vrf vrfb
encapsulation dot1Q 3 second-dot1q 30 exact
ipv6 address 2001::E/26
no shut
!
"""