NetMRI_Easy.pm Methods
The table contains the NetMRI_Easy.pm methods and their descriptions.
Method | Description |
---|---|
| Set a server-side variable. This is useful when retrieving a template via get_template and the template contains variables that are not defined by the Script-Variables for the current job. This is because template merging (i.e. variable substitution) is performed on the server-side. Example: This method requires a CLI connection to the device. NetMRI must have credentials for the device against which the NetMRI_Easy script is running. |
| Send a command to the target device. Example: This method requires a CLI connection to the device. NetMRI must have credentials for the device against which the NetMRI_Easy script is running. |
| Send a command to the target device. You can use the Example: This method requires a CLI connection to the device. NetMRI must have credentials for the device against which the NetMRI_Easy script is running. |
| Retrieve a template. For the given template, retrieve the content and perform any necessary variable substitutions. Example: This method requires a CLI connection to the device. NetMRI must have credentials for the device against which the NetMRI_Easy script is running. |
| Generate an issue. For the given issue type id, generate an issue of the given severity using the name/value pairs defined in the given parameters as the issue details. String issue type id $severity severity is one of "error", "warning" or "info" %parameters hash reference containing the issue details. Example:
|
| Log a message of the given severity (one of 'debug', 'error', 'warning' or 'info'). The message is written to the custom.log file. This method requires a CLI connection to the device and that NetMRI have credentials for the device against which the NetMRI_Easy script is running. |
| Get the broker object of the corresponding API controller. Similar to device or cli_connection. Broker objects can be used to query and modify objects on the NetMRI appliance. |
| Create an instance of NetMRI_Easy associated with this job, but with a different device. Enables sending of commands to an additional device. Example:
This method may be called to create as many device sessions as needed. |
| Encode a message in JSON format in the status log; the message can be retrieved using the read_payload method on NetMRI::API::Remote::Job once the job has completed. |
| Open a session with NIOS. You must pass nios_api => 1 into the constructor to NetMRI_Easy to use this method, the Infoblox Perl API must be loaded before the Perl API. |