Netmiko Validation Service
Uses Netmiko to send a command to a device and validates the output to
determine the state of that device. See the
Workflow section for
examples of how it is used in a workflow.
There is a
command field and an
expect string field in the Advanced
Netmiko Parameters. eNMS will check if the expected pattern can be found
in the output of the command. The values for a
pattern field can also
be a regular expression.
Configuration parameters for creating this service instance:
- All Netmiko Service Common Parameters.
CommandCLI command to send to the device.
Also included in Netmiko Advanced Parameters:
Use TextFSMCauses Netmiko to try and match the command to a TextFSM template pointed to in the system by the
NET_TEXTFSMenvironment variable. The Network to Code project maintains a repository of TextFSM templates for popular network devices here.
Expect StringThis is the string that signifies the end of output.
Config Mode CommandThe command that will be used to enter config mode.
Auto Find PromptTries to detect the prompt automatically.
Strip commandRemove the echo of the command from the output (default: True).
Strip promptRemove the trailing router prompt from the output (default: True).
Expect String and
Auto Find Prompt are mutually exclusive; both
cannot be enabled at the same time. If the user does not expect Netmiko
to find the prompt automatically, the user should provide the expected
prompt instead. This is useful when the CLI command sent via Netmiko
causes the prompt to change, for example, during upgrade.
This Service supports variable substitution in some input fields of its configuration form.