[quagga-users 14990] How to use curl to run command in zebra?
Sam <[email protected]> Thu, 28 Jun 2018 15:23:22 +0800
| Newsgroups | gmane.network.quagga.user |
|---|---|
| Message-ID | <CAOE=1Z1jk5uhc7G6YOuJAAS3o_KL09yJFCtFE--xaixUerMsmw@mail.gmail.com> |
--===============2421161430326955874== Content-Type: multipart/alternative; boundary="0000000000003f63f7056fae9b99" --0000000000003f63f7056fae9b99 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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=3Dhelp" http://localhost:2601/ But it report "Bad password" error like this: > Enter host password for user 'SONIC': > Hello, this is Quagga (version 0.99.24.1). > Copyright 1996-2005 Kunihiro Ishiguro, et al. > > User Access Verification > =EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD"=EF=BF=BD=EF=BF=BD= Password: > Password: > Password: > % Bad passwords, too many failures! How to use curl correctly for this command? Thank you. --0000000000003f63f7056fae9b99 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr">Hi all,<div><br></div><div>I'm working on sonic, there= is no telnet, so I can't login zebra's VTY.</div><div><br></div><d= iv>So I run this command:</div><blockquote class=3D"gmail_quote" style=3D"m= argin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left= :1ex">curl -s --form "command=3Dhelp" <a href=3D"http://localhost= :2601/">http://localhost:2601/</a></blockquote><div><br></div><div>But it r= eport "Bad password" error like this:</div><div><blockquote class= =3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rg= b(204,204,204);padding-left:1ex">Enter host password for user 'SONIC= 9;:<br>Hello, this is Quagga (version 0.99.24.1).<br>Copyright 1996-2005 Ku= nihiro Ishiguro, et al.<br><br>User Access Verification<br>=EF=BF=BD=EF=BF= =BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD"=EF=BF=BD=EF=BF=BDPassword:<br= >Password:<br>Password:<br>% Bad passwords, too many failures!</blockquote>= </div><div><br></div><div>How to use curl correctly for this command? Thank= you.</div></div> --0000000000003f63f7056fae9b99-- --===============2421161430326955874== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Quagga-users mailing list Quagga-users-UOy77sIEA+cAd7ICUelF/[email protected] https://lists.quagga.net/mailman/listinfo/quagga-users --===============2421161430326955874==--