Skip to content

Commit

Permalink
New template: cisco_asa_show_vpn-sessiondb (#636)
Browse files Browse the repository at this point in the history
  • Loading branch information
jvanderaa authored Mar 31, 2020
1 parent 1c9fc9e commit 95073f2
Show file tree
Hide file tree
Showing 4 changed files with 114 additions and 0 deletions.
53 changes: 53 additions & 0 deletions templates/cisco_asa_show_vpn-sessiondb.textfsm
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
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 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 TOTALS_ACTIVE (\d+)
Value TOTALS_CUMULATIVE (\d+)

Start
^\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*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*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*Totals\s+:\s+${TOTALS_ACTIVE}\s+:\s+${TOTALS_CUMULATIVE}\s*$$ -> Record
^\s*$$
^. -> Error
1 change: 1 addition & 0 deletions templates/index
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ cisco_asa_show_running-config_ipsec.textfsm, .*, cisco_asa, sh[[ow]] ru[[nning-c
cisco_asa_show_interface_detail.textfsm, .*, cisco_asa, sh[[ow]] int[[erface]] d[[etail]]
cisco_asa_show_crypto_ipsec_sa.textfsm, .*, cisco_asa, sh[[ow]] (?:cry[[pto]] ip[[sec]]|ipsec) sa
cisco_asa_show_resource_usage.textfsm, .*, cisco_asa, sh[[ow]] res[[ource]] u[[sage]]
cisco_asa_show_vpn-sessiondb.textfsm, .*, cisco_asa, sh[[ow]] vpn-[[sessiondb]]
cisco_asa_show_access-list.textfsm, .*, cisco_asa, sh[[ow]] ac[[cess-list]]
cisco_asa_show_license_all.textfsm, .*, cisco_asa, (?:fa[[ilover]]\s+e[[xec]]\s+)?sh[[ow]] lic[[ense]] a[[ll]]
cisco_asa_show_interface.textfsm, .*, cisco_asa, sh[[ow]] int[[erface]]
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---------------------------------------------------------------------------
VPN Session Summary
---------------------------------------------------------------------------
Active : Cumulative : Peak Concur : Inactive
----------------------------------------------
AnyConnect Client : 38 : 330351 : 442 : 0
SSL/TLS/DTLS : 38 : 330351 : 442 : 0
Clientless VPN : 0 : 1040 : 9
Browser : 0 : 1040 : 9
---------------------------------------------------------------------------
Total Active and Inactive : 38 Total Cumulative : 331391
Device Total VPN Capacity : 5000
Device Load : 1%
---------------------------------------------------------------------------
---------------------------------------------------------------------------
Tunnels Summary
---------------------------------------------------------------------------
Active : Cumulative : Peak Concurrent
----------------------------------------------
Clientless : 0 : 1040 : 9
AnyConnect-Parent : 38 : 330351 : 442
SSL-Tunnel : 38 : 985244 : 392
DTLS-Tunnel : 37 : 2227003 : 386
---------------------------------------------------------------------------
Totals : 113 : 3543638
---------------------------------------------------------------------------
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
---
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"
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"
totals_active: "113"
totals_cumulative: "3543638"

0 comments on commit 95073f2

Please sign in to comment.