Trying to run multiple commands on a single line on an Arista switch running 4.22.6M. I followed this – https://eos.arista.com/forum/executing-multiple-commands-on-one-line/ but this is for a newer software version. Is this functionality available for 4.22.6M?
Upgrading the firmware is not an option as 4.22.6M is the optimal version for our needs as a business at the moment.
Thanks in advance.
Thanks for reaching out.
Running Multiple commands on a single line using run command is not supported in 4.22.6M EOS version.I have tested this in lab for 4.22.6M and I could see the command not working.
switch(config)#run show ip interface brief ; show lldp neighbor
As per https://eos.arista.com/forum/executing-multiple-commands-on-one-line/ we have support for multi-command feature starting from 4.24.2F and later versions.
Although the multi-command feature is not available in EOS version 4.22.6M, you can use Fastcli to accomplish similar behavior. The example below uses Fastcli to run the command show vrf, followed by show clock, if you would like to add a 3rd command we simply need to add n followed by the new command. For example, I have added show ver bash FastCli -p 15 -c $'show vrfnshow clocknshow ver'
bash FastCli -p 15 -c $'show vrfnshow clock'
Thu Jun 24 17:58:02 2021
Another option is to use the alias feature. Here is a simple demo:
Software image version: 4.22.6M
Uptime: 3 weeks, 2 days, 11 hours and 43 minutes
Fri Jun 25 12:11:35 2021
Post your Answer
You must be logged in to post an answer.