Skip to content

Commit

Permalink
Updates: ASA show vpn session - add new data (networktocode#631)
Browse files Browse the repository at this point in the history
  • Loading branch information
jvanderaa authored and thomasblass committed Oct 25, 2020
1 parent dd05864 commit 68e4be2
Show file tree
Hide file tree
Showing 3 changed files with 89 additions and 0 deletions.
4 changes: 4 additions & 0 deletions templates/cisco_asa_show_vpn-sessiondb_anyconnect.textfsm
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,16 @@ Start
Connection
^\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}$$
^\s*Protocol\s+:\s+${PROTOCOL}$$
^\s*License\s+:\s*${LICENSE}$$
^\s*Encryption\s+:\s*${ENCRYPTION}$$
^\s*Hashing\s+:\s*${HASHING}$$
^\s*Bytes\s+Tx\s+:\s+${BYTES_TX}\s+Bytes\s+Rx\s+:\s+${BYTES_RX}$$
^\s*Group\s+Policy\s+:\s+${GROUP_POLICY}\s+Tunnel\s+Group\s+:\s+${TUNNEL_GROUP}$$
^\s*Group\s+Policy\s+:\s+${GROUP_POLICY}$$
^\s*Tunnel\s+Group\s+:\s+${TUNNEL_GROUP}$$
^\s*Login\s+Time\s+:\s+${LOGIN_TIME}\s+${LOGIN_TIME_ZONE}\s+${LOGIN_WEEKDAY}\s+${LOGIN_MONTH}\s+${LOGIN_DAY}\s+${LOGIN_YEAR}$$
^\s*Duration\s+:\s+${DURATION}$$
^\s*Inactivity\s+:\s+${INACTIVITY}$$
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
Session Type: AnyConnect

Username : smithj Index : 57045
Assigned IP : 10.1.2.3 Public IP : 1.2.3.4
Protocol : AnyConnect-Parent SSL-Tunnel DTLS-Tunnel
License : AnyConnect Premium
Encryption : AnyConnect-Parent: (1)none SSL-Tunnel: (1)AES256 DTLS-Tunnel: (1)AES256
Hashing : AnyConnect-Parent: (1)none SSL-Tunnel: (1)SHA1 DTLS-Tunnel: (1)SHA1
Bytes Tx : 177836286 Bytes Rx : 12615185
Group Policy : GroupPolicy_duo-vpn-users
Tunnel Group : duo-vpn-users
Login Time : 10:14:19 EDT Wed Mar 25 2020
Duration : 0h:23m:58s
Inactivity : 0h:00m:00s
VLAN Mapping : N/A VLAN : none
Audt Sess ID : 0ae60f140ded50005e7b673b
Security Grp : none

Username : smithj Index : 47520
Public IP : 1.2.3.4
Protocol : AnyConnect-Parent
License : AnyConnect Premium
Encryption : AnyConnect-Parent: (1)none
Hashing : AnyConnect-Parent: (1)none
Bytes Tx : 0 Bytes Rx : 0
Group Policy : GroupPolicy_duo-vpn-users
Tunnel Group : duo-vpn-users
Login Time : 10:13:49 EDT Wed Mar 25 2020
Duration : 0h:24m:28s
Inactivity : 0h:00m:00s
VLAN Mapping : N/A VLAN : none
Audt Sess ID : 0ae60f140b9a00005e7b671d
Security Grp : none
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
---
parsed_sample:
- session_type: "AnyConnect"
username: "smithj"
index: "57045"
assigned_ip: "10.1.2.3"
public_ip: "1.2.3.4"
protocol: "AnyConnect-Parent SSL-Tunnel DTLS-Tunnel"
license: "AnyConnect Premium"
encryption: "AnyConnect-Parent: (1)none SSL-Tunnel: (1)AES256 DTLS-Tunnel: (1)AES256"
hashing: "AnyConnect-Parent: (1)none SSL-Tunnel: (1)SHA1 DTLS-Tunnel: (1)SHA1"
bytes_tx: "177836286"
bytes_rx: "12615185"
group_policy: "GroupPolicy_duo-vpn-users"
tunnel_group: "duo-vpn-users"
login_time: "10:14:19"
login_time_zone: "EDT"
login_weekday: "Wed"
login_month: "Mar"
login_day: "25"
login_year: "2020"
duration: "0h:23m:58s"
inactivity: "0h:00m:00s"
vlan_mapping: "N/A"
vlan: "none"
audt_sess_id: "0ae60f140ded50005e7b673b"
security_grp: "none"
- session_type: "AnyConnect"
username: "smithj"
index: "47520"
assigned_ip: ""
public_ip: "1.2.3.4"
protocol: "AnyConnect-Parent"
license: "AnyConnect Premium"
encryption: "AnyConnect-Parent: (1)none"
hashing: "AnyConnect-Parent: (1)none"
bytes_tx: "0"
bytes_rx: "0"
group_policy: "GroupPolicy_duo-vpn-users"
tunnel_group: "duo-vpn-users"
login_time: "10:13:49"
login_time_zone: "EDT"
login_weekday: "Wed"
login_month: "Mar"
login_day: "25"
login_year: "2020"
duration: "0h:24m:28s"
inactivity: "0h:00m:00s"
vlan_mapping: "N/A"
vlan: "none"
audt_sess_id: "0ae60f140b9a00005e7b671d"
security_grp: "none"

0 comments on commit 68e4be2

Please sign in to comment.