- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
Device Grouping assistance / best practices
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
05-30-2013 02:52 AM
I am looking for the best way to organise devices on NetMRi using Device Grouping. Our standard ensure that the snmp-server location (SNMP Object sysLocation) uses the format: "Site / Floor"
When I create Device Groups I label them like this:
Name (of Device Group) = Bracknell Routers 3rd Floor
Membership Criteria:
$sysLocation like /["Bracknell"] and ["3rd"] and ["Floor"]*./ and $Type like /.*Router.*/
Once the group has been created I click the "Generate Groups" button. At which point I hope to have only the device of type "Router" containing the snmp-server location of "Bracknell 3rd Floor"
This is not working very well and I suspect it may have something to do with the regex in the Membership Criteria.
If anyone could assist me I would be very grateful.
Thanks in advance,
Daren
Re: Device Grouping
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
05-20-2013 12:27 PM
$sysLocation like /Bracknell 3rd/ and $Type in ["Router"]
That will create a group for Bracknell 3rd Floow
Now for Bracknell 2nd floor use the following:
$sysLocation like /Bracknell 2nd/ and $Type in ["Router"]
Now for Bracknell 2nd floor with Routers and Switches use the following:
$sysLocation like /Bracknell 2nd/ and $Type in ["Router","Switch-Router","Switch"]
Twitter: https://twitter.com/sifbaksh
https://sifbaksh.com
Re: Device Grouping
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
05-22-2013 03:53 AM
Thank you for the help- but I tried this regex for device grouping and it still did not work:
$sysLocation like /Bracknell 4th/ and $Type in ["Switch"]
And for information, the interface description is set as follows on the Cisco device:
snmp-server location Bracknell - 4th Floor
However NetMRI has yet to place it and others on that floor in the group.
I tried amending the script to this:
$sysLocation like /Bracknell 4th/ and $sysLocation like / 4th/ and $Type in ["Switch"]
But still no luck - nothing appears in the device group.
is this a bug or is the expression wrong I wonder?
Re: Device Grouping
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
05-24-2013 10:01 AM
Unless I'm missing something obvious, your pattern doesn't match the config statement.
"Bracknell - 4th" <> "Bracknell 4th"
Re: Device Grouping
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
05-28-2013 02:17 AM
Thanks Marty,
I understood (but of course can be corrected) that the "like" looks for pattern matches but is not an exact match, so "snmp-server location Bracknell - 5th Floor" and also "snmp-server location Bracknell 5th Floor" - neither of these work.
I am stumped really because a Device grouping for switches on the 3rd floor worked the first time.
I tried Sif Baksh 's recommendation but again - nothing was placed into any groups.
I am running a very old version of software and so I am wondering if this has any bearing on it
Re: Device Grouping
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
05-30-2013 02:52 AM
Okay this problem seems to be resolved. As soon as I upgraded the software to 6.3.1.42 the device grouping using the same syntax started to work as expected. Thanks to everyone who helped.
Re: Device Grouping assistance / best practices
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
11-04-2019 06:32 AM
Hello, Could someone please help me here. I want to create a device group where config credential status and snmp credential status for a device are "Ok"
Re: Device Grouping assistance / best practices
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
11-22-2019 05:50 AM
The supported variables for Device Grouping are the following
$ID unique NetMRI ID for device
$IPAddress IP address of the device (e.g., 192.168.1.33)
$Name name of the device (e.g., rtr1.netcodia.com)
$Network name of the Network View for the device’s management IP address
$Type type of the device (e.g., Router, Switch, etc.)
$Assurance assurance level for the device type
$Vendor vendor of the device (e.g., Cisco)
$Model model of the device
$Version software version of the device
$Community SNMP community of the device
$sysName SNMP system name
$sysDescr SNMP system description
$sysLocation SNMP system location
$sysName SNMP system name
$sysDescr SNMP system description
$sysContact SNMP system contact
Additionally, you can use custom fields for Device Grouping. So, you can't create a live device group that updates when the credential status changes.
However, you can create a custom Report, where you can get a list of Devices and their status for Config Credential or SNMP credential