Skip to content

Commit

Permalink
[storyteller] add link prober state change to story teller (sonic-net…
Browse files Browse the repository at this point in the history
…#2585)

What I did
Add linkprober category to story teller. It will reflect dualtor heartbeat events.

sign-off: Jing Zhang zhangjing@microsoft.com

How to verify it
Tested on dualtor device, was able to grep link prober state change events.
  • Loading branch information
zjswhhh authored and isabelmsft committed Mar 23, 2023
1 parent bfe85fd commit 551836f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/storyteller
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ regex_dict = {
'lag' : r'link becomes\|addLag\|PortChannel.*oper state',
'reboot' : r'BOOT\|rc.local\|old_config\|minigraph.xml\|Rebooting\|reboot\|executeOperationsOnAsic\|getAsicView\|dumpVidToAsicOperatioId\|neighbor_adv\|Pausing\|shutdown\|warm',
'service' : r'Starting\|Stopping\|Started\|Stopped',
'linkprober': r'Received link prober event, new state'
}


Expand Down Expand Up @@ -86,7 +87,7 @@ def main():

parser.add_argument('-l', '--log', help='log file prefix, e.g. syslog; default: syslog',
type=str, required=False, default='syslog')
parser.add_argument('-c', '--category', help='Categories: bgp, crash, interface, lag, reboot, service Specify multiple categories as c1,c2,c3; default: reboot',
parser.add_argument('-c', '--category', help='Categories: bgp, crash, interface, lag, reboot, service, linkprober Specify multiple categories as c1,c2,c3; default: reboot',
type=str, required=False, default='reboot')
parser.add_argument('-p', '--logpath', help='log file path, e.g. /var/log; default: /var/log',
type=str, required=False, default='/var/log')
Expand Down

0 comments on commit 551836f

Please sign in to comment.