Action details using Query

Action details using Query

Email Action Details :

SELECT AM_ACTIONPROFILE.ID AS ACTION_ID, NAME AS ACTION_NAME, FROMADDRESS, TOADDRESS FROM AM_ACTIONPROFILE LEFT JOIN AM_EMAILACTION ON AM_ACTIONPROFILE.ID = AM_EMAILACTION.ID WHERE AM_ACTIONPROFILE.TYPE = 1

Action Association Details using Action ID :

SELECT MO.RESOURCEID AS "RESOURCE ID", MO.DISPLAYNAME AS "MONITOR DISPLAY NAME", MO.RESOURCENAME AS "RESOURCE NAME", MO.TYPE AS "MONITOR TYPE", AAM.ATTRIBUTE AS "ATTRIBUTE ID", AM.ATTRIBUTE AS "ATTRIBUTE NAME", CASE WHEN SEVERITY=1 THEN 'CRITICAL' WHEN SEVERITY=4 THEN 'WARNIG' ELSE 'CLEAR' END AS SEVERITY, AP.ID AS "ASSOCIATED ACTION ID", AP.NAME AS "ASSOCIATED ACTION NAME" FROM AM_ACTIONPROFILE AS AP JOIN AM_ATTRIBUTEACTIONMAPPER AS AAM ON AP.ID = AAM.ACTIONID JOIN AM_ManagedObject AS MO ON MO.RESOURCEID = AAM.ID JOIN AM_ATTRIBUTES AS AM ON AM.ATTRIBUTEID = AAM.ATTRIBUTE WHERE AP.ID = <actionID>

Note : Replace the <actionID> with the correct Action ID

Action Association Details using Action Name : 

SELECT MO.RESOURCEID AS "RESOURCE ID", MO.DISPLAYNAME AS "MONITOR DISPLAY NAME", MO.RESOURCENAME AS "RESOURCE NAME", MO.TYPE AS "MONITOR TYPE", AAM.ATTRIBUTE AS "ATTRIBUTE ID", AM.ATTRIBUTE AS "ATTRIBUTE NAME", CASE WHEN SEVERITY=1 THEN 'CRITICAL' WHEN SEVERITY=4 THEN 'WARNIG' ELSE 'CLEAR' END AS SEVERITY, AP.ID AS "ASSOCIATED ACTION ID", AP.NAME AS "ASSOCIATED ACTION NAME" FROM AM_ACTIONPROFILE AS AP JOIN AM_ATTRIBUTEACTIONMAPPER AS AAM ON AP.ID = AAM.ACTIONID JOIN AM_ManagedObject AS MO ON MO.RESOURCEID = AAM.ID JOIN AM_ATTRIBUTES AS AM ON AM.ATTRIBUTEID = AAM.ATTRIBUTE WHERE AP.NAME = '<actionName>'

Note : Replace the <actionName> with the correct Action Name



                  New to ADSelfService Plus?