Start a Conversation

Unsolved

This post is more than 5 years old

M

1953

March 19th, 2015 03:00

How to retrieve ManagedState from an ASL script

Hi,

I am trying to build an ASL script to collect the ManagedState of interfaces.

Using dmctl I use:

dmctl -s invoke Interface:: getManagedState from which I see either

MANAGED, UNMANAGED, EXPLICITLY_MANAGED or EXPLICITLY_UNMANAGED

I have created an ASL script to retrieve each of the interfaces but as ManagedState isn't a listed attribute of the Interface, I can't use

intObj->ManagedState

So, how do I collect the ManagedState value from an ASL script?

Any help on this would be appreciated.

Thanks a lot,

Duncan

3 Posts

March 19th, 2015 07:00

ItObj->IsManaged

Will help in ASL script.

- Chintaman.

On 19 Mar 2015 16:02, "monkeyhanger63"

March 19th, 2015 08:00

Hi Chintaman,

Thanks for that.

Unfortunately I have tried that and it only returns a bopolean TRUE or FALSE.

What I am trying to find is the ManagedState which is one of the 4 options I listed below.

For instance, although isManaged returns true, the ManagedState can be MANAGED or EXPLICITLY_MANAGED,

Likewise, if isManaged returns FALSE, the ManagedState can be UNMANAGED or EXPLICITLY_UNMANAGED.

It is this value that I am trying to get through the ASL script.

Best Regards,

Duncan

3 Posts

March 19th, 2015 09:00

Hi Duncan,

Yes, True is Managed, and False is unmanaged. And it is due to only those

updates in topology.

It seems, emc is not updating explicite_* status into topology, thus

collecting it from topology might not be possible.

- Chintaman

On Thu, Mar 19, 2015 at 8:32 PM, monkeyhanger63 <

No Events found!

Top