[quagga-users 14991] Re: How to use curl to run command in zebra?
Matthias Ferdinand <mf-5+/[email protected]> Thu, 28 Jun 2018 17:06:25 +0200
| Newsgroups | gmane.network.quagga.user |
|---|---|
| Message-ID | <20180628150625.GW19307@xoff> |
On Thu, Jun 28, 2018 at 12:00:02PM +0100, quagga-users-request-UOy77sIEA+cAd7ICUelF/[email protected] wrote: > Message: 1 > Date: Thu, 28 Jun 2018 15:23:22 +0800 > From: Sam <[email protected]> > To: quagga-users-UOy77sIEA+cAd7ICUelF/[email protected] > Subject: [quagga-users 14990] How to use curl to run command in zebra? > Message-ID: > <CAOE=1Z1jk5uhc7G6YOuJAAS3o_KL09yJFCtFE--xaixUerMsmw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> > Content-Type: text/plain; charset="utf-8" > > Hi all, > > I'm working on sonic, there is no telnet, so I can't login zebra's VTY. > > So I run this command: > > > curl -s --form "command=help" http://localhost:2601/ > > > But it report "Bad password" error like this: I don't know what "on sonic" means, but if you have access to the vtysh command, you can try something like this for an interactive vty session: vtysh -d ospfd or for a single command something like this: vtysh -d ospfd -c 'show ip ospf route' Regards Matthias