Cisco Support Community
Showing results for 
Search instead for 
Did you mean: 

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. If you'd prefer to explore, try our test area to get started. And see here for current known issues.

New Member

Creating Ciscoworks Groups Programatically


The title says it all - I have about 5000+ switches and routers which I need to place into about 1200 groups. If I used the GUI it would take forever to do this so I was wondering if there was a way to do it programatically? I can use the device name to identify which group to assign it to.


Re: Creating Ciscoworks Groups Programatically

There's only one problem, Ciscoworks doesn't support 1200 groups, a closer number to reason would be 100 groups.

With that said, you can automatically assign devices to group based on their attributes like:

IP address

Device.ManagementIpAddress range "10.[96-118].[0-255].[0-255]"


Device.DisplayName contains "bubba"

device model

Device.Model equals "2948"

what organization it belongs to

Device.DomainName endswith ""

and so on , there are 14 fields that you can parse combine or discriminate with using Boolean operators AND OR EXCLUDE. Thee of the fields are user definable.

New Member

Re: Creating Ciscoworks Groups Programatically

Hi Thanks for the reply.

I wasn't aware of the 100 group limitation which seems rather low. I was aware of the flexbility of group creation using the GUI but I thought that with the cwcli interface or something equivalent I might be able to script it