diff --git a/templates/cisco_asa_show_vpn-sessiondb_anyconnect.textfsm b/templates/cisco_asa_show_vpn-sessiondb_anyconnect.textfsm index 01ed33874b..78c4df071e 100644 --- a/templates/cisco_asa_show_vpn-sessiondb_anyconnect.textfsm +++ b/templates/cisco_asa_show_vpn-sessiondb_anyconnect.textfsm @@ -29,6 +29,8 @@ Start Connection ^\s*Username\s*:\s+${USERNAME}\s+Index\s+:\s*${INDEX}$$ + ^\s*Username\s*:\s+${USERNAME}$$ + ^\s*Index\s*:\s+${INDEX}$$ ^\s*Assigned\s+IP\s*:\s+${ASSIGNED_IP}\s+Public\s*IP\s*:\s*${PUBLIC_IP}$$ ^\s*Assigned\s+IP\s*:\s+${ASSIGNED_IP}$$ ^\s*Public\s+IP\s*:\s+${PUBLIC_IP}$$ @@ -47,4 +49,4 @@ Connection ^\s*Audt\s+Sess\s+ID\s+:\s+${AUDT_SESS_ID}$$ ^\s*Security\s+Grp\s+:\s+${SECURITY_GRP}\s*$$ -> Record ^\s*$$ - ^. -> Error \ No newline at end of file + ^. -> Error diff --git a/tests/cisco_asa/show_vpn-sessiondb_anyconnect/cisco_asa_show_vpn-sessiondb_anyconnect_long_usernames.raw b/tests/cisco_asa/show_vpn-sessiondb_anyconnect/cisco_asa_show_vpn-sessiondb_anyconnect_long_usernames.raw new file mode 100644 index 0000000000..6258b4e486 --- /dev/null +++ b/tests/cisco_asa/show_vpn-sessiondb_anyconnect/cisco_asa_show_vpn-sessiondb_anyconnect_long_usernames.raw @@ -0,0 +1,16 @@ +Session Type: AnyConnect +Username : longfirstname.longlastname@example.com +Index : 1018 +Assigned IP : 10.254.254.22 Public IP : 1.2.3.4 +Protocol : AnyConnect-Parent SSL-Tunnel DTLS-Tunnel +License : AnyConnect Premium +Encryption : AnyConnect-Parent: (1)none SSL-Tunnel: (1)AES-GCM-256 DTLS-Tunnel: (1)AES128 +Hashing : AnyConnect-Parent: (1)none SSL-Tunnel: (1)SHA384 DTLS-Tunnel: (1)SHA1 +Bytes Tx : 17186425 Bytes Rx : 7094561 +Group Policy : RAVPN Tunnel Group : RAVPN +Login Time : 14:28:09 CDT Tue Mar 17 2020 +Duration : 2h:21m:21s +Inactivity : 0h:00m:00s +VLAN Mapping : N/A VLAN : none +Audt Sess ID : ac1063fe003fa0005e715555 +Security Grp : none diff --git a/tests/cisco_asa/show_vpn-sessiondb_anyconnect/cisco_asa_show_vpn-sessiondb_anyconnect_long_usernames.yml b/tests/cisco_asa/show_vpn-sessiondb_anyconnect/cisco_asa_show_vpn-sessiondb_anyconnect_long_usernames.yml new file mode 100644 index 0000000000..f500cfb0c0 --- /dev/null +++ b/tests/cisco_asa/show_vpn-sessiondb_anyconnect/cisco_asa_show_vpn-sessiondb_anyconnect_long_usernames.yml @@ -0,0 +1,27 @@ +--- +parsed_sample: + - session_type: "AnyConnect" + username: "longfirstname.longlastname@example.com" + index: "1018" + assigned_ip: "10.254.254.22" + public_ip: "1.2.3.4" + protocol: "AnyConnect-Parent SSL-Tunnel DTLS-Tunnel" + license: "AnyConnect Premium" + encryption: "AnyConnect-Parent: (1)none SSL-Tunnel: (1)AES-GCM-256 DTLS-Tunnel: (1)AES128" + hashing: "AnyConnect-Parent: (1)none SSL-Tunnel: (1)SHA384 DTLS-Tunnel: (1)SHA1" + bytes_tx: "17186425" + bytes_rx: "7094561" + group_policy: "RAVPN" + tunnel_group: "RAVPN" + login_time: "14:28:09" + login_time_zone: "CDT" + login_weekday: "Tue" + login_month: "Mar" + login_day: "17" + login_year: "2020" + duration: "2h:21m:21s" + inactivity: "0h:00m:00s" + vlan_mapping: "N/A" + vlan: "none" + audt_sess_id: "ac1063fe003fa0005e715555" + security_grp: "none"