How can I use command line to change the IsManaged attribute for an interface in SMARTS?
search cancel

How can I use command line to change the IsManaged attribute for an interface in SMARTS?

book

Article ID: 322892

calendar_today

Updated On:

Products

VMware Smart Assurance

Environment

VMware Smart Assurance - SMARTS

Resolution

How can I use command line to change the IsManaged attribute for an interface in an Smarts IP server?



From <BASEDIR>/IP/smarts/bin, issue command:
     ./dmctl -s <DOMAIN> invoke <Interface instance> manage
To get <Interface instance> run the following command:
     ./dmctl -s <DOMAIN> getI Interface
Likewise, to unmanage an interface run the following command:
     ./dmctl -s <DOMAIN> invoke <Interface instance> unmanage
To check the status, issue command:
     ./dmctl -s <DOMAIN> get Interface::<Interface instance>::IsManaged

Additional Information

Example:
     bash-2.05$ ./dmctl -s jamesc_28115_snap getI Interface
     IF-128.1.241.254/1    IF-128.1.241.254/10   IF-128.1.241.254/11
     bash-2.05$ ./dmctl -s <DOMAIN> get Interface::IF-128.1.241.254/8::IsManaged
     FALSE
     bash-2.05$ ./dmctl -s <DOMAIN> invoke Interface::IF-128.1.241.254/8 manage
     bash-2.05$ ./dmctl -s <DOMAIN> get Interface::IF-128.1.241.254/8::IsManaged
     TRUE
     bash-2.05$ ./dmctl -s <DOMAIN> invoke Interface::IF-128.1.241.254/8 unmanage
     bash-2.05$ ./dmctl -s <DOMAIN> get Interface::IF-128.1.241.254/8::IsManaged
     FALSE
  • The IsManaged field is boolean and not a text field so you can't just put a value in there.
  • ManagedState is not a boolean field.
  • The value for the ManagedState is MANAGED, UNMANAGED, EXPLICITLY_UNMANAGED, EXPLICITLY_MANAGED
  • The value for IsManaged is boolean TRUE, FALSE