Reply
Highlighted
Accepted Solution

NetMRI Config search via REST API

ScottCoen
Techie
Posts: 3
3314     0

Hello!

 

I was wondering if there is a method out there on the NetMRI API that replicates the config functionality within the GUI? 

Since the data im looking for is within the configuration (not something mapped to a property of the device), its looking like the data will be within the running_config_text property.  Right now the path I'm heading down is getting a list of all devices and its running config (/devices/index, and a payload for methods[running_config_text]).  Once i have that, in my code i handle the searching config string for my string.  This way works, but those response payloads become quite large with those large config strings.  I just want to verify I'm not reinventing the wheel if there is another straight forward method out there.

 

Any assitance is much appreciated!

Scott

Re: NetMRI Config search via REST API

Adviser
Posts: 353
3315     0
You can try the xml_filter option on devices and see if you can include a ConfigFileCheck in there.

Re: NetMRI Config search via REST API

ScottCoen
Techie
Posts: 3
3315     0

Thanks for the quick reply!  Going down the xml_filter route did the trick. Thanks!

Showing results for 
Search instead for 
Do you mean 

Recommended for You