The show-objects API command is very useful for general objects search, by specifying the objects "type" parameter and filtering the results by "filter" parameter.
Here is a list of available object types (R80.10) that can be used:
The "filter" parameter can be made up as an expression, containing logical operators - 'AND', 'OR', in capital letters. The provided expression should be exactly the same as it would be given in SmartConsole GUI.
For example, to search all tcp services with names containing "aol" or "bgp", use -
show-objects type service-tcp filter "aol OR bgp"
To search all tcp services having a name containing both "edonkey" and "466", use -
show-objects type service-tcp filter "edonkey AND 466"
In addition, there are undocumented parameters "in" and "not in", for string matching in textual fields, such as name and comments.
For example, to search all tcp services containing "ext" in the name field, use -
show-objects type service-tcp in.1 name in.2 ext
To search all tcp services containing "cifs" in the comments field, use -
show-objects type service-tcp in.1 comments in.2 cifs
To search all tcp services NOT containing "cifs" in the comments field, use -
show-objects type service-tcp not.in.1 comments not.in.2 cifs
Hope this helps.