[j-nsp] Centralized scripts and copying to redundant routing-engines..
Chris Evans
chrisccnpspam2 at gmail.com
Thu Sep 9 22:55:36 EDT 2010
After I sent this I just remembered how to copy files between EX devices..
Use 'fpc#" instead of "re#"..
So I'm going to come out and say this as I'm irritated.. Scripts are used to
automate tasks, I can configure a centralized server for the active RE, yet
I have to manually copy it to the backup RE.. What a sham. 10 Devices, this
would be easy to manage, but thousands?? Come on!
I've sent my SE a request to research how Juniper recommends this, if there
is no elegant solution I'm putting in an ER to just get something like rsync
setup to replicate the directories.
On Thu, Sep 9, 2010 at 10:27 PM, Kevin Oberman <oberman at es.net> wrote:
> > Date: Thu, 9 Sep 2010 21:31:55 -0400
> > From: Chris Evans <chrisccnpspam2 at gmail.com>
> > Sender: juniper-nsp-bounces at puck.nether.net
> >
> > I have a question, hopefully someone has an answer..
> >
> >
> > I have setup centralized stored commit scripts, however I'm running into
> > issues with devices (EX and MX) that have redundant routing-engines. The
> > files have to be on both RE's to successfully commit as I use commit
> sync.
> > How do I get the files on both RE's when using a central server??
> >
> >
> > The documentation says this: "If a platform has dual Routing Engines, you
> > need to refresh the commit scripts on both Routing Engines. The commit
> > synchronize command does not refresh the commit scripts between Routing
> > Engines."
> >
> >
> > That is a very vague statement and gives no options on how to do it..
> Also
> > the backup RE has no connectivity to the network, only the primary does..
> So
> > how am I supposed to copy the files over?
>
> scp the scripts to the master RE and then tell that RE to copy them to
> the backup RE.
>
> scp -i private-key-file script user at router:/path
> ssh -xai private-key-file user at router copy /path/script reX:/path
>
> Note! You will need to check on the current master to know what to
> replace the 'X' with.
> ssh -xai private-key-file user at router show chassis routing-engine 0 |
> grep "Current state"
> --
> R. Kevin Oberman, Network Engineer
> Energy Sciences Network (ESnet)
> Ernest O. Lawrence Berkeley National Laboratory (Berkeley Lab)
> E-mail: oberman at es.net Phone: +1 510 486-8634
> Key fingerprint:059B 2DDF 031C 9BA3 14A4 EADA 927D EBB3 987B 3751
>
More information about the juniper-nsp
mailing list