Numerous print command create a list of items, each with a # as the leftmost column. If I want to print only the details of number 3, how do I do that? For example
/ip ipsec policy print detail where number=3
THe above obviously doesn’t work, but I can’t figure out the syntax
The where= refers to some property of items (e.g. in /ip firewall filter one can write where chain=input) so it’s useless here.
What does work (as a two step operation) is:
print
print from=3
Mind that numbers are dynamically created by print command so second step doesn’t work without the first one which creates the sequence numbers. It may work initially, but subsequent calls of step #2 refer to output of previous executions of print command.
The property from doesn’t seem to be well documented nor consistent accross the configuration tree, so this method may or may not work for you.