Junos Automation (Scripting)
Highlighted
Junos Automation (Scripting)

How to simulate alarm "FPC x Hard Error"

‎08-20-2020 05:13 AM

Hi all,

 

I already facing issue the chassis alarm "FPC Hard Error" and it make the traffic blackhole. I'm see the url https://forums.juniper.net/t5/Junos-Automation-Scripting/How-to-change-configuration-with-the-variab... and look like we can make the FPC reboot itself using event-script. My question in the lab how to simulate or make the chassis alarm appear "FPC x Hard Error" so i can test the event-script as per that url?

 

Thanks and appreciate any feedback

5 REPLIES 5
Highlighted
Junos Automation (Scripting)

Re: How to simulate alarm "FPC x Hard Error"

‎08-20-2020 02:40 PM

If you are looking to test the script, you could create a generate event policy and then use this as a specific time trigger as the event to start your event script.  Then once the script is fully functional switch the trigger event back to the log event you will be looking for in the real event case.

 

https://www.juniper.net/documentation/en_US/junos/topics/example/junos-script-automation-event-polic...

 

Steve Puluka BSEET - Juniper Ambassador
IP Architect - DQE Communications Pittsburgh, PA (Metro Ethernet & ISP)
http://puluka.com/home
Highlighted
Junos Automation (Scripting)

Re: How to simulate alarm "FPC x Hard Error"

‎08-20-2020 08:37 PM

Hi Spuluka,

 

 

I'm already see urk that u given. Based on the url to simulate the alarm appear "FPC x Hard Error" then i just need to change "every-one-hour" to "FPC x Hard Error" right?

 

Please correct me if i wrong.

 

Thanks

Highlighted
Junos Automation (Scripting)

Re: How to simulate alarm "FPC x Hard Error"

‎08-20-2020 08:59 PM

Hello,

You need to use "logger" utility from RE shell to simulate the event

https://jncie.files.wordpress.com/2010/02/7100110-en.pdf

Pages 18-20

HTH

Thx

Alex

_____________________________________________________________________

Please ask Your Juniper account team about Juniper Professional Services offerings.
Juniper PS can design, test & build the network/part of the network as per Your requirements

+++++++++++++++++++++++++++++++++++++++++++++

Accept as Solution = cool !
Accept as Solution+Kudo = You are a Star !
Highlighted
Junos Automation (Scripting)

Re: How to simulate alarm "FPC x Hard Error"

‎08-21-2020 12:37 AM

Hi aarserniv,

 

 

Thanks for the url. I will test it and let u know the result.

 

Thanks again.

Highlighted
Junos Automation (Scripting)

Re: How to simulate alarm "FPC x Hard Error"

‎08-21-2020 02:48 AM

The Junos built in feature is generating an event based on date/time.  In your case you would do one to trigger a a specific time maybe 15 minutes after your commit and then watch the event script run.

 

  • You can name the specific event whatever is clear.
  • Then change the trigger on your event script off of the fpc event and over to this generate event time.
  • Once the script is tested and working your change the trigger back to your actual event.

The third party script Alex is recommending would be more direct creating a fake version of your actual event message and triggering on that.

 

 

Steve Puluka BSEET - Juniper Ambassador
IP Architect - DQE Communications Pittsburgh, PA (Metro Ethernet & ISP)
http://puluka.com/home
Feedback