Smarts SAM: How can I get a list of Smarts SAM notifications and their properties using the Smarts DMCTL utility?
search cancel

Smarts SAM: How can I get a list of Smarts SAM notifications and their properties using the Smarts DMCTL utility?

book

Article ID: 304339

calendar_today

Updated On:

Products

VMware

Environment

VMware Smart Assurance - SMARTS

Resolution

How can I get a list of Smarts SAM notifications and their properties using the Smarts DMCTL utility?
How can the properties of Smarts SAM notifications be extracted through the command line or the DMCTL utility?

How can I get the properties of Smarts SAM notifications using the command line?

How can I retrieve all Smarts SAM SM_OBJ properties using the Smarts DMCTL utility?




To retrieve a list of current notifications present in your Smarts SAM environment, use the following DMCTL command:

./dmctl -s <SAM_SERVER> getI ICS_Notification

An example of a notification would be:

NOTIFICATION-Card_CARD-fusion/1.1.1_Down

To retrieve the properties of the above notification, can use the following DMCTL command syntax:

./dmctl -s <SAM_SERVER> get ICS_Notification::<Notification>

Using the preceding notification example, the DMCTL command would be as follows:

./dmctl -s <SAM_SERVER> get ICS_Notification::NOTIFICATION-Card_CARD-fusion/1.1.1_Down

This command will output all the SM_OBJ objects for the notification. If you would like just particular objects, use the following DMCTL command syntax:

./dmctl -s <SAM_SERVER> get ICS_Notification::<Notification>::<Object>

Using the preceding notification example, the DMCTL command would be as follows:

./dmctl -s <SAM_SERVER> get ICS_Notification::NOTIFICATION-Card_CARD-fusion/1.1.1_Down::ElementClassName

The ElementClassName in the above command is the same as SM_OBJ_Name.