VyOS Command Scripting - `vyatta_config_commit-confirm': not a valid identifier

Hello there!
I’m running VyOS 1.5-rolling-202310020022 and I’m trying to script the configuration process.
But just as I started with a very simple… run show interfaces, it returns a vyatta_config_commit-confirm': not a valid identifier. console output and used script: *vyos@VyOStest:~$ sudo sh shint.sh* */opt/vyatta/share/vyatta-cfg/functions/interpreter/vyatta-cfg-run: line 160: vyatta_config_commit-confirm’: not a valid identifier*
vyos@VyOStest:~$ cat shint.sh
#!/bin/vbash
source /opt/vyatta/etc/functions/script-template
run show interfaces
exit
vyos@VyOStest:~$

Any help is much appreciated.
Thanks
AS

Update the image to the latest rolling.

vyos@r4:~$ ./shint.sh
Codes: S - State, L - Link, u - Up, D - Down, A - Admin Down
Interface    IP Address         MAC                VRF        MTU  S/L    Description
-----------  -----------------  -----------------  -------  -----  -----  -------------
eth0         192.168.122.14/24  52:54:00:f1:fd:77  default   1500  u/u    WAN
eth1         -                  52:54:00:04:33:2b  default   1500  u/u    LAN
lo           127.0.0.1/8        00:00:00:00:00:00  default  65536  u/u
             ::1/128
vyos@r4:~$ 
vyos@r4:~$ 
vyos@r4:~$ show version 
Version:          VyOS 1.5-rolling-202401090834
Release train:    current

Built by:         autobuild@vyos.net
Built on:         Tue 09 Jan 2024 10:30 UTC
Build UUID:       350f1f79-e581-4dd2

Hello @Viacheslav, thank you for your input.


But it didn’t work.

Any more ideas anyone?

Thanks AS

Do not use sudo sh

./shint.sh
1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.