Skip to content

Commit

Permalink
Merge pull request #14 from jefvantongerloo/ale_aos8_show_log_events
Browse files Browse the repository at this point in the history
Ale aos8 show log events
  • Loading branch information
jefvantongerloo authored Mar 4, 2022
2 parents d9e1dfd + 16111e0 commit 11c65b0
Show file tree
Hide file tree
Showing 6 changed files with 39 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,11 @@
- aos8 - show chassis [#6](https://github.com/jefvantongerloo/textfsm-aos/pull/6)
- aos8 - show cmm [#12](https://github.com/jefvantongerloo/textfsm-aos/pull/12)
- aos8 - show command-log [#4](https://github.com/jefvantongerloo/textfsm-aos/pull/4)
- aos8 - show log events [#14](https://github.com/jefvantongerloo/textfsm-aos/pull/14)
- aos8 - show microcode [#2](https://github.com/jefvantongerloo/textfsm-aos/pull/2)
- aos8 - show system [#3](https://github.com/jefvantongerloo/textfsm-aos/pull/3)
- aos8 - show unp user [#11](https://github.com/jefvantongerloo/textfsm-aos/pull/11)
- aos8 - show user [#13](https://github.com/jefvantongerloo/textfsm-aos/pull/13) by [@BennyE](https://github.com/BennyE)
- aos8 - show vlan [#7](https://github.com/jefvantongerloo/textfsm-aos/pull/7) by [@BennyE](https://github.com/BennyE)

### Fixed
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ parsed result
| show ip interface | :heavy_check_mark: | :x: |
| show ip route | :heavy_check_mark: | :x: |
| show lld remote system | :heavy_check_mark: | :x: |
| show log events | :x: | :heavy_check_mark: |
| show mac-address-table | :heavy_check_mark: | :x: |
| show microcode | :heavy_check_mark: | :heavy_check_mark: |
| show ntp server status | :heavy_check_mark: | :x: |
Expand Down
5 changes: 5 additions & 0 deletions tests/ale_aos8_show_log_events/ale_aos8_show_log_events.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
2022 Mar 3 15:16:55.335 : CMM : ChassisSupervisor : chassisTrapsAlert - CERTIFY w/FLASH SYNCHRO process started
2022 Mar 3 15:17:51.495 : CMM : ChassisSupervisor : chassisTrapsAlert - CERTIFY process completed successfully
2022 Mar 3 15:17:57.750 : CMM : ChassisSupervisor : chassisTrapsAlert - Flash Synchronization process completed successfully
2022 Mar 4 11:39:27.123 : CMM : intfCmm : Link 2/1/43 operationally down
2022 Mar 4 11:39:43.870 : CMM : intfCmm : Link 2/1/43 operationally up
21 changes: 21 additions & 0 deletions tests/ale_aos8_show_log_events/ale_aos8_show_log_events.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
- swlog_timestamp: '2022 Mar 3 15:16:55.335'
cmm_ni: 'CMM'
module_name: 'ChassisSupervisor'
log_description: 'chassisTrapsAlert - CERTIFY w/FLASH SYNCHRO process started'
- swlog_timestamp: '2022 Mar 3 15:17:51.495'
cmm_ni: 'CMM'
module_name: 'ChassisSupervisor'
log_description: 'chassisTrapsAlert - CERTIFY process completed successfully'
- swlog_timestamp: '2022 Mar 3 15:17:57.750'
cmm_ni: 'CMM'
module_name: 'ChassisSupervisor'
log_description: 'chassisTrapsAlert - Flash Synchronization process completed successfully'
- swlog_timestamp: '2022 Mar 4 11:39:27.123'
cmm_ni: 'CMM'
module_name: 'intfCmm'
log_description: 'Link 2/1/43 operationally down'
- swlog_timestamp: '2022 Mar 4 11:39:43.870'
cmm_ni: 'CMM'
module_name: 'intfCmm'
log_description: 'Link 2/1/43 operationally up'
8 changes: 8 additions & 0 deletions textfsm_aos/templates/ale_aos8_show_log_events.textfsm
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
Value swlog_timestamp (\d+\s\w+\s+\d+\s\d{1,2}:\d{1,2}:\d+.\d+)
Value cmm_ni ([^:]*)
Value module_name ([^:]*)
Value log_description ([^:]*)

Start
^${swlog_timestamp}\s+:\s${cmm_ni}\s:\s${module_name}\s:\s${log_description}$$ -> Record
^. -> Error
2 changes: 2 additions & 0 deletions textfsm_aos/templates/templates_index.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@
platform: ale_aos6
- command: show lldp remote-system
platform: ale_aos6
- command: show log events
platform: ale_aos8
- command: show mac-address-table
platform: ale_aos6
- command: show microcode
Expand Down

0 comments on commit 11c65b0

Please sign in to comment.