Junos Automation (Scripting)
Reply
Trusted Contributor
SapphireNET
Posts: 154
Registered: ‎03-27-2008
0

Event Script Question

I expect the solution to my problem is possibly an event script, unless someone has another suggestion:

 

problem:

 

I have an optic WAN port and when it goes down I want to turn down the LAN ports

and when it returns I want to UP the LAN ports.

 

any ideas on how to do this? or other alternatives.

 

the idea is for the customer on the LAN port to have a fast failover to the other router that we present them with.

JNCIS-M, JNCIS-SEC
Distinguished Expert
mikep
Posts: 483
Registered: ‎06-30-2009
0

Re: Event Script Question

Hi,

 

yes IMHO the only way to accomplish  that is to use an event script. Should I write it for you (no time commitmentsthough)?

 

Kind Regards

Michael Pergament

 

If this worked for you please flag my post as an "Accepted Solution" so others can benefit. A kudo would be cool if you think I earned it. 

Trusted Contributor
SapphireNET
Posts: 154
Registered: ‎03-27-2008
0

Re: Event Script Question

If you would be so kind

 

I expect it would be quite useful for the community as a whole.

 

I have no idea about writing the scripts, although its on my roadmap :-)

 

thank you

JNCIS-M, JNCIS-SEC
Distinguished Expert
mikep
Posts: 483
Registered: ‎06-30-2009
0

Re: Event Script Question

Hi,

 

would you like me to disable all ports which configured with family ethernet-switching and as access ports? Or something more intelligent?

 

Kind Regards

Michael Pergament

Distinguished Expert
aarseniev
Posts: 1,722
Registered: ‎08-21-2009
0

Re: Event Script Question

Copper LAN ports cannot be downed from config/event script. Even if disabled, the copper interface stays admin down/up and remote LAN peer would detect the carrier. More intelligent solution for copper LAN ports would be to have some sort of protocol running on copper LAN ports (OSPF, BFD, maybe even RIP) and bring it down when WAN port fails.
___________________________________
Accept as Solution = cool !
Accept as Solution+Kudo = You are a Star !
Copyright© 1999-2013 Juniper Networks, Inc. All rights reserved.