get flag "invalid" of the interface

To get flags “slave, running, disable” use the command

:put [/interface get vrrp running]

as I can see if the interface has the flag “invalid”

:put [/interface vrrp get invalid]

If that is what you were asking

It shows me an error: “input does not match any value of value-name”

I need to check the status of the interface “vrrp” on rb411u after every reboot, because a few occasions it is as "invalid. " Then I run:

/ interface disable vrrp
/ interface enable vrrp

and is solved, but I need to do automated (via script).

so if you want to disable/enable all invalid interfaces
/interface vrrp disable [find invalid];
/interface vrrp enable [find disabled];

I’ve been testing this script and run correctly, but stay back as “invalid”.
However if i disable-enable from Winbox, through window “Interface List”, it is enabled and working.
Is there another way to do this by command line?
I use RB411U, ver 5.0RC10
Thanks.

is ip addresses assigned to the interfaces? AFAIK most often ip address is not set on vrrp interface so, it becomes invalid, or, if you have set IP on the interface, check if that is active and is not invalid, try to disable/enable ip address assgined on vrrp interface.

I updated the software to version 5.0 and it seems this solved the issue,

*) fixed vrrp - interface was invalid after undoing remove;

although continuous testing.

ps: in my case interface VRRP has IP address and is valid.

so problem was solved by doing upgrade to latest version? Or you still have it?

Yes. We perform over 100 tests in a row with the new version 5.0 with satisfactory results.
We take it for good.