We are currently runing CiscoWorks Network Compliance Manager 1.3.SP2 (Build 4755-070308) and our dynamic groups are limited by 10 "Search Criteria" and because some of the devices dont follow the same naming standard and NCM is case sensitive I am having issues getting all the correct devices into the correct groups. Is there a way to use linux grep commands to add devices to groups? I see NCM has a command line but it does not appear to allow any type of grep or regular expression commands.
Hey josephenix, I'm not sure how many devices you are talking about modifying. If
it's a reasonable number and you already know the groups you want to put things in, then you can use the NCM telnet/
SSH proxy server, get a shell and issue a command like the following:
add device to group
Add a device to a device group.
add device to group [-ip ] [-host ] [-fqdn ] [-deviceid ] -group
• -ip - a.b.c.d where 0 <= a,b,c,d <= 255. You may optionally prefix the IP with SITE: where SITE is the name of the Site the device is in.
• -host - A valid hostname
• -fqdn - A valid Fully Qualified Domain Name
• -deviceid - A device ID
• -group - The name of the device group to which the device should be added. Examples
• add device to group -ip 192.0.2.10 -group tech-dev
• add device to group -ip "Default Site:192.0.2.10" -group tech-dev
What I'm envisioning for you is to get a list of devices with their planned device groups - put it into an editor, connect to the NCM proxy server, then paste it into the session...
If I didn't understand this clearly, feel free to reply to the thread with examples.