Reply

Retrieve Last Configuration in XML Policy without <ConfigFileCheck>

Authority
Posts: 41
2998     1

Hi,

 

I have a question with regards to XML policy syntax.

 

I am wondering if there is a way to retrieve last configuration in Raw XML syntax?

 

I think <ConfigFileCheck> is the default way, but if the configuration is out-of-date (or last configuration retrival failed), this syntax will throw an "unknown" error.

 

I am not question the default behavior, but I am wondering if there is a way to retrieve the configuration in XML without any error checking.

 

Nick

Re: Retrieve Last Configuration in XML Policy without <ConfigFileCheck>

[ Edited ]
Adviser
Posts: 353
2998     1

Yep.

<Expr field='running_config_text' output = 'my-config'/>



will leave it in the variable ’my-config’.

John

Showing results for 
Search instead for 
Did you mean: 

Recommended for You