Skip to content

Commit

Permalink
BugFix: ASA - show vpn-sessiondb anyconnect - Index and Username ends…
Browse files Browse the repository at this point in the history
… up on separate lines when long usernames are used. (#697)
  • Loading branch information
anttof authored May 19, 2020
1 parent 4051fd9 commit ded9c1d
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 1 deletion.
4 changes: 3 additions & 1 deletion templates/cisco_asa_show_vpn-sessiondb_anyconnect.textfsm
Original file line number Diff line number Diff line change
Expand Up @@ -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}$$
Expand All @@ -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
^. -> Error
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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"

0 comments on commit ded9c1d

Please sign in to comment.