Smarts IP: Subscription for Management state changes
search cancel

Smarts IP: Subscription for Management state changes

book

Article ID: 331727

calendar_today

Updated On:

Products

VMware Smart Assurance

Environment

VMware Smart Assurance - SMARTS

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.  
dmctl -s <domain name> invoke Port::PORT-switch/70 manage

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