cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
525
Views
10
Helpful
3
Replies

Creating fake alarm on Nexus

ICANG
Beginner
Beginner

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

Sergiu.Daniluk
VIP Advisor VIP Advisor
VIP Advisor

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

Francesco Molino
VIP Mentor VIP Mentor
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

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

Sergiu.Daniluk
VIP Advisor VIP Advisor
VIP Advisor

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

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Recognize Your Peers