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

Network Change & Configuration Management

Reply
Highlighted

NetMRI: Use Custom Field in Policy Rule

Authority
Posts: 22
275     0

We have some scripts that write info to custom fields when executed. I would like to make a rule that references those custom fields, like "custom_field_x must contain a value" or "number in custom_field_x must be greater than ___." Don't see how to do this. Please advise how to reference/use custom fields in policy rules.

Highlighted

Re: NetMRI: Use Custom Field in Policy Rule

Adviser
Posts: 431
276     0

Looking at a way to do it via XML rule but not sure.

 

In the meantime:

I would use a Python script to read what's in the Custom Field and it wrong then generate a custom issue, run that as a scheduled job 

 

 

 

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

www.sifbaksh.com
Highlighted

Re: NetMRI: Use Custom Field in Policy Rule

Authority
Posts: 22
276     0

Using separate script to read that custom field and set custom issue is a workable hack, so thanks for that.

 

Not ideal to have to run such a script against thousands of devies (even if it never gets to logging into them) at least daily (schedule like "every 20 hours"), so please do look into the XML rule route. That certainly would be preferred.

Showing results for 
Search instead for 
Do you mean 

Recommended for You