Setting IsManaged attribute for an interface via command line(CLI)
search cancel

Setting IsManaged attribute for an interface via command line(CLI)

book

Article ID: 322892

calendar_today

Updated On:

Products

VMware Smart Assurance

Issue/Introduction

Unmanaging or managing the interface and checking status via dmctl i.e by Command line interface (CLI)

Environment

Smarts - 10.1.X

Resolution

To manage an interface:

  1. To get details of the <Interface instance>, navigate to <IP_BASE>/smarts/bin and run
    ./dmctl -s <DOMAIN> getI Interface
  2. From the same bin directory, run
    ./dmctl -s <DOMAIN> invoke Interface::<Interface instance> manage

To unmanage an interface:

  1. Get the details of the interface instance which need to be unmanaged as explained in Step 1 of above section (To manage an interface).
  2. Navigate to <IP_BASE>/smarts/bin and run
    ./dmctl -s <DOMAIN> invoke Interface::<Interface instance> unmanage

To check status of an interface:

./dmctl -s <DOMAIN> get Interface::<Interface instance>::IsManaged

Additional Information

  • ManagedState is not a Boolean field. The value for the ManagedState is MANAGED, UNMANAGED, EXPLICITLY_UNMANAGED, EXPLICITLY_MANAGED
  • The IsManaged field is Boolean and not a text field. The value for IsManaged is Boolean TRUE, FALSE