From 82ff36d221563480b9ee12e516f876713b84f528 Mon Sep 17 00:00:00 2001 From: jefvantongerloo Date: Fri, 4 Mar 2022 14:45:13 +0100 Subject: [PATCH 1/4] add aos8 show user & show log events --- CHANGELOG.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1e42a3d..91b71e6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 From 68a09e8eaca50e56790f998ec578171077026cb7 Mon Sep 17 00:00:00 2001 From: jefvantongerloo Date: Fri, 4 Mar 2022 14:46:01 +0100 Subject: [PATCH 2/4] init --- .../ale_aos8_show_log_events.txt | 5 +++++ .../ale_aos8_show_log_events.yml | 21 +++++++++++++++++++ .../ale_aos8_show_log_events.textfsm | 8 +++++++ 3 files changed, 34 insertions(+) create mode 100644 tests/ale_aos8_show_log_events/ale_aos8_show_log_events.txt create mode 100644 tests/ale_aos8_show_log_events/ale_aos8_show_log_events.yml create mode 100644 textfsm_aos/templates/ale_aos8_show_log_events.textfsm diff --git a/tests/ale_aos8_show_log_events/ale_aos8_show_log_events.txt b/tests/ale_aos8_show_log_events/ale_aos8_show_log_events.txt new file mode 100644 index 0000000..4117fd3 --- /dev/null +++ b/tests/ale_aos8_show_log_events/ale_aos8_show_log_events.txt @@ -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 diff --git a/tests/ale_aos8_show_log_events/ale_aos8_show_log_events.yml b/tests/ale_aos8_show_log_events/ale_aos8_show_log_events.yml new file mode 100644 index 0000000..4d4fa43 --- /dev/null +++ b/tests/ale_aos8_show_log_events/ale_aos8_show_log_events.yml @@ -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' \ No newline at end of file diff --git a/textfsm_aos/templates/ale_aos8_show_log_events.textfsm b/textfsm_aos/templates/ale_aos8_show_log_events.textfsm new file mode 100644 index 0000000..c47bca2 --- /dev/null +++ b/textfsm_aos/templates/ale_aos8_show_log_events.textfsm @@ -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 \ No newline at end of file From 4c9621d5a2516027e7c6621e093b9ccc8355c1c3 Mon Sep 17 00:00:00 2001 From: jefvantongerloo Date: Fri, 4 Mar 2022 14:46:10 +0100 Subject: [PATCH 3/4] add ale_aos8_show_log_events --- textfsm_aos/templates/templates_index.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/textfsm_aos/templates/templates_index.yml b/textfsm_aos/templates/templates_index.yml index 69bfeff..46900c2 100644 --- a/textfsm_aos/templates/templates_index.yml +++ b/textfsm_aos/templates/templates_index.yml @@ -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 From 16111e01c1585b620df167976f93c04b38106b13 Mon Sep 17 00:00:00 2001 From: jefvantongerloo Date: Fri, 4 Mar 2022 14:46:58 +0100 Subject: [PATCH 4/4] add ale_aos8_show_log_events --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 4d0e580..857a4c4 100644 --- a/README.md +++ b/README.md @@ -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: |