SMARTS: How do I run dmctl commands against a topology instance with spaces in its name?
search cancel

SMARTS: How do I run dmctl commands against a topology instance with spaces in its name?

book

Article ID: 303830

calendar_today

Updated On:

Products

VMware

Environment

VMware Smart Assurance - SMARTS

Resolution

Run a dmctl command against an instance in my topology which has spaces in its name.



To run a dmctl command against a topology instance with spaces in its name, you will need to escape the spaces by using quotes around the instance name.  You will also need to escape the quotes by using a backslash before each quote.  See below for example:

     dmctl -s <domain_name> get Class::\"<instance name>\"

So for example, if you wanted to get the attributes of a Hierarchical Group named My Routers from your SAM global manager, you would run the following command:

     dmctl -s INCHARGE-SA get HierarchicalGroup::\"HGRP-My Routers\"