Learn How We Can Help You Keep Teleworkers Protected During the COVID-19 Crisis

Network Change & Configuration Management

Reply
Highlighted

Is there a DEBUG: equivalent in NetMRI_Easy?

Adviser
Posts: 62
1445     0

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?

 

thanks.

Highlighted

Daniel,

Adviser
Posts: 417
1446     0

Daniel,

I'ved used this in the following:

$easy->log_message($severity, $message)

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.

Sif

Follow me on LinkedIn: https://www.linkedin.com/in/sifbaksh
Twitter: https://twitter.com/sifbaksh
Highlighted

I just found out the

Adviser
Posts: 417
1446     0

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.

-Sif

 

Follow me on LinkedIn: https://www.linkedin.com/in/sifbaksh
Twitter: https://twitter.com/sifbaksh
Showing results for 
Search instead for 
Do you mean 

Recommended for You