09-02-2014 11:01 AM
Like the subject says- is there an equivalent to DEBUG: within NetMRI_Easy that will show the output in the process log but not actually run it?
09-02-2014 07:11 PM
I'ved used this in the following:
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 Network Automation have credentials for the device the NetMRI_Easy script is run against.
$easy2->log_message('info', 'send command show version');
So I caputure some data via PERL RegEx and print it out Custom Log:
$easy->log_message('info', 'DHCP Range to Ignore: '.$range_val."\n");
Where $range_val is a variable in PERL.
But a True Debug under PERL, I will check to see if we have an RFE.
09-05-2014 08:00 AM
I just found out the following from my good buddy Chris W. @infoblox
Perl is a wrapper around CCS, so any CCS command can be used from Perl via send command:
$easy->send_command("DEBUG: print a debug message");
That is so cool
Let us know how that worked out for you.