[Xorp-users] configuration

Ben Greear greearb at candelatech.com
Wed Nov 28 14:08:08 PST 2007


Florin Dinu wrote:
> Hello
> 
> Is it possible to do something like :
> ./xorpsh -c "configure delete interfaces interface eth2" ?
> I want to do this from a java program.
> The option there is to call exec with a string as a parameter so i need 
> to do this in one shot.
> However if I use the command above then xorpsh enters configure mode and 
> then does nothing.It just awaits input.
> Can this be done?

In the latest code you can use -c multiple times to do multiple commands.
I'd try adding more cmds to do a commit and exit.

Ben


> 
> Thank you
> Florin
> 
> _______________________________________________
> Xorp-users mailing list
> Xorp-users at xorp.org
> http://mailman.ICSI.Berkeley.EDU/mailman/listinfo/xorp-users


-- 
Ben Greear <greearb at candelatech.com>
Candela Technologies Inc  http://www.candelatech.com



More information about the Xorp-users mailing list