-
Notifications
You must be signed in to change notification settings - Fork 726
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix#733-CiscoASA-show_vpn-sessiondb_SW_update (#845)
- Loading branch information
Showing
4 changed files
with
146 additions
and
62 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 |
---|---|---|
@@ -1,53 +1,44 @@ | ||
Value ANYCONNECT_CLIENT_ACTIVE (\d+) | ||
Value ANYCONNECT_CLIENT_CUMULATIVE (\d+) | ||
Value ANYCONNECT_CLIENT_PEAK_CONCURRENT (\d+) | ||
Value ANYCONNECT_CLIENT_INACTIVE (\d+) | ||
Value SSL_TLS_DTLS_ACTIVE (\d+) | ||
Value SSL_TLS_DTLS_CUMULATIVE (\d+) | ||
Value SSL_TLS_DTLS_PEAK_CONCURRENT (\d+) | ||
Value SSL_TLS_DTLS_PEAK_INACTIVE (\d+) | ||
Value CLIENTLESS_VPN_ACTIVE (\d+) | ||
Value CLIENTLESS_VPN_CUMULATIVE (\d+) | ||
Value CLIENTLESS_VPN_PEAK_CONCURRENT (\d+) | ||
Value VPN_BROWSWER_ACTIVE (\d+) | ||
Value VPN_BROWSWER_CUMULATIVE (\d+) | ||
Value VPN_BROWSWER_PEAK_CONCURRENT (\d+) | ||
Value List VPN_SESSION_NAME (\S+?\s?\S+) | ||
Value List VPN_SESSION_ACTIVE (\d+) | ||
Value List VPN_SESSION_CUMULATIVE (\d+) | ||
Value List VPN_SESSION_PEAK_CONCURRENT (\d+) | ||
Value List VPN_SESSION_INACTIVE (\d+) | ||
# | ||
Value TOTAL_ACTIVE_AND_INACTIVE (\d+) | ||
Value TOTAL_CUMULATIVE (\d+) | ||
Value DEVICE_TOTAL_VPN_CAPACITY (\d+) | ||
Value DEVICE_LOAD_PERCENT (\d+) | ||
Value TUNNELS_SUMMARY_CLIENTLESS_ACTIVE (\d+) | ||
Value TUNNELS_SUMMARY_CLIENTLESS_CUMULATIVE (\d+) | ||
Value TUNNELS_SUMMARY_CLIENTLESS_PEAK_CONCURRENT (\d+) | ||
Value TUNNELS_SUMMARY_ANYCONNECT_PARENT_ACTIVE (\d+) | ||
Value TUNNELS_SUMMARY_ANYCONNECT_PARENT_CUMULATIVE (\d+) | ||
Value TUNNELS_SUMMARY_ANYCONNECT_PARENT_PEAK_CONC (\d+) | ||
Value TUNNELS_SUMMARY_SSLTUNNEL_ACTIVE (\d+) | ||
Value TUNNELS_SUMMARY_SSLTUNNEL_CUMULATIVE (\d+) | ||
Value TUNNELS_SUMMARY_SSLTUNNEL_PEAK_CONCURRENT (\d+) | ||
Value TUNNELS_SUMMARY_DTLSTUNNEL_ACTIVE (\d+) | ||
Value TUNNELS_SUMMARY_DTLSTUNNEL_CUMULATIVE (\d+) | ||
Value TUNNELS_SUMMARY_DTLSTUNNEL_PEAK_CONCURRENT (\d+) | ||
# | ||
Value List TUNNELS_SUMMARY_NAME (\S+?\s?\S+) | ||
Value List TUNNELS_SUMMARY_ACTIVE (\d+) | ||
Value List TUNNELS_SUMMARY_CUMULATIVE (\d+) | ||
Value List TUNNELS_SUMMARY_PEAK_CONCURRENT (\d+) | ||
# | ||
Value TOTALS_ACTIVE (\d+) | ||
Value TOTALS_CUMULATIVE (\d+) | ||
|
||
Start | ||
^.+#\s+show\s+vpn-sessiondb\s*$$ | ||
^\s*\-+\s*$$ | ||
^\s*VPN\s+Session\s+Summary\s*$$ -> VPN_Session_Summary | ||
|
||
VPN_Session_Summary | ||
^\s*\-+\s*$$ | ||
^\s*VPN\s+Session\s+Summary\s*$$ | ||
^\s*Active\s+:\s+Cumulative\s+:\s+Peak\s+Concur\s+:\s+Inactive\s*$$ | ||
^\s*AnyConnect\s+Client\s+:\s+${ANYCONNECT_CLIENT_ACTIVE}\s+:\s+${ANYCONNECT_CLIENT_CUMULATIVE}\s+:\s+${ANYCONNECT_CLIENT_PEAK_CONCURRENT}\s+:\s+${ANYCONNECT_CLIENT_INACTIVE}\s*$$ | ||
^\s*SSL/TLS/DTLS\s+:\s+${SSL_TLS_DTLS_ACTIVE}\s+:\s+${SSL_TLS_DTLS_CUMULATIVE}\s+:\s+${SSL_TLS_DTLS_PEAK_CONCURRENT}\s+:\s+${SSL_TLS_DTLS_PEAK_INACTIVE}\s*$$ | ||
^\s*Clientless\s+VPN\s+:\s+${CLIENTLESS_VPN_ACTIVE}\s+:\s+${CLIENTLESS_VPN_CUMULATIVE}\s+:\s+${CLIENTLESS_VPN_PEAK_CONCURRENT}\s*$$ | ||
^\s*Browser\s+:\s+${VPN_BROWSWER_ACTIVE}\s+:\s+${VPN_BROWSWER_CUMULATIVE}\s+:\s+${VPN_BROWSWER_PEAK_CONCURRENT}\s*$$ | ||
^\s*${VPN_SESSION_NAME}\s+:\s+${VPN_SESSION_ACTIVE}\s+:\s+${VPN_SESSION_CUMULATIVE}\s+:\s+${VPN_SESSION_PEAK_CONCURRENT}\s*(:\s+${VPN_SESSION_INACTIVE}\s*)?$$ | ||
^\s*Total\s+Active\s+and\s+Inactive\s+:\s+${TOTAL_ACTIVE_AND_INACTIVE}\s+Total\s+Cumulative\s+:\s+${TOTAL_CUMULATIVE}\s*$$ | ||
^\s*Device\s+Total\s+VPN\s+Capacity\s+:\s+${DEVICE_TOTAL_VPN_CAPACITY} | ||
^\s*Device\s+Load\s+:\s+${DEVICE_LOAD_PERCENT}%\s*$$ | ||
^\s*Tunnels\s+Summary\s* | ||
# | ||
^\s*Tunnels\s+Summary\s* -> Tunnels_Summary | ||
# | ||
^\s*$$ | ||
^. -> Error | ||
|
||
Tunnels_Summary | ||
^\s*\-+\s*$$ | ||
^\s*Active\s+:\s+Cumulative\s+:\s+Peak\s+Concurrent\s*$$ | ||
^\s*Clientless\s+:\s+${TUNNELS_SUMMARY_CLIENTLESS_ACTIVE}\s+:\s+${TUNNELS_SUMMARY_CLIENTLESS_CUMULATIVE}\s+:\s+${TUNNELS_SUMMARY_CLIENTLESS_PEAK_CONCURRENT} | ||
^\s*AnyConnect\-Parent\s+:\s+${TUNNELS_SUMMARY_ANYCONNECT_PARENT_ACTIVE}\s+:\s+${TUNNELS_SUMMARY_ANYCONNECT_PARENT_CUMULATIVE}\s+:\s+${TUNNELS_SUMMARY_ANYCONNECT_PARENT_PEAK_CONC}\s*$$ | ||
^\s*SSL\-Tunnel\s+:\s+${TUNNELS_SUMMARY_SSLTUNNEL_ACTIVE}\s+:\s+${TUNNELS_SUMMARY_SSLTUNNEL_CUMULATIVE}\s+:\s+${TUNNELS_SUMMARY_SSLTUNNEL_PEAK_CONCURRENT}\s*$$ | ||
^\s*DTLS\-Tunnel\s+:\s+${TUNNELS_SUMMARY_DTLSTUNNEL_ACTIVE}\s+:\s+${TUNNELS_SUMMARY_DTLSTUNNEL_CUMULATIVE}\s+:\s+${TUNNELS_SUMMARY_DTLSTUNNEL_PEAK_CONCURRENT}\s*$$ | ||
^\s*${TUNNELS_SUMMARY_NAME}\s+:\s+${TUNNELS_SUMMARY_ACTIVE}\s+:\s+${TUNNELS_SUMMARY_CUMULATIVE}\s+:\s+${TUNNELS_SUMMARY_PEAK_CONCURRENT}\s*$$ | ||
^\s*Totals\s+:\s+${TOTALS_ACTIVE}\s+:\s+${TOTALS_CUMULATIVE}\s*$$ -> Record | ||
^\s*$$ | ||
^. -> Error |
71 changes: 45 additions & 26 deletions
71
tests/cisco_asa/show_vpn-sessiondb/cisco_asa_show_vpn-sessiondb.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 |
---|---|---|
@@ -1,34 +1,53 @@ | ||
--- | ||
parsed_sample: | ||
- anyconnect_client_active: "38" | ||
anyconnect_client_cumulative: "330351" | ||
anyconnect_client_inactive: "0" | ||
anyconnect_client_peak_concurrent: "442" | ||
ssl_tls_dtls_active: "38" | ||
ssl_tls_dtls_cumulative: "330351" | ||
ssl_tls_dtls_peak_concurrent: "442" | ||
ssl_tls_dtls_peak_inactive: "0" | ||
clientless_vpn_active: "0" | ||
clientless_vpn_cumulative: "1040" | ||
clientless_vpn_peak_concurrent: "9" | ||
vpn_browswer_active: "0" | ||
vpn_browswer_cumulative: "1040" | ||
vpn_browswer_peak_concurrent: "9" | ||
- vpn_session_name: | ||
- "AnyConnect Client" | ||
- "SSL/TLS/DTLS" | ||
- "Clientless VPN" | ||
- "Browser" | ||
vpn_session_active: | ||
- "38" | ||
- "38" | ||
- "0" | ||
- "0" | ||
vpn_session_cumulative: | ||
- "330351" | ||
- "330351" | ||
- "1040" | ||
- "1040" | ||
vpn_session_peak_concurrent: | ||
- "442" | ||
- "442" | ||
- "9" | ||
- "9" | ||
vpn_session_inactive: | ||
- "0" | ||
- "0" | ||
- "None" | ||
- "None" | ||
total_active_and_inactive: "38" | ||
total_cumulative: "331391" | ||
device_total_vpn_capacity: "5000" | ||
device_load_percent: "1" | ||
tunnels_summary_clientless_active: "0" | ||
tunnels_summary_clientless_cumulative: "1040" | ||
tunnels_summary_clientless_peak_concurrent: "9" | ||
tunnels_summary_anyconnect_parent_active: "38" | ||
tunnels_summary_anyconnect_parent_cumulative: "330351" | ||
tunnels_summary_anyconnect_parent_peak_conc: "442" | ||
tunnels_summary_ssltunnel_active: "38" | ||
tunnels_summary_ssltunnel_cumulative: "985244" | ||
tunnels_summary_ssltunnel_peak_concurrent: "392" | ||
tunnels_summary_dtlstunnel_active: "37" | ||
tunnels_summary_dtlstunnel_cumulative: "2227003" | ||
tunnels_summary_dtlstunnel_peak_concurrent: "386" | ||
tunnels_summary_name: | ||
- "Clientless" | ||
- "AnyConnect-Parent" | ||
- "SSL-Tunnel" | ||
- "DTLS-Tunnel" | ||
tunnels_summary_active: | ||
- "0" | ||
- "38" | ||
- "38" | ||
- "37" | ||
tunnels_summary_cumulative: | ||
- "1040" | ||
- "330351" | ||
- "985244" | ||
- "2227003" | ||
tunnels_summary_peak_concurrent: | ||
- "9" | ||
- "442" | ||
- "392" | ||
- "386" | ||
totals_active: "113" | ||
totals_cumulative: "3543638" |
26 changes: 26 additions & 0 deletions
26
tests/cisco_asa/show_vpn-sessiondb/cisco_asa_show_vpn-sessiondb2.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,26 @@ | ||
hostname1/pri/act# show vpn-sessiondb | ||
--------------------------------------------------------------------------- | ||
VPN Session Summary | ||
--------------------------------------------------------------------------- | ||
Active : Cumulative : Peak Concur : Inactive | ||
---------------------------------------------- | ||
Site-to-Site VPN : 99 : 3506999 : 99 | ||
IKEv2 IPsec : 9 : 3999 : 9 | ||
IKEv1 IPsec : 99 : 3502999 : 99 | ||
--------------------------------------------------------------------------- | ||
Total Active and Inactive : 99 Total Cumulative : 3506999 | ||
Device Total VPN Capacity : 750 | ||
Device Load : 2% | ||
--------------------------------------------------------------------------- | ||
--------------------------------------------------------------------------- | ||
Tunnels Summary | ||
--------------------------------------------------------------------------- | ||
Active : Cumulative : Peak Concurrent | ||
---------------------------------------------- | ||
IKEv1 : 99 : 3502999 : 99 | ||
IKEv2 : 9 : 3999 : 9 | ||
IPsec : 99 : 9302 : 99 | ||
IPsecOverNatT : 9 : 1999 : 9 | ||
--------------------------------------------------------------------------- | ||
Totals : 99 : 351999 | ||
--------------------------------------------------------------------------- |
48 changes: 48 additions & 0 deletions
48
tests/cisco_asa/show_vpn-sessiondb/cisco_asa_show_vpn-sessiondb2.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,48 @@ | ||
--- | ||
parsed_sample: | ||
- vpn_session_name: | ||
- "Site-to-Site VPN" | ||
- "IKEv2 IPsec" | ||
- "IKEv1 IPsec" | ||
vpn_session_active: | ||
- "99" | ||
- "9" | ||
- "99" | ||
vpn_session_cumulative: | ||
- "3506999" | ||
- "3999" | ||
- "3502999" | ||
vpn_session_peak_concurrent: | ||
- "99" | ||
- "9" | ||
- "99" | ||
vpn_session_inactive: | ||
- "None" | ||
- "None" | ||
- "None" | ||
total_active_and_inactive: "99" | ||
total_cumulative: "3506999" | ||
device_total_vpn_capacity: "750" | ||
device_load_percent: "2" | ||
tunnels_summary_name: | ||
- "IKEv1" | ||
- "IKEv2" | ||
- "IPsec" | ||
- "IPsecOverNatT" | ||
tunnels_summary_active: | ||
- "99" | ||
- "9" | ||
- "99" | ||
- "9" | ||
tunnels_summary_cumulative: | ||
- "3502999" | ||
- "3999" | ||
- "9302" | ||
- "1999" | ||
tunnels_summary_peak_concurrent: | ||
- "99" | ||
- "9" | ||
- "99" | ||
- "9" | ||
totals_active: "99" | ||
totals_cumulative: "351999" |