Hi Guys ,
I am trying to create bulk groups on Solarwinds using SWIS python client . I see the group and the dynamic rule gets created successfully on the UI . However, the nodes get added to the group only after i manually "save" the rule by getting each rule.
Kindly suggest !!
This is the piece of client where i am creating the group :
swis = SwisClient(npm_server, username, password)
swis.invoke('Orion.Container', 'CreateContainer',groupname,'Core',60,0,groupname,True,
[
{'Name': rulename, 'Definition': "filter:/Orion.Nodes[Contains(CustomProperties.NodeCategory,'" + gname +"') AND CustomProperties.NodeLocation="+ nodeloc+" ]"}
]
)