Junos Automation (Scripting)
Highlighted
Junos Automation (Scripting)

Event Script Question

10.01.09   |  
‎10-01-2009 03:20 AM

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
4 REPLIES
Junos Automation (Scripting)

Re: Event Script Question

10.01.09   |  
‎10-01-2009 03:31 AM

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. 

Junos Automation (Scripting)

Re: Event Script Question

10.01.09   |  
‎10-01-2009 03:34 AM

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
Junos Automation (Scripting)

Re: Event Script Question

10.01.09   |  
‎10-01-2009 03:36 AM

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

Junos Automation (Scripting)

Re: Event Script Question

10.02.09   |  
‎10-02-2009 01:02 PM
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.
_____________________________________________________________________

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 !