Comware Based
cancel
Showing results for 
Search instead for 
Did you mean: 

Log NQA module events ONLY to logfile and filter other on MSR

headache_dc
Occasional Contributor

Log NQA module events ONLY to logfile and filter other on MSR

Good day.

I need to log events from NQA or TRACK modules to local logfile and filter any other events on MSR3012. Here configuration example:

!

info-center logfile frequency 60
info-center source default logfile deny
info-center source NQA logfile level debugging
info-center source TRACK logfile level debugging
#
nqa entry admin ping
type icmp-echo
destination ip 192.168.1.1
frequency 5000
probe count 3
probe timeout 200
reaction 1 checked-element probe-fail threshold-type consecutive 10 action-type trigger-only
#
nqa schedule admin ping start-time now lifetime forever
#
track 1 nqa entry admin ping reaction 1
#
[MSR3012]displ logfile summary
Log file: Enabled
Log file size quota: 5 MB
Log file directory: cfa0:/logfile
Writing frequency: 0 hour 1 min 0 sec

When NQA probe is down, there are no any messages in logfile. Moreover, logbuffer is empty too.

 

2 REPLIES
bala5
Occasional Advisor

Re: Log NQA module events ONLY to logfile and filter other on MSR

Hi,

please check with  "display logbuffer reverse"  or you can try with the below commands. 

>info-center source NQA logfile level notification

How ever logfile summary is different one and it will contain the historical logs of the switch.

if you wanted to save 3 months of the logs then run the "logfile save" command then it will trigger the dumo and saves under the respective directory.

 

 

I work for HPE
headache_dc
Occasional Contributor

Re: Log NQA module events ONLY to logfile and filter other on MSR

Thanx for your help. 

NQA module events appear in logbuffer only when I do:

!

info-center source NQA logbuffer level debugging

info-center source NQA monitor level debugging

!

<SW> terminal monitor

<SW> terminal debug

<SW> debug nqa reaction

!

After that I can see logs in my active session  and in logbuffer, for example:

!

[SW]displ logbuffer reverse | include NQA
*Aug 8 18:10:47:840 2018 SW NQA/7/Reaction: NQA entry (admin-ping) reaction (1): Send probe-fail trap.
*Aug 8 18:10:47:839 2018 SW NQA/7/Reaction: NQA entry (admin-ping) reaction (1): Status changed from over-threshold to below-threshold.