Unsolved

This post is more than 5 years old

2 Posts

1104

May 15th, 2012 14:00

Building Threshold groups on multiple domains

Has anyone come up with any way to automate the creation of threshold groups or in the very least to do it programatically through command line?

Performing this time consuming and repetetive task is daunting when you have more than even a few AM/PM domains.

I have (so far) been unable to locate any classes/operations that appear to allow this, and the relationships between matching criteria filters and the group objects seems hard to pin down.

Ultimately I would like to be able to create the group, assign matching criterea and settings, and configure the settings. Everything I have tried til now has led to dead ends.

Thank you,

Tim

15 Posts

August 20th, 2012 18:00

The only thing that I could recommend is configuring all the groups once for one domain. Then you can use the same rps files file to start other domains.  You will need to create a copy of the first RPS file with new domain names, copy them into /smarts/local/repos/icf dir.  If you already have topology in the original RPS file you can get rid of it by starting up the domain for the first time with --clean-topology option.  This option will preserve all your settings, but will get rid of devices. Make sure you only use it once. or when you want to start fresh, but still keep all of your groups.  You can use this for all domains, but we SAM you need to be careful.  If you have Selective groups you will lose them with this method.

1 Rookie

 • 

18 Posts

August 21st, 2012 10:00

I have tried every way possible to find a way within SMARTS (AM, PM, BIM) to build this... It is not possible to do it and have any sort of control over the notification propagation and severity of groups.

I ended up writing a Perl application to create hierarchical groups and all their linkages to create a hierarchy. I also control all the Notifications associated with each group within the hierarchy based on custom rules within the script.

The first step is to have a set of "grouping" rules to create your groups. I used dynamic model to add extra attributes that are relavent to our business to group them and control the hierarchy.

As my topology grew I ended up needing to incorporate a database to keep track of the configuration data. I would say anything over a hundred groups you will want to do the same.

This method also allows you to have multiple AM domains feeding into a SAM or multiple SAMs.

I would suggest getting familiar with the Perl API and starting there.

Karl

August 23rd, 2012 17:00

create a template in one server and then use these commands

Polling Threshold setting export and import

Export

sm_adapter -s /opt/InCharge9/IP/smarts/rules/utils/ic_dumpSettings.asl > settings-dump.conf

Import

dmctl -s invoke ICF_PolicyManager::ICF-PolicyManager loadSettings settings-dump.conf

this will easily import the polling and threshold settings .

There are similar utils present in lower versions also.

No Events found!

Top