Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Ios snmp community fix #1773

Merged
merged 2 commits into from
Jul 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,16 @@ Value NAME (\S+)
Value INDEX (\S+)
Value SECURITY_NAME (\S+)
Value STORAGE_TYPE (\S+)
Value ACCESS_LIST_NUMBER (\S+)

Start
^Community\s+name:\s+${NAME}.*
^Community\s+name: -> Continue.Record
^Community\s+name:\s+${NAME}\s*$$
^Community\sIndex:\s+${INDEX}
^Community\sSecurityName:\s+${SECURITY_NAME}
^storage-type:\s${STORAGE_TYPE} -> Record
^storage-type:\s${STORAGE_TYPE}\s+active(\s+access-list:\s${ACCESS_LIST_NUMBER})?
# Capture time-stamp if vty line has command time-stamping turned on
^Load\s+for\s+
^Time\s+source\s+is
^\s*$$
^. -> Error
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,8 @@ Community Index: cisco2
Community SecurityName: private
storage-type: nonvolatile active


Community name: Monitoring
Community Index: cisco1
Community SecurityName: Monitoring
storage-type: nonvolatile active access-list: 33
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,19 @@ parsed_sample:
index: "cisco0"
security_name: "ILMI"
storage_type: "read-only"
access_list_number: ""
- name: "public"
index: "cisco1"
security_name: "public"
storage_type: "nonvolatile"
access_list_number: ""
- name: "private"
index: "cisco2"
security_name: "private"
storage_type: "nonvolatile"
access_list_number: ""
- name: "Monitoring"
index: "cisco1"
security_name: "Monitoring"
storage_type: "nonvolatile"
access_list_number: "33"
Loading