ksswd
February 17, 2005, 2:39pm
1
Every time I try enable, disable o remove a position which doen’t have a name I got the error: Invalid item number - although item with that number exists - when entered manually it works fine. For example:
/ip firewall src-nat print
/ip firewall src-nat disable 0
or
/ip policy-routing rule print
/ip policy-routing rule enable 2
or
/ip firewall dst-nat print
/ip firewall dst-nat remove 1
Eugene
February 17, 2005, 2:51pm
2
You cannot reference items by numbers in scripts.
ksswd
February 17, 2005, 3:02pm
3
How can I reference them then, if they do not have a name? What command should I enter instead?
Eugene
February 17, 2005, 3:26pm
4
Exempli gratia:
/ip firewall get [/ip firewall rule forward find comment="a comment"] address
ksswd
February 18, 2005, 10:11am
5
Thanks, that’s what I needed.