Start a Conversation

Unsolved

This post is more than 5 years old

S

891

April 15th, 2009 02:00

Extracting Domain managers via ASL

Hi,

I would like to be able to list all domain managers in an ASL script using a common method, is there a way to do this via ASL scripting.

Thanks in Advance

J

20 Posts

April 15th, 2009 02:00

Hi Russia,

Thanks for the insight, I don't want to use the commands brcontrol or sm_service as my intension is to extract this type of information from the SAM. using brcontrol assumes you know the names already and you would have to manually uses them, I am looking for a dynamic method

I was wondering if that is possible, to extract the AM names from the SAM as it does have this information , but I am unsure how to reference this via ASL code.

Kind Regards

J

2 Intern

 • 

138 Posts

April 15th, 2009 02:00

Hello!

Sorry, Initially I not quite understood a question.

This is code for get APM server from each element in SAM.

START {
..eol
}do {
foreach devName (getInstances("ICIM_UnitaryComputerSystem"))
{
devObj = object(devName);
xList = devObj->MemberOf;
foreach mOf (xList) {
mOfObj = object(mOf);
if (!mOfObj->isNull()) {
if (mOfObj->CreationClassName == "InChargeDomain") {
apm = mOfObj;
print(apm);
}
}
}
}
}


Enjoy!

2 Intern

 • 

138 Posts

April 15th, 2009 02:00

Hello savuka .

For list all domain managers registered on broker - brcontrol
For list all domain managers on current machine - sm_service show

When you running asl script with sm_adapter, you must specify domain manager name for connect to.

Example: sm_adapter -s script.asl

April 15th, 2009 06:00

Hi,

in fact, you can access all the domain manager which are subscribed by the SAM:

/opt/InCharge7/SAM/smarts/bin/dmctl -s geti InChargeDomain

using a pattern filter, you can access only the IP (AM-PM) even if no topology is coming from them and without going through the complete list of devices.
Using the same script from Hemul, you can simply use the InChargeDomain class to loop into.

--Fred

== Monitor your Smarts environment using APG ReportPack for Smarts health ==
Frederic Meunier
Solutions Watch4Net Inc
APG & Smarts InCharge integration
http://www.watch4net.com
No Events found!

Top