"/system package get system version" does not work anymore

I have script running by scheduler every day for years to make configuration backup. Have just find out this script is not working anymore. Seems like it had stopped working after update to 7.11, but not sure for 100%. Looking in the script I have find out command:

:local sysver [/system package get system version];

is not working anymore, return error: “No such item”, and that is what preventing my script from running. Other similar commands, for example:

:local sysname [/system identity get name];

is working with no error.
I do not remember much about syntax of mikrotik scripting language, I made this script years ago. Seems like this broken line is assignment to variable “sysver” the version of RouterOS, in my case it should be “7.11”.

Question: why does it stop working? And how to fix it?

Use the power of the TAB…

:local sysver [/system package get routeros version];

This is the classic problem of copying and pasting or not knowing at all what the scripts you use do…
Since version 7.0alpha0 “system” no longer exists, but only “routeros” (which incorporates system, dhcp, ppp, etc.)

Thank you very much, even twice! I forgot about power of the TAB or did not know ai all. :slight_smile:
Have fixed, all works now.

Only one minor cosmetic problem left - I see date reported now as “2023-08-27”, although before it was as “Aug-27-2023”.
I have parsed it in the script to combine filename using pick, so positions are not a problem, but I would prefer to have “Aug” instead of “08”.

Is there any way on how to change date format reported by “/system clock get date” in script, without changing the regional settings and without extra conversion “08” → “Aug”, like using arrays?

Yep, thank you for comments.
I wrote this script more than 10 years ago, I believe :slight_smile:. I believe, for Router OS version 3.something. And yes, of course, I have used a lot of copying-and-pasting, but with significant changes by myself, and on that moment, when I wrote it, I definitely knew what script does.

No.

Use my scripts as example on how to parse date on both format on same script.
http://forum.mikrotik.com/t/rextended-fragments-of-snippets/151033/1

More specifically
http://forum.mikrotik.com/t/changing-the-mmm-dd-yyyy-date-format/5183/10