Reply

NetMRI: create a group based on a custom field

Techie
Posts: 14
4955     0

Hello,

does anyone know how to create a device group in Network Automation based on a custom field?

Let's say I have a custom field 'MyCustomField' which can have, among others, a value of 'MyValue'

How can a create a group with all devices having MyCustomField set to MyValue?

Thanks,

Bernard.

 

Hi,

Authority
Posts: 41
4955     0

Hi,

We too like to know about this.  Our custom field is at the device level.  Is there a way to create a group from this?

Currently that is not

Adviser
Posts: 464
4955     0

Currently that is not supported.

 

Sif

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

https://sifbaksh.com

It's a great idea though :p

Techie
Posts: 8
4955     0

It's a great idea though Smiley Tongue

Re: NetMRI: create a group based on a custom field

Adviser
Posts: 65
4955     0

NetMRI version 7.0.x supports this feature now. The following is taken from the Admin Guide

 

To do so, you prefix every Device Group Criteria reference to a device custom field with a syntax constant:
$custom_
Consider the creation of a device custom field called “business_unit.” (For information on how to create custom fields in Network Automation, see Defining and Using Custom Fields.) Editing the Device Group Criteria field for a device group called “Consumer Banking Group” to support a device custom field, typical syntax is as follows:
$Assurance > 65 and $Type in ["Router","Switch-Router",”Switch”,”Firewall”] and
$custom_business_unit = "Consumer Banking"
You prepend the constant $custom_ to the value “business_unit” to create the expression $custom_business_unit = “Consumer Banking”. Doing so in the Device Group Criteria ensures that any device that possesses a matching field value will match the “Consumer Banking Group” device group

Re: NetMRI: create a group based on a custom field

Expert
Posts: 244
4955     0

Super!  I didn't know that had been added.

Re: NetMRI: create a group based on a custom field

Adviser
Posts: 464
4955     0

It's great, you can only do it on Device Custom fields not Interfaces, I filed an RFE for it.

 

Sif

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

https://sifbaksh.com
Showing results for 
Search instead for 
Did you mean: 

Recommended for You