I run at one issue runing the gw_mclish +command on SMB.
First I edited this line in gw_mclish: if $CPDIR/bin/cprid_util getarch -server $line |grep -i "gaia" > /dev/null; (added -i for grep option, without -i it didn't work)
When I try to execute command "add user test123 type admin password 1234 permission RW" with gw_mclish on SMB r80.20 device from SMS r81.10 there is this error:
Unexpected error: attempt to index global 'cgilua' (a nil value).
Here are the steps which I did in order to find out what is going wrong:
1. Then I tried simple show commands, which works perfectly
2. Then I tried to add user and got mentioned error
3. I troubleshooted the error and I found out that problem is with next line:$CPDIR/bin/cprid_util -server $line -verbose rexec -rcmd /bin/clish -f /var/log/g_command.txt
4. I tried next variations of cprid_util:
$CPDIR/bin/cprid_util -server ipaddress -verbose rexec -rcmd /bin/clish -c "add user test123 type admin password 1234 permission RW" (even if I try with hashed password situation is the same)
$CPDIR/bin/cprid_util -server ipaddress -verbose rexec -rcmd /bin/clish -f /var/log/g_command.txt (in g_command.txt is command: add user test123 type admin password 1234 permission RW)
Adding user is working fine when I try it on gw with r81.10.
So I assume that problem is with cprid_util command...
Do you have any clue how to overcome this issue, if that is possible?
Thanks a lot in advance!