[Xorp-users] configuration

Pavlin Radoslavov pavlin at icir.org
Wed Nov 28 14:37:25 PST 2007


Ben Greear <greearb at candelatech.com> wrote:

> 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.

Ah, right, in my previous email on the subject I forgot to mention
that the multiple -c support is in the latest code in CVS, but is
not in Release 1.4:

http://www.xorp.org/cvs.html

Pavlin



More information about the Xorp-users mailing list