how the log has been record into MSM

  • 0
  • 1
  • Question
  • Updated 2 years ago
  • Answered
Hi everyone,
My situation: The master and backup MSM are in sync in BD8000, but the 152 log message in master MSM, 92 log message in backup MSM. I clear all log from both  MSM before this test. Another question is which type of log message will be record in "show log message NVRAM"? Is there any document include this? Thanks.
Photo of Li Tao

Li Tao

  • 338 Points 250 badge 2x thumb

Posted 2 years ago

  • 0
  • 1
Photo of Kevin Kim

Kevin Kim, Employee

  • 2,266 Points 2k badge 2x thumb
By default, the log messages that belong to 'critical', 'error', 'warning' severity levels are stored in NVRAM as shown in the output of 'show log config target nvram'.

# sh log configuration target nvram 
Log Target      : nvram
    Enabled     : yes
    Filter Name : DefaultFilter
    Match regex : Any
    Severity    : Warning (through Critical)
    Format      : MM/DD/YYYY HH:MM:SS.hh <Severity:Component.SubComponent.Condition>  
Photo of Li Tao

Li Tao

  • 338 Points 250 badge 2x thumb
Hi Kevin,
Sorry for my poor english, let me change a word. As my understand, the "show log" should be same from both master and backup MSM(2MSM in sync), and the log will be archive to NVRAM when the memory buffer is full, so the "show log" should be different from "show log message nvram", it's just my personal guess, is there any document introduce the log principle?
Photo of Stephen Williams

Stephen Williams, Employee

  • 8,838 Points 5k badge 2x thumb
Li,  What logs are different.  The MSM's are responsible for different things so that is why the logs may be different.
Photo of Li Tao

Li Tao

  • 338 Points 250 badge 2x thumb
Hi Stephen,
What I test is clear log and clear log message nvram from both MSMs, and then reboot the switch and compare the "show log" from MSM A and MSM B.
below log message is only showing in Master MSM only.
<Info:LACP.AddPortToAggr> MSM-A: Add port X:X to aggregator
<Info:vlan.dbg.info> MSM-A: Media XFP_SR is inserted into Port x:x
<Noti:ospf.neighbor.ChgState> MSM-A: Changing the state of neighbor rtid X.X.X.X ipa X.X.X.X to state = FULL due to Loading done.


show log message nvram from both MSMs is same, it showing as below:
08/24/2016 07:09:47.81 <Erro:cm.sys.actionErr> MSM-A: Error while loading "ospfInterface": ERROR: 0.0.0.0 is not a valid configured neighbor for interface vlan600 ipaddress x.x.x.x
                                                      
08/24/2016 07:09:47.79 <Erro:cm.sys.actionErr> MSM-A: Error while loading "ospfInterface": ERROR: 0.0.0.0 is not a valid configured neighbor for interface vlan300 ipaddress x.x.x.x
                                                      
08/24/2016 07:09:47.78 <Erro:cm.sys.actionErr> MSM-A: Error while loading "ospfInterface": ERROR: 0.0.0.0 is not a valid configured neighbor for interface vlan200 ipaddress x.x.x.x
                                                      
08/24/2016 07:09:47.76 <Erro:cm.sys.actionErr> MSM-A: Error while loading "ospfInterface": ERROR: 0.0.0.0 is not a valid configured neighbor for interface vlan100 ipaddress x.x.x.x
                                                      
08/24/2016 07:09:43.91 <Erro:cm.sys.actionErr> MSM-A: Error while loading "cfgTechSupport": Source IP address x.x.x.x does not belong to the VR VR-Mgmt.
08/24/2016 07:08:15.08 <Warn:EPM.all_shutdown> MSM-A: Shutting down all processes
08/24/2016 07:08:14.79 <Warn:EPM.reboot> MSM-A: Rebooting with reason User requested switch reboot
08/24/2016 07:08:14.68 <Warn:EPM.reboot> MSM-B: Rebooting with reason User requested switch reboot


So,it make me confuse, which kind of log will be recording to Master, which kind of log will be recording to backup, which kind of log will be recording to NVRAM? Is there any document introduce the log principle? My customer network has some isue sometimes, do I need to ask the backup MSM log message from customer if there isn't a MSM failover?
(Edited)
Photo of Li Tao

Li Tao

  • 338 Points 250 badge 2x thumb
anyone could help on this?
Photo of Henrique

Henrique, Employee

  • 10,302 Points 10k badge 2x thumb
Hi Li,

I have some comments based on the outputs provided and some information I have:
  • When you reboot the switch, the nvram log buffer is not cleared
  • When you reboot the switch, the log memory buffer is cleared
  • NVRAM log buffer only stores high level alarms like "Critical", "Warning" and "Error"
  • Log memory buffer stores all other messages
  • NVRAM log buffer is shared between Master and Backup MSMs since it stores high level alarms
  • Log memory buffer is populated only on active/master MSM
Hope it helps.