Skip to content
  • There are no suggestions because the search field is empty.

How do I use auto-grouping to exclude certain devices from the daily discovery-rewalk?

You can exclude certain devices by creating an auto-grouping rule and using the regex ^((?!(nameofyourdevice)).)*$

In the example below I have used my devices ObjectID ^((?!(jnxProductNameJ2350)).)*$

To grab the ObjectID of a device go to Console > Device Filter > Select your Device> Go to Report List > Device Viewer

Got to Device Details > ObjectID > Copy the name of your device

Go to Admin Tool > Auto-grouping > Add

Create a new rule name based on your name convention rules as your Rule Name and Groups to populate

Add the Attribute Filter sysObjectID and add the regex corresponding to your devices ObjectID

In this example my regex is ^((?!(jnxProductNameJ2350)).)*$

Test the rule and you will notice a number of Matched entities will be populated.

The number of entities shown should be excluding all devices with the ObjectID specified.

Save the rule by clicking the "Save Rule" button.

Now go to Admin Tool > Expert Tools > Crontab

Edit the line to add the "auto-group" parameter -g: 

0 11 * * * nim-discover -v -r -g NameOfDeviceGroup > $SSHOME/nim/etc/discover.log 2>&1

In this case:
 

0 11 * * * nim-discover -v -r -g Exclude-Juniper-J2350 > $SSHOME/nim/etc/discover.log 2>&1

Click the "Save" button and it's complete.