Smarts SAM: How to link objects with service offerings
search cancel

Smarts SAM: How to link objects with service offerings

book

Article ID: 303812

calendar_today

Updated On:

Products

VMware

Environment

VMware Smart Assurance - SMARTS

Resolution

How to link objects with service offerings in Smarts Service Assuance Manager (Smarts SAM)?



There are two ways you can link an object in Smarts SAM to a Service offering:

Method 1:  Using the GUI

  1. Log into your Smarts SAM domain.
  2. Open the topology builder from the Notiication Log Console (On the menu bar Configure > Topology Builder).
  3. In the Topology builder select Edit > Create Instance.
  4. Fill out the Create instance in domain form to create your ServiceOffering.
  5. Click the Synchronize button on the far right of the top tool bar (it is a yellow button).
  6. Select the Object to which you want to link your new Service Offering.
  7. Expand the ServiceOffering class list in the left window and right click the Service Offering you want to use and click "Add to map".
  8. With both your ServiceOffering and your Object displaying in the same map view in the right window, select both Objects.
  9. Once both objects are selected you should see the link button (grey chain link with blue + sign, next to the Synchronize button) change from being greyed out to usable. Click this button.
  10. If you succeeded in the previous step, you should see a dotted arrow going from the Service Offering to the Object, for the changes to take effect on the SAM, click the Synchronize button again.

Method 2:  Using <BASEDIR>/SAM/smarts/bin/dmctl

  1. Log into the SAM  domain via dmtcl.
  2. Create the service offering using the following command:

    ./dmctl -s <SAM domain> create ServiceOffering::SRVO-<service offering name>


     
  3. Name the service offering correctly with the following command:

     ./dmctl -s <SAM domain> put ServiceOffering::SRVO-<service offering name>::DsiplayName <service offering name>

     
  4. Identify the topology object you want to link to this service offering with the following command:

    ./dmctl -s <SAM Domain> getI <Class>
    .

    You will returned a list of all the instance names in that class.
     
    • If the above ./dmctl command returns too large a list of output  so that you cannot see the instances you are looking for, run the command with the following setup:

      ./dmctl -s <SAM Domain> getI <Class> > Class.txt

      Example
      ./dmctl -s MY-SAM-Domain getI Router > Router.txt

       
    • The instance name is not the same as the display name in the GUI

       
  5. Run the following command to link the two objects:

    ./dmctl -s <SAM domain> put ServiceOffering::SRVO-<service offering name>::ConsistsOf <Device class>::<Instance name>


Additional Information

If you wish to have more than two object links to a service class, you can do that through the GUI by repeating the steps for a single link on the same  Service Offering object, or you can run the following dmctl command:

./dmctl -s <SAM Domain> put ServiceOffering::SRVO-<Service offering name::ConsistsOf <Class::Instance> <Class::Instance> <Class::Instance> 

 Repeat <Class::Instance> as many times as you need to in order to get all the Objects linked.