zakishah has asked for the wisdom of the Perl Monks concerning the following question:

Hi Monks, i want to ask is there any way to configure Junos router with static route through perl script. I want to configure JUNOS router with static route with perl script. My script is working and enters in router but as soon as it enter in edit mode it displays error and return control out of router my code is below. Any help will be appreciated

system ("ssh k.AS1 cli edit set routing-options static route 10.0.0.128 next-hop 10.0.0.110");

this error is displayed on screen error: syntax error, expecting <command>: set

Replies are listed 'Best First'.
Re: Configuring Static Route thorugh perl script
by GrandFather (Saint) on Aug 25, 2012 at 02:38 UTC

    I suggest you get it working from the command line first, then code it up in Perl. What you have shown so far is not a Perl problem.

    True laziness is hard work