Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix typos and issues in fortinet_get_system_status for FortiGate 7.2 VM #1774

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
Value OSPF_PROCESS_ID (\d+)
Value VRF_ID (\d+)
Value NEIGHBOR_ID (\d+.\d+.\d+.\d+)
Value PRIORITY (\d+)
Value STATE (\S+\/\s+\-|\S+)
Value DEAD_TIME (\d+:\d+:\d+)
Value ADDRESS (\d+.\d+.\d+.\d+)
Value INTERFACE (\S+)

Start
^OSPF\s+process\s+${OSPF_PROCESS_ID},\s+VRF\s+${VRF_ID}: -> Neighbors

Neighbors
^Neighbor\s+ID\s+Pri\s+State\s+Dead\s+Time\s+Address\s+Interface
^${NEIGHBOR_ID}\s+${PRIORITY}\s+${STATE}\s+${DEAD_TIME}\s+${ADDRESS}\s+${INTERFACE} -> Next.Record
24 changes: 14 additions & 10 deletions ntc_templates/templates/fortinet_get_system_status.textfsm
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
#
Value Required HOSTNAME (\S+)
Value VERSION (.*)
Value SECURITYLEVEL (.*)
Value SIGNATURE (.*)
Value SECURITY_LEVEL (.*)
Value FIRMWARE_SIGNATURE (.*)
Value VIRUS_DB (.*)
Value EXTENDED_DB (.*)
Value EXTREME_DB (.*)
Expand All @@ -25,6 +25,8 @@ Value APP_DB (.*)
Value FMWP_DB (.*)
Value INDUSTRIAL_DB (.*)
Value SERIAL_NUMBER (\S+)
Value LICENSE_STATUS (.*)
Value VM_RESOURCES (.*)
Value IPS_MALICIOUS_URL_DATABASE (.*)
Value IOT_DETECT (.*)
Value OT_DETECT_DB (.*)
Expand Down Expand Up @@ -54,24 +56,26 @@ Value LAST_REBOOT_REASON (.+)

Start
^Version:\s+${VERSION}
^Security Level:\s+${SECURITYLEVEL}
^Firmware Signature:\s+${SIGNATURE}
^Security Level:\s+${SECURITY_LEVEL}
^Firmware Signature:\s+${FIRMWARE_SIGNATURE}
^Virus-DB:\s+${VIRUS_DB}
^Extended\s+DB:\s+${EXTENDED_DB}
^AV\s+AI/ML\s+Model:\s+${AV_AI_ML_MODEL}
^Extreme\s+DB:\s+${EXTREME_DB}
^IPS-DB:\s+${IPS_DB}
^IPS-ETDB:\s+${IPS_ETDB}
^APP-DB:\s+${APP_DB}
^FMWP-DB:\s+${APP_DB}
^FMWP-DB:\s+${FMWP_DB}
^INDUSTRIAL-DB:\s+${INDUSTRIAL_DB}
^Serial-Number:\s+${SERIAL_NUMBER}
^License Status:\s+${LICENSE_STATUS}
^VM Resources:\s+${VM_RESOURCES}
^IPS\s+Malicious\s+URL\s+Database:\s+${IPS_MALICIOUS_URL_DATABASE}
^IoT-Detect:\s+${APP_DB}
^OT-Detect-DB:\s+${APP_DB}
^OT-Patch-DB:\s+${APP_DB}
^OT-Threat-DB:\s+${APP_DB}
^IPS-Engine:\s+${APP_DB}
^IoT-Detect:\s+${IOT_DETECT}
^OT-Detect-DB:\s+${OT_DETECT_DB}
^OT-Patch-DB:\s+${OT_PATCH_DB}
^OT-Threat-DB:\s+${OT_THREAT_DB}
^IPS-Engine:\s+${IPS_ENGINE}
^Botnet\s+DB:\s+${BOTNET_DB}
^BIOS\s+version:\s+${BIOS_VERSION}
^System\s+Part-Number:\s+${SYSTEM_PART_NUMBER}
Expand Down