Discussion:
[quagga-users 14991] Re: How to use curl to run command in zebra?
Matthias Ferdinand
2018-06-28 15:06:25 UTC
Permalink
Message: 1
Date: Thu, 28 Jun 2018 15:23:22 +0800
Subject: [quagga-users 14990] How to use curl to run command in zebra?
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.
curl -s --form "command=help" http://localhost:2601/
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

Loading...