[j-nsp] remote ssh command to an EX series switch

Phil Shafer phil at juniper.net
Tue Sep 7 10:31:13 EDT 2010


Emmanuel Halbwachs writes:
>unixbox$ cat opmode-commands   | ssh router
>unixbox$ cat confmode-commands | ssh router

You can also do this with semi-colons:

ssh router "show foo; show bar ; show baz"
ssh router "configure ; set system host-name foo; commit"

Thanks,
 Phil


More information about the juniper-nsp mailing list