Skip to content

Commit

Permalink
Added Cisco ASA show_access-list_brief command
Browse files Browse the repository at this point in the history
  • Loading branch information
SaschaSchwarzK authored and jmcgill298 committed Jul 19, 2024
1 parent 0df2534 commit 30b53ac
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 0 deletions.
14 changes: 14 additions & 0 deletions ntc_templates/templates/cisco_asa_show_access-list-brief.textfsm
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
Value Filldown ACL_NAME (\S+)
Value Filldown ACL_TOT_ELEM (\d+)
Value Filldown ACL_NAME_HASH (0x\w+)
Value Required LINE_HASH (\w{8})
Value GROUP_HASH (\w{8})
Value COUNTER (\w{8})
Value LAST_HIT (\w{8})

Start
^access\-list\s+${ACL_NAME};\s+${ACL_TOT_ELEM}\s+elements;\s+name\s+hash:\s+${ACL_NAME_HASH}\s* -> Record
^${LINE_HASH}\s+${GROUP_HASH}\s+${COUNTER}\s+${LAST_HIT}\s* -> Record
^.* -> Error

EOF
1 change: 1 addition & 0 deletions ntc_templates/templates/index
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,7 @@ cisco_asa_show_crypto_ipsec_sa.textfsm, .*, cisco_asa, sh[[ow]] (?:cry[[pto]] ip
cisco_asa_show_resource_usage.textfsm, .*, cisco_asa, sh[[ow]] res[[ource]] u[[sage]]
cisco_asa_show_ospf_neighbor.textfsm, .*, cisco_asa, sh[[ow]] ospf nei[[ghbor]]
cisco_asa_show_vpn-sessiondb.textfsm, .*, cisco_asa, sh[[ow]] vpn-[[sessiondb]]
cisco_asa_show_access-list_brief.textfsm, .*, cisco_asa, sh[[ow]] ac[[cess-list]] (\S+)? br[[ief]]
cisco_asa_show_access-list.textfsm, .*, cisco_asa, sh[[ow]] ac[[cess-list]]
cisco_asa_show_bgp_summary.textfsm, .*, cisco_asa, sh[[ow]] bg[[p]] s[[ummary]]
cisco_asa_show_license_all.textfsm, .*, cisco_asa, (?:fa[[ilover]]\s+e[[xec]]\s+)?sh[[ow]] lic[[ense]] a[[ll]]
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
access-list global-acl-test-show-acl-brief; 3 elements; name hash: 0xccfef45c
06228509 d0a2680b 00006049 6178289f
4c8c760a d0a2680b 00000cf5 6245930b
179f5b95 00000000 00000003 61695d26
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---
parsed_sample:
- ACL_NAME: global-acl-test-show-acl-brief
ACL_TOT_ELEM: '3'
ACL_NAME_HASH: '0xccfef45c'
LINE_HASH: '06228509'
GROUP_HASH: d0a2680b
COUNTER: '00006049'
LAST_HIT: 6178289f
- ACL_NAME: global-acl-test-show-acl-brief
ACL_TOT_ELEM: '3'
ACL_NAME_HASH: '0xccfef45c'
LINE_HASH: 4c8c760a
GROUP_HASH: d0a2680b
COUNTER: 00000cf5
LAST_HIT: 6245930b
- ACL_NAME: global-acl-test-show-acl-brief
ACL_TOT_ELEM: '3'
ACL_NAME_HASH: '0xccfef45c'
LINE_HASH: 179f5b95
GROUP_HASH: '00000000'
COUNTER: '00000003'
LAST_HIT: 61695d26

0 comments on commit 30b53ac

Please sign in to comment.