RE: JunOS configuration tools

From: Martin, Christian (cmartin@gnilink.net)
Date: Sat Sep 01 2001 - 11:32:30 EDT


The script that you'd have to create is about 4 lines long using ksh. In
Perl, it could be even less.

something like this should do it...

#!/bin/ksh

i=32
echo "interfaces {"
echo " at-0/0/0 {"
echo " description ATM_INTERFACE;"
echo " encapsulation atm-pvc;"
echo " atm-options {"
echo " vpi 2 maximum-vcs 1024;"
while [ "$i" != "1025" ];
do
  echo " unit $i {"
  echo " encapsulation atm-snap;"
  echo " vci 2.$i;"
  echo " }"
let i=$i+1
done
echo " }"
echo "}"

./chris

> -----Original Message-----
> From: Andrew Smith [mailto:as160@yahoo.com]
> Sent: Saturday, September 01, 2001 3:52 AM
> To: juniper-nsp@puck.nether.net
> Subject: JunOS configuration tools
>
>
> Hi, all
>
> Is there any tool that avaliable that can shave off
> some manual config times. For example, when I want to
> configure hundreds of sub-interfaces.
>
> Sorry, I am not good at scripting at all. 8-) That
> is why I am seeking something with a bit less steeper
> learning curve.
>
> TIA
> ---andrew
>
> __________________________________________________
> Do You Yahoo!?
> Get email alerts & NEW webcam video instant messaging with
> Yahoo! Messenger
> http://im.yahoo.com
>



This archive was generated by hypermail 2b29 : Mon Aug 05 2002 - 10:42:37 EDT