Setting the Managed State of an Object Using Smarts ASL
book
Article ID: 304326
calendar_today
Updated On:
Products
VMware Smart Assurance
Issue/Introduction
Symptoms:
How to set the managed state of an object using Smarts ASL.
Environment
VMware Smart Assurance - SMARTS
Resolution
Use manage and unmanage object methods to set the attribute. The IsManaged property of an object is read only and cannot be set. To manage or unmanage a device using ASL, the object's methods manage() and unmanage() should be used. These methods will set IsManaged correctly. In general, errors of the form SVIF-MR-E-Attempted to call access method which is not available for given Attribute indicate the attribute is read only and you should check the methods available for the class using dmctl getOperations.
Here is an example of managing and unmanaging a device from the command line: <BASEDIR>/IP/smarts/bin/dmctl -s DM_NAME invoke Router::sl-gesex-4-0.sprintlink.net unmanage <BASEDIR>/IP/smarts/bin/dmctl -s DM_NAME invoke Router::sl-gesex-4-0.sprintlink.net manage