-
Notifications
You must be signed in to change notification settings - Fork 740
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #182 from Sandeepsr/eos_df_reload
adding bash_df_-h and show_reload_cause templates for arista_eos
- Loading branch information
Showing
7 changed files
with
209 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
Value FILE_SYSTEM (\S+) | ||
Value SIZE (\S+) | ||
Value USED (\S+) | ||
Value AVAIL (\S+) | ||
Value USE_PERCENT (\S+) | ||
Value MOUNTED_ON (\S+) | ||
|
||
Start | ||
^Filesystem.*Mounted on$$ -> Data | ||
^\s+$$ | ||
^$$ | ||
^.* -> Error "LINE NOT FOUND" | ||
|
||
Data | ||
^${FILE_SYSTEM}\s+${SIZE}\s+${USED}\s+${AVAIL}\s+${USE_PERCENT}\s+${MOUNTED_ON} -> Record | ||
^\s+$$ | ||
^$$ | ||
^.* -> Error "LINE NOT FOUND" | ||
|
||
EOF |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
Value RELOAD_CAUSE (.+) | ||
Value RELOAD_TIME (.+) | ||
Value RECOMMENDED_ACTION (.+) | ||
Value DEBUG_INFO (.+) | ||
|
||
|
||
Start | ||
^Reload Cause 1: | ||
^--.+ | ||
^${RELOAD_CAUSE} -> RT | ||
^\s+$$ | ||
^$$ | ||
^.* -> Error "LINE NOT FOUND" | ||
|
||
RT | ||
^\s+ | ||
^Reload Time: | ||
^--.+ | ||
^${RELOAD_TIME} -> RA | ||
^\s+$$ | ||
^$$ | ||
^.* -> Error "LINE NOT FOUND" | ||
|
||
RA | ||
^\s+ | ||
^Recommended Action: | ||
^--.+ | ||
^${RECOMMENDED_ACTION} -> DI | ||
^\s+$$ | ||
^$$ | ||
^.* -> Error "LINE NOT FOUND" | ||
|
||
DI | ||
^\s+ | ||
^Debugging Information: | ||
^--.+ | ||
^${DEBUG_INFO} -> Record | ||
^\s+$$ | ||
^$$ | ||
^.* -> Error "LINE NOT FOUND" | ||
|
||
EOF |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
107 changes: 107 additions & 0 deletions
107
tests/arista_eos/bash_df_-h/arista_eos_bash_df_-h.parsed
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,107 @@ | ||
--- | ||
|
||
parsed_sample: | ||
|
||
|
||
- avail : '4.5G' | ||
used : '44M' | ||
size : '4.6G' | ||
mounted_on : '/' | ||
file_system : 'none' | ||
use_percent : '1%' | ||
|
||
|
||
- avail : '4.5G' | ||
used : '44M' | ||
size : '4.6G' | ||
mounted_on : '/.overlay' | ||
file_system : 'none' | ||
use_percent : '1%' | ||
|
||
|
||
- avail : '8.0M' | ||
used : '0' | ||
size : '8.0M' | ||
mounted_on : '/dev' | ||
file_system : 'devtmpfs' | ||
use_percent : '0%' | ||
|
||
|
||
- avail : '16G' | ||
used : '0' | ||
size : '16G' | ||
mounted_on : '/dev/shm' | ||
file_system : 'tmpfs' | ||
use_percent : '0%' | ||
|
||
|
||
- avail : '16G' | ||
used : '4.4M' | ||
size : '16G' | ||
mounted_on : '/run' | ||
file_system : 'tmpfs' | ||
use_percent : '1%' | ||
|
||
|
||
- avail : '16G' | ||
used : '0' | ||
size : '16G' | ||
mounted_on : '/sys/fs/cgroup' | ||
file_system : 'tmpfs' | ||
use_percent : '0%' | ||
|
||
|
||
- avail : '4.6G' | ||
used : '308K' | ||
size : '4.6G' | ||
mounted_on : '/tmp' | ||
file_system : 'tmpfs' | ||
use_percent : '1%' | ||
|
||
|
||
- avail : '63M' | ||
used : '1.2M' | ||
size : '64M' | ||
mounted_on : '/.deltas' | ||
file_system : 'tmpfs' | ||
use_percent : '2%' | ||
|
||
|
||
- avail : '16G' | ||
used : '0' | ||
size : '16G' | ||
mounted_on : '/var/run/netns' | ||
file_system : 'tmpfs' | ||
use_percent : '0%' | ||
|
||
|
||
- avail : '3.1G' | ||
used : '0' | ||
size : '3.1G' | ||
mounted_on : '/var/core' | ||
file_system : 'tmpfs' | ||
use_percent : '0%' | ||
|
||
|
||
- avail : '3.0G' | ||
used : '93M' | ||
size : '3.1G' | ||
mounted_on : '/var/log' | ||
file_system : 'tmpfs' | ||
use_percent : '3%' | ||
|
||
|
||
- avail : '807M' | ||
used : '218M' | ||
size : '1.0G' | ||
mounted_on : '/var/shmem' | ||
file_system : 'tmpfs' | ||
use_percent : '22%' | ||
|
||
|
||
- avail : '2.2G' | ||
used : '1.2G' | ||
size : '3.3G' | ||
mounted_on : '/mnt/flash' | ||
file_system : '/dev/sda1' | ||
use_percent : '35%' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
Filesystem Size Used Avail Use% Mounted on | ||
none 4.6G 44M 4.5G 1% / | ||
none 4.6G 44M 4.5G 1% /.overlay | ||
devtmpfs 8.0M 0 8.0M 0% /dev | ||
tmpfs 16G 0 16G 0% /dev/shm | ||
tmpfs 16G 4.4M 16G 1% /run | ||
tmpfs 16G 0 16G 0% /sys/fs/cgroup | ||
tmpfs 4.6G 308K 4.6G 1% /tmp | ||
tmpfs 64M 1.2M 63M 2% /.deltas | ||
tmpfs 16G 0 16G 0% /var/run/netns | ||
tmpfs 3.1G 0 3.1G 0% /var/core | ||
tmpfs 3.1G 93M 3.0G 3% /var/log | ||
tmpfs 1.0G 218M 807M 22% /var/shmem | ||
/dev/sda1 3.3G 1.2G 2.2G 35% /mnt/flash |
9 changes: 9 additions & 0 deletions
9
tests/arista_eos/show_reload_cause/arista_eos_show_reload_cause.parsed
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
--- | ||
|
||
parsed_sample: | ||
|
||
|
||
- recommended_action : 'No action necessary.' | ||
debug_info : 'None available.' | ||
reload_cause : 'The system rebooted due to a Power Loss' | ||
reload_time : 'Reload occurred at Fri Feb 23 14:18:49 2018 UTC.' |
15 changes: 15 additions & 0 deletions
15
tests/arista_eos/show_reload_cause/arista_eos_show_reload_cause.raw
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
Reload Cause 1: | ||
------------------- | ||
The system rebooted due to a Power Loss | ||
|
||
Reload Time: | ||
------------ | ||
Reload occurred at Fri Feb 23 14:18:49 2018 UTC. | ||
|
||
Recommended Action: | ||
------------------- | ||
No action necessary. | ||
|
||
Debugging Information: | ||
---------------------- | ||
None available. |