Skip to content

Commit

Permalink
Add Fsas Si-R show system information template (networktocode#1956)
Browse files Browse the repository at this point in the history
Co-authored-by: Michael Bear <[email protected]>
  • Loading branch information
caribouHY and mjbear authored Jan 8, 2025
1 parent 9e26cc0 commit 42900c0
Show file tree
Hide file tree
Showing 9 changed files with 107 additions and 0 deletions.
29 changes: 29 additions & 0 deletions ntc_templates/templates/fsas_sir_show_system_information.textfsm
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
2 changes: 2 additions & 0 deletions ntc_templates/templates/index
Original file line number Diff line number Diff line change
Expand Up @@ -630,6 +630,8 @@ fortinet_execute_date.textfsm, .*, fortinet, exec[[ute]] da[[te]]
fortinet_execute_ping.textfsm, .*, fortinet, exec[[ute]] ping
fortinet_execute_time.textfsm, .*, fortinet, exec[[ute]] ti[[me]]

fsas_sir_show_system_information.textfsm, .*, fsas_sir, sh[[ow]] sys[[tem]] i[[nformation]]

hp_comware_display_lldp_neighbor-information_verbose.textfsm, .*, hp_comware, di[[splay]] ll[[dp]] n[[eighbor-information]] v[[erbose]]
hp_comware_display_lldp_neighbor-information_list.textfsm, .*, hp_comware, di[[splay]] ll[[dp]] n[[eighbor-information]] l[[ist]]
hp_comware_display_ip_vpn-instance_instance-name.textfsm, .*, hp_comware, di[[splay]] ip vpn[[-instance]] in[[instance-name]]
Expand Down
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. : ------
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"
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 : ------
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"
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 : ------
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"
1 change: 1 addition & 0 deletions tests/test_index_order.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
"extreme_slxos",
"f5_ltm",
"fortinet",
"fsas_sir",
"hp_comware",
"hp_procurve",
"huawei_smartax",
Expand Down

0 comments on commit 42900c0

Please sign in to comment.