-
Notifications
You must be signed in to change notification settings - Fork 735
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New template cisco_ios_show_snmp_user.template (#429)
New template: cisco_ios_show_snmp_user
- Loading branch information
1 parent
10012e0
commit e43a537
Showing
4 changed files
with
49 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
Value Required USER_NAME (\w+) | ||
Value ENGINE_ID (\w+) | ||
Value STORAGE_TYPE (\w+) | ||
Value ACCESS_LIST (.*) | ||
Value AUTHENTICATION_PROTOCOL (\w+) | ||
Value PRIVACY_PROTOCOL (\w+) | ||
Value GROUP_NAME (\w+) | ||
|
||
Start | ||
^User\s+name:\s+${USER_NAME}$$ | ||
^Engine\s+ID:\s+${ENGINE_ID}$$ | ||
^storage-type:\s${STORAGE_TYPE}\s+active\s+access-list:\s+${ACCESS_LIST}$$ | ||
^storage-type:\s${STORAGE_TYPE}\s+active$$ | ||
^Authentication\s+Protocol:\s+${AUTHENTICATION_PROTOCOL}$$ | ||
^Privacy\s+Protocol:\s+${PRIVACY_PROTOCOL}$$ | ||
^Group-name:\s+${GROUP_NAME}$$ -> Record | ||
^\s*$$ | ||
^. -> Error |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
tests/cisco_ios/show_snmp_user/cisco_ios_show_snmp_user.parsed
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
--- | ||
parsed_sample: | ||
- access_list: '' | ||
authentication_protocol: SHA | ||
engine_id: 80000009030000451DEC1085 | ||
group_name: managerpriv | ||
privacy_protocol: AES128 | ||
storage_type: nonvolatile | ||
user_name: user_snmp1 | ||
- access_list: '10' | ||
authentication_protocol: SHA | ||
engine_id: 80000009030000451DEC1085 | ||
group_name: managerpriv | ||
privacy_protocol: AES128 | ||
storage_type: nonvolatile | ||
user_name: user_snmp2 |
14 changes: 14 additions & 0 deletions
14
tests/cisco_ios/show_snmp_user/cisco_ios_show_snmp_user.raw
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
|
||
User name: user_snmp1 | ||
Engine ID: 80000009030000451DEC1085 | ||
storage-type: nonvolatile active | ||
Authentication Protocol: SHA | ||
Privacy Protocol: AES128 | ||
Group-name: managerpriv | ||
|
||
User name: user_snmp2 | ||
Engine ID: 80000009030000451DEC1085 | ||
storage-type: nonvolatile active access-list: 10 | ||
Authentication Protocol: SHA | ||
Privacy Protocol: AES128 | ||
Group-name: managerpriv |