Subscription for Management state changes
search cancel

Subscription for Management state changes

book

Article ID: 331727

calendar_today

Updated On:

Products

VMware Smart Assurance VMware Telco Cloud Service Assurance

Issue/Introduction

This article explains how one can setup a subscription for management state changes on a sample port class

Environment

Smarts - 10.1.X

Samrts-DM - 2.x

TCSA - 2.x

Resolution

Here is an example of how to use the sm_adapter command to subscribe to properties of the Managed State for the Ports. 
sm_adapter -s <domain name>  --subscribeProp=Port::.*::ManagedState/v 

Output:

1534430964|ATTRIBUTE_CHANGE|Port|PORT-switch/38|ManagedState|UNMANAGED|
1534430964|PROPERTY_ACCEPT|Port|PORT-switch/58|ManagedState|
1534430964|ATTRIBUTE_CHANGE|Port|PORT-switch/58|ManagedState|UNMANAGED|
1534430964|PROPERTY_ACCEPT|Port|PORT-switch/48|ManagedState|
1534430964|ATTRIBUTE_CHANGE|Port|PORT-switch/48|ManagedState|UNMANAGED|

Running this command in a separate window connected to the same server to observe dynamic update in sm_adapter output.

dmctl -s <domain name> invoke Port::PORT-switch/70 manage


Output:

1534431232|ATTRIBUTE_CHANGE|Port|PORT-verizon-switch/70|ManagedState|EXPLICITLY_MANAGED|