Qing -

You need to use quotes:

root@dell-s6000-02:/var/log/quagga# vtysh -c show version
% Command incomplete.
root@dell-s6000-02:/var/log/quagga# vtysh -c "show version"
Quagga 0.99.23.1+cl3u2 ().
Copyright 1996-2005 Kunihiro Ishiguro, et al.
root@dell-s6000-02:/var/log/quagga#

donald

On Thu, May 19, 2016 at 2:28 PM, Qing Wang <[email protected]> wrote:

> Hi Donald,
>
> Thanks for the quick reply! I tried to use vtysh -c but it seems not
> working : (  The only command working by far is: vtysh -c "list".  Lots of
> cisco/quagga router commands are not. It always give me the error: "Command
> incomplete." While I can get the exactly same command working inside vtysh
> shell.
>
> For example:
> # vtysh -c show version
> % Command incomplete.
>
> I checked my debian configuration file, I did enable the vtysh though. I
> am pretty sure I got something wrong but I currently can't locate where
> they are. Could you please give me some hint how I can use the "vtysh -c",
> or why I got the "command incomplete" error message?
>
> Thanks,
>
> Qing
>
>
>
> On Thu, May 19, 2016 at 12:21 PM, Donald Sharp <[email protected]
> > wrote:
>
>> vtysh -c "conf t" -c "some configuration command"
>>
>> donald
>>
>> On Thu, May 19, 2016 at 12:16 PM, Qing Wang <[email protected]> wrote:
>>
>>> Hi Quagga group,
>>>
>>> I wonder if I can change the bgp prefix on the fly in quagga, except
>>> using uisng vtysh/telnet log into the bgp daemon process? For example, if I
>>> have network A announce prefix A1/24, can I change it to another
>>> announcement prefix A2/24 without configure bgp router manually via vtysh,
>>> for example, maybe using script?
>>>
>>> Thanks in advance!!
>>>
>>> Qing
>>>
>>> _______________________________________________
>>> Quagga-users mailing list
>>> [email protected]
>>> https://lists.quagga.net/mailman/listinfo/quagga-users
>>>
>>>
>>
>
_______________________________________________
Quagga-users mailing list
[email protected]
https://lists.quagga.net/mailman/listinfo/quagga-users

Reply via email to