And statement

Hi

So Im kind of new to scripting. I have a simple idea: i have a rb750 with 5 interfaces. I have 3 disabled interfaces. I have commented on of them with the comment “suspect”. So my script needs to enable all disabled interfaces, except of those that have the comment “suspect”.

My idea was as follows:

interface ethernet set (([/interface ethernet find where disabled=yes]) && ([/interface ethernet find where comment=“suspect”])) disabled=no

Don’t shout if its a silly fault. Script Error: cannot compute logical “and” of nothing and nothing

Thanks in advance.
Wimpie :slight_smile:

add a comment to other interfaces “secure”

for enable

inter ethernet enable [find comment=secure ]

for disable

inter ethernet disable [find comment=secure ]

Hi

Not really what I had in mind. I have also done two rules now based on that idea, but was hoping to do everything in one rule. My goal is not really to get it done, but to find better ways of scripting.