[j-nsp] remote ssh command to an EX series switch
Laurent HENRY
Laurent.Henry at ehess.fr
Mon Sep 6 11:18:45 EDT 2010
Hi Jérome,
the basic is grab the output of a "show arp" remotely via a crontab.
For the IP resolution, i used " show arp no-resolve", interactively the result
comes instantly.
Le Monday 06 September 2010 17:14:14 Jérôme Fleury, vous avez écrit :
> Hi Laurent,
>
> and what is the issue exactly ?
>
> You don't strictly need a ssh key on the switch for it to work.
>
> Also please note that this command can take a long time to achieve if
> your resolver on the switch does not work. The switch tries to resolve
> each IP address on the list.
>
> Regards,
>
> Jerome.
>
> On Mon, Sep 6, 2010 at 16:04, Laurent HENRY <Laurent.Henry at ehess.fr> wrote:
> > Hello all,
> >
> > I am willing to obtain the output of a simple command (show arp)
> > remotely from my linux host to a EX switch.
> >
> > i can use
> > %ssh netadmin at router1 'show arp' from my desktop
> > Obviously, i need to deal with ssh public keys.
> >
> > I tried this to from switch to desktop too
> > %echo "show arp" | /usr/sbin/cli > j.txt; scp j.txt
> > x at 192.168.0.152:/home/x/j.txt
> > with a similar issue.
> >
> > Is someone know a good doc pointer helping me how to configure ssh keys
> > to launch remote command from or to an EX ?
> >
> > Tank you
> >
> > _______________________________________________
> > juniper-nsp mailing list juniper-nsp at puck.nether.net
> > https://puck.nether.net/mailman/listinfo/juniper-nsp
--
Laurent HENRY
Administrateur Systèmes & Réseaux
Responsable du CRI/RSSI
EHESS - CRI
54 Bd Raspail
75006 Paris
Secrétariat du CRI: 01 49 54 23 08
Tel: 01 49 54 23 61
More information about the juniper-nsp
mailing list