forked from networktocode/ntc-templates
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Fsas Si-R show system information template (networktocode#1956)
Co-authored-by: Michael Bear <[email protected]>
- Loading branch information
Showing
9 changed files
with
107 additions
and
0 deletions.
There are no files selected for viewing
29 changes: 29 additions & 0 deletions
29
ntc_templates/templates/fsas_sir_show_system_information.textfsm
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,29 @@ | ||
Value VERSION (\d+\.\d+) | ||
Value SERIAL (\d+) | ||
Value SYSTEM (.+?) | ||
Value FIRMWARE (\S+) | ||
Value CONFIG_FILE (\S+) | ||
Value STARTUP_TIME (.+?) | ||
Value CURRENT_TIME (.+?) | ||
Value FIRMWARE1_VERSION (\d+\.\d+) | ||
Value FIRMWARE2_VERSION (\d+\.\d+) | ||
|
||
Start | ||
^Current-time\s+:\s+${CURRENT_TIME}\s*$$ | ||
^Startup-time\s+:\s+${STARTUP_TIME}\s*$$ | ||
^System\s+:\s+${SYSTEM}\s*$$ | ||
^Serial\s+No\.\s+:\s+${SERIAL}\s*$$ | ||
^ROM\s+Ver\.\s+:\s+.+$$ | ||
^Firm\s+Ver\.\s+:\s+V${VERSION}\s*.+$$ | ||
^Running-firmware\s+:\s+${FIRMWARE}\s*$$ | ||
^Firmware1\s+Ver\.\s+:\s+V${FIRMWARE1_VERSION}\s*.+$$ | ||
^Firmware2\s+Ver\.\s+:\s+V${FIRMWARE2_VERSION}\s*.+$$ | ||
^Security\s+Software\s+Ver\.\s+:\s+.+$$ | ||
^Startup-config\s+:\s+\w+\s+\w+\s+\d+\s+[\d:]+\s+\d+\s+${CONFIG_FILE}\s*$$ | ||
^Running-config\s+:\s+.+$$ | ||
^MAC\s+:\s+.+$$ | ||
^Memory\s+:\s+.+$$ | ||
^USB\d?\s+:\s+.+$$ | ||
^WWAN\d?\s+.+$$ | ||
^\s*$$ | ||
^. -> Error |
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
17 changes: 17 additions & 0 deletions
17
tests/fsas_sir/show_system_information/fasa_sir_show_system_information3.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,17 @@ | ||
Current-time : Mon Oct 7 06:23:59 2019 | ||
Startup-time : Mon Oct 7 06:23:52 2019 | ||
System : Si-R G211 | ||
Serial No. : 00000001 | ||
ROM Ver. : U-Boot 2018.03-00070-g16236ce4a6 | ||
Firm Ver. : V20.00 NY0001 Sun Sep 1 10:11:05 JST 2019 | ||
Running-firmware : firmware1 | ||
Firmware1 Ver. : V20.00 NY0001 Sun Sep 1 10:11:05 JST 2019 | ||
Firmware2 Ver. : V20.00 NY0001 Sun Sep 1 10:11:05 JST 2019 | ||
Startup-config : Thu Oct 3 09:05:38 2019 config1 | ||
Running-config : Fri Oct 4 06:23:52 2019 | ||
MAC : xxxxxxxxxxxa-xxxxxxxxxxx0 | ||
Memory : 320MB | ||
USB1 : ------ | ||
USB2 : ------ | ||
WWAN1 : ------ | ||
WWAN1 Ver. : ------ |
11 changes: 11 additions & 0 deletions
11
tests/fsas_sir/show_system_information/fasa_sir_show_system_information3.yml
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,11 @@ | ||
--- | ||
parsed_sample: | ||
- config_file: "config1" | ||
current_time: "Mon Oct 7 06:23:59 2019" | ||
firmware: "firmware1" | ||
firmware1_version: "20.00" | ||
firmware2_version: "20.00" | ||
serial: "00000001" | ||
startup_time: "Mon Oct 7 06:23:52 2019" | ||
system: "Si-R G211" | ||
version: "20.00" |
14 changes: 14 additions & 0 deletions
14
tests/fsas_sir/show_system_information/fsas_sir_show_system_information.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,14 @@ | ||
Current-time : Tue Dec 31 21:29:06 2024 | ||
Startup-time : Tue Dec 31 11:29:03 2024 | ||
System : Si-R G120 | ||
Serial No. : 12130001 | ||
ROM Ver. : U-Boot 2018.03-00086-g4bcc5bcade | ||
Firm Ver. : V20.54 NY0115 Wed Nov 15 12:38:13 JST 2023 | ||
Running-firmware : firmware2 | ||
Firmware1 Ver. : V20.14 NY0067 Thu Dec 16 18:14:38 JST 2021 | ||
Firmware2 Ver. : V20.54 NY0115 Wed Nov 15 12:38:13 JST 2023 | ||
Startup-config : Tue Dec 31 20:28:25 2024 config1 | ||
Running-config : Tue Dec 31 20:27:35 2024 | ||
MAC : 68847ebdabf7-68847ebdabff | ||
Memory : 320MB | ||
USB : ------ |
11 changes: 11 additions & 0 deletions
11
tests/fsas_sir/show_system_information/fsas_sir_show_system_information.yml
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,11 @@ | ||
--- | ||
parsed_sample: | ||
- config_file: "config1" | ||
current_time: "Tue Dec 31 21:29:06 2024" | ||
firmware: "firmware2" | ||
firmware1_version: "20.14" | ||
firmware2_version: "20.54" | ||
serial: "12130001" | ||
startup_time: "Tue Dec 31 11:29:03 2024" | ||
system: "Si-R G120" | ||
version: "20.54" |
11 changes: 11 additions & 0 deletions
11
tests/fsas_sir/show_system_information/fsas_sir_show_system_information2.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,11 @@ | ||
Current-time : Thu Jan 1 00:00:08 1970 | ||
Startup-time : Thu Jan 1 00:00:00 1970 | ||
System : Si-R G110B | ||
Serial No. : 10000001 | ||
ROM Ver. : 1.1 | ||
Firm Ver. : V04.12 NY0040 Wed Aug 4 08:51:54 JST 2021 | ||
Startup-config : Thu Jan 1 00:03:26 1970 config1 | ||
Running-config : Thu Jan 1 00:00:00 1970 | ||
MAC : 2cd44fffff58-2cd44fffff5e | ||
Memory : 256MB | ||
USB : ------ |
11 changes: 11 additions & 0 deletions
11
tests/fsas_sir/show_system_information/fsas_sir_show_system_information2.yml
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,11 @@ | ||
--- | ||
parsed_sample: | ||
- config_file: "config1" | ||
current_time: "Thu Jan 1 00:00:08 1970" | ||
firmware: "" | ||
firmware1_version: "" | ||
firmware2_version: "" | ||
serial: "10000001" | ||
startup_time: "Thu Jan 1 00:00:00 1970" | ||
system: "Si-R G110B" | ||
version: "04.12" |
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 |
---|---|---|
|
@@ -45,6 +45,7 @@ | |
"extreme_slxos", | ||
"f5_ltm", | ||
"fortinet", | ||
"fsas_sir", | ||
"hp_comware", | ||
"hp_procurve", | ||
"huawei_smartax", | ||
|