Netbrain
Home NetBrain Product One-Skill-at-a-Time Search Mark Forums Read
Go BackThe Net-BrainerNetBrain Product Using Regex for hostname matching

Reply
 
Thread Tools Search this Thread Display Modes
Old 05-04-2010, 04:04 PM
Erick Erick is offline
 
Join Date: May 2010
Posts: 116
Default Using Regex for hostname matching

Is there a way to match devices via standard perl regex?

ie. add all devices "(a|b)cd..e" to a device group "CD - Charlie Danial's site"
Reply With Quote
Old 05-05-2010, 03:28 AM
David.C David.C is offline
 
Join Date: May 2009
Posts: 118
Default Re: Using Regex for hostname matching

Hi, Erick

NetBrain does not support filter devices using Perl regular expression. However, for NetBrain Workstation OE, you can match devices via searching configuration files.

1. Input a key string in the Search box, and check the Search Configuration Files option. You can input a prefix of IP addresses and hostnames, SNMP locations, or any other key commands configured on devices.

2. Click the Search button, the Search Result pane opens. All devices whose configuration files contain the input strings are listed.

Tips:
1. Press Ctrl or Shift key to select more devices.
2. Right-click the selected devices, you can:
Map the devices.
Remove the devices from workspace.
Add the devices to a device group.

Hope to help.

Last edited by David.C; 05-05-2010 at 03:30 AM.
Reply With Quote
Old 05-27-2010, 01:25 PM
Erick Erick is offline
 
Join Date: May 2010
Posts: 116
Default Re: Using Regex for hostname matching

The lack of regex matching is really starting to become annoying. I guess I am too used to working with CLI and not GUIs *shrug*

Show me all devices at site "ab" == ls -la | egrep "^(r|s|w)ab"
Show me all of the primary WAN routers == ls -la | egrep "^r..wan10"
Show me all of the backup WAN routers == ls -la | egrep "^r..wan11"

And so on.
Reply With Quote
Old 05-27-2010, 11:07 PM
David.C David.C is offline
 
Join Date: May 2009
Posts: 118
Default Re: Using Regex for hostname matching

Yes, exactly. I think we will add the support of regular expression into our further route.
Reply With Quote
Old 06-01-2010, 10:59 AM
Erick Erick is offline
 
Join Date: May 2010
Posts: 116
Default Re: Using Regex for hostname matching

That would be awesome. Even simple things such as the start and end of line markers would be a good start
Reply With Quote
Old 06-03-2010, 10:26 AM
recoyle recoyle is offline
 
Join Date: Jun 2010
Posts: 50
Default Re: Using Regex for hostname matching

Agree, start and end of string would help. Throw in a wildcard option for single or multiple character and you have 90% of what is needed.
Reply With Quote
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Forum Jump

All times are GMT -4. The time now is 11:25 AM.
Powered by vBulletin
Copyright 2000-2010 Jelsoft Enterprises Limited.
Copyright 2009 NetBrain, Inc. All rights reserved.