This discussion has been locked. The information referenced herein may be inaccurate due to age, software updates, or external references.
You can no longer post new replies to this discussion. If you have a similar question you can start a new discussion in this forum.

Automated Group Creation - NPM 10.2

Guys I am using NPM 10.2 and I am trying to find an easier way to create groups.  I have a custom property field on all my devices that tell me the Site Name which we update from our CMDB.  What I am trying to do is create a group for each site with a dynamic group query based off that field.  I can easily do it manually however I have a few hundred sites and that lists changes quite a bit.  So this would be a VERY tedious task.

So what I am wondering is could this be done by updating the DB directly with some sort of a script?  I have looked at the DB and have found the 'Container' tables but it looks REALLY messy.  I have a ticket open with support but it does not seem like they are understanding what I am trying to do so I figured I would give this a try.  I am not sure if it is even possible but I figured I would give it a try.

Thanks in advance for any feedback.

 

Mike

Parents
  • Hi,

    even it is possible to add groups directly via database you should be aware that such solution is not officially supported. You should focus on table Containers and ContainerMemberDefinitions. Best way how to do that is to create one group via web, then look at its definition in datbase and according to it write script which creates other groups.

  • Yes those are the two tables I was looking at but it looks VERY 'messy', I just wanted to see if anyone else has looked into this.  It would be nice if there was some type of a group import function, however I am not sure how many people are even using them.  I figured I would pose the question and see what kind of feedback I got.

    Thanks for your response.

Reply
  • Yes those are the two tables I was looking at but it looks VERY 'messy', I just wanted to see if anyone else has looked into this.  It would be nice if there was some type of a group import function, however I am not sure how many people are even using them.  I figured I would pose the question and see what kind of feedback I got.

    Thanks for your response.

Children
No Data