So I'm creating a bunch of groups and creating dynamic queries for each group. The only thing different between each group is the IP Ranges, etc. Is there any way to clone dynamic queries between groups?
not in the UI -- you can create them quite easily using the API though -- I've posted perl scripts that do it in the past.
Got a link?
Adding node to a container (group) with Perl?
Re: Trying to create groups (containers) using perl
at it's simplest there is the following perl snippet:
[Sector and Building are two custom properties... I have this code inside a perl function that takes a building and sector as arguments and creates a group with the members in it]
$swis->Invoke("Orion.Container", "CreateContainer", [
"$sector $building",
"Core",
"60",
0,
"Group for $sector nodes in $building",
"true",
SOAP::Data->type('xml' => "<ArrayOfMemberDefinitionInfo xmlns='http://schemas.solarwinds.com/2008/Orion'><MemberDefinitionInfo><Name>$building Devices</Name><Definition>filter:/Orion.Nodes[CustomProperties.Building='$building' AND CustomProperties.Sector='$sector']</Definition></MemberDefinitionInfo></ArrayOfMemberDefinitionInfo>")]
)));