CLI (Command Line Interface) Identifiers enhance the device classification during discovery by allowing you to classify devices to the right templates. CLI identifiers are introduced in device template of OpManager and it works alongside SNMP OID rules to improve accuracy. With CLI identifiers, you can define rules based on the output of specific CLI commands. If the command output matches the defined criteria, the rule is triggered, enabling the corresponding template to be applied to the device during discovery.
CLI identifiers are useful when SNMP OIDs are missing, unreliable, or incomplete. They provide an alternative way to accurately identify and classify devices using command output.
OpManager provides a few predefined CLI commands by default as device identifiers in device template. These commands help to identify Linux devices accurately and apply the appropriate device templates.
| Command Name | Command | Sample Output |
| Linux Distribution | cat /etc/*release | grep -E '^NAME|DISTRIB_ID' | DISTRIB_ID=Ubuntu, NAME="Ubuntu" |
| Kernel Name | uname -s | Linux |
| Kernel Name and Version | uname -sr | Linux 5.15.0-139-generic |
The CLI identification is a process that is executed with the help of a command to match the expected output.
The newly added CLI Identifiers will be used during future device discoveries and rediscoveries.
Before adding CLI identifiers, you can also verify the command response from the Device identifiers by using Query Device option available in the device template.
Learn how SNMP SysOIDs are used in OpManager for SNMP-based identification.
Thank you for your feedback!