Setting the Managed State of an Object in smarts
search cancel

Setting the Managed State of an Object in smarts

book

Article ID: 304326

calendar_today

Updated On:

Products

VMware Smart Assurance

Issue/Introduction

How to set the managed state of a device in Smarts via CLI

Environment

SMARTS 10.1.x

Resolution

The IsManaged property of an object is read only and cannot be set. Use manage and unmanage object methods to set the attribute. These methods will set IsManaged correctly.
 
Below are the commands for unmanage and managing a device from the command line:
 <BASEDIR>/IP/smarts/bin/dmctl -s DM_NAME  invoke <classname>::<instance-name> unmanage
 <BASEDIR>/IP/smarts/bin/dmctl -s DM_NAME  invoke <classname>::<instance-name> manage