Check your syntax of the rsc file. Error detected at (line 30 column 22).
One thing springs to mind - you might (if not already so) use a separate ssh (or telnet) client if you’re using the terminal from within WinBox.. that one tends to miss chars when pasting copied data into it.. Putty (my personal favourite, use your own preferred client) always works wonders..that just might explain your syntax error if it looks ontherwise ok, or is a freshly copied export..
I assume line 30 is the 30th line in but where are the columns?
The benefit of being old and grey in IT. ![]()
Before those fancy fonts, computer output was done on printers and screens with constant width (equally spaced) character positions. One character was one byte.
A screen had 24 lines and 80 columns. A large printer had 66 lines (11 inch paper) of 132 characters. A punched card had 80 characters.
Set your text in font “Courier” and you will see, that you can count the lines and columns.
Error detected at (row,column) means that’s the point that the code parser found something wrong, It could be too late. An unclosed ( or " could make some code still be parsed the wrong way, and only later an inconsistency is found. The hint is not always the real problem , like “expected end of command” means it cannot process the extra information on that line. The root cause can be somewhere earlier in the script.
One way of testing is taking logical blocks of code out of the script by copy, and paste it in the CLI session.as if you just typed it in (and indeed Putty does that very well)
You can use ‘verbose’ switch on import, sometimes output to screen helps to spot the problem, because you will see exactly where the script stops. And there is another one useful switch ‘from-line’ which you can use to continue import after correcting errors.
Why starting from something that does not work, when its simpler to go back, use RESET and start from something that works clean
and do the modifications from there?
Specially when there is no evidence that it ever worked or the system performed the way it should do… ?
May advice would be, go back and reset the device, and if needed use quickset for typical bridged AP use case and then get it going from there…
Sorry, I have been absent for some time, I was busy with health issues and just got the time to come back to this forum, I’m still not positive as to how to read the columns and rows. Someone suggested I start from scratch. Will fixing the one line of malfunctioning code fix the issue, or am I better off starting over?
Tristance, glad you are back.
Personally ROS and inbox are quit complex for first time user. One thing missing and nothing works
and there are too many options/things to correct.
I would do:
- Take an export of your current config as well as a backup (backup via GUI and export via:
export file=mycurrentconfig
, download that file to your PC
- Then reset the device completely (menu: system/reset configuration
- Once your device gets up, use quickset ONCE!!! Select dual band AP (or the corresponding device type you want)
- set basic things like SSID for 2G, 5G, passwords, IP ranges etc. Use “router” mode to start with and not bridge mode
- You should select all LAN ports bridged (ETH1 will still remain internet port), to use NAT (I would suggest so), firewall (I suggest so) use DHCP and also set the IP address for your local LAN
- Once you have your “basic” set, go to “terminal” and do again an export (export file=xyz) of the config and a backup
- You can use Quicset as long as you do not do any other change via winbox or GUI. If you want to do such changes, do NOT use Quickset anymore
- From there onwards use “save mode” while you do changes and see if the device is still functional. Also do regular exports/backup to be able to come back if something is broken
- Using an advanced (but still simple to use) text editor, like ATOM with ROS highlighting and DIF function will help you to see the difference between two rsc files (the export files)
- this is a great and simple way to learn and see what has changed, and what works
