cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Announcements
Join Customer Connection to register!
308
Views
10
Helpful
3
Replies
Highlighted
Beginner

Creating fake alarm on Nexus

Hi all,

Is there any way to create a fake alarm by alarm severity on Nexus9k which can be seen on the output of "sh logging".

Something like;
2020 Jul 23 00:44:31 ROUTER %TEST-2-TEST

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
VIP Engager

Hi @ICANG 

 

N9K-2# sh run eem

event manager applet generate_syslog
  event cli match "show run"
  action 1 syslog priority critical msg TestTestTest
  action 2 event-default

N9K-2# show run | head lines 1
2020 Jul 23 07:19:30 N9K-2 %EEM_ACTION-2-CRIT: TestTestTest 

Stay safe,

Sergiu

View solution in original post

3 REPLIES 3
Highlighted
VIP Mentor

Hi

What's the goal behind that?
You can use an event manager with action syslog for example.


Thanks
Francesco
PS: Please don't forget to rate and select as validated answer if this answered your question
Highlighted

Hi Francesco,

My goal behind that is to double check to system which catch only specifics level of alarms and sends e-mail.

Thank you
Highlighted
VIP Engager

Hi @ICANG 

 

N9K-2# sh run eem

event manager applet generate_syslog
  event cli match "show run"
  action 1 syslog priority critical msg TestTestTest
  action 2 event-default

N9K-2# show run | head lines 1
2020 Jul 23 07:19:30 N9K-2 %EEM_ACTION-2-CRIT: TestTestTest 

Stay safe,

Sergiu

View solution in original post

Content for Community-Ad