Skip to content

Building Scope Sets from Existing Business Applications

Mat Davis edited this page Nov 6, 2019 · 1 revision

This shell script was written to automatically build scope sets from the 'Computer Systems' functional group of existing business applications. This script was designed for use with TADDM 7.3+.

Installation

This script builds on top of the buildscope.jy script. A prerequisite to using the script is to download and install the buildscope.jy script on the wiki page Building Scope Sets from Discovered Systems.

Download bizappscopes.sh and place it under $COLLATION_HOME/custom. Edit the script and change the USER and PASSWORD variables to match your environment if they are not set to the default.

How it Works

The script queries the 'Computer Systems' functional group that is generated by default for business applications in TADDM 7.3. The following is the query used to get the systems.

select name from Application where exists ( groups.groupName == 'Computer Systems' )

Then for each application, the systems in that group are used to build the query for the buildscope.jy script.

select
 ComputerSystem.name, ComputerSystem.fqdn, ComputerSystem.ipInterfaces 
from
 ComputerSystem, FunctionalGroup 
where FunctionalGroup.app.name == '${bizapp}'
 and exists ( FunctionalGroup.members.guid == ComputerSystem.guid )
 and FunctionalGroup.groupName == 'Computer Systems'
 and ComputerSystem.manufacturer != 'Cisco'
 and not ( ComputerSystem.OSRunning instanceof VmwareESX )

Notice that we are attempting to remove Cisco network devices and VMware ESX. The strategy is that we are trying to hone in on distributed systems that actually host servers that are part of the business application.

Each scope set is created as a BizApp_${bizapp}.scope file under custom/scopes and then loaded into TADDM with the same name.

No previously loaded scopes are deleted from TADDM so you will have to clean up scopes for any business applications that get deleted.

Clone this wiki locally