Unable to configure a policy for a specific monitoring instance

Issue

Unable to configure a threshold, blackout, or a filtering policy for a specific monitoring instance. 

Resolution

You can configure a policy for a specific monitoring instance using a PATROL SID.

Do the following:

  1. Get the PATROL SID report. For more information, see To get the PATROL SID report.
  2. Enter the SID details as shown in the following examples:
    • To add an agent threshold using the SID. 
    • To filter instances using the the SID.


    For more information about configuring an infrastructure policy, see Managing policies.
  3. Apply the policy.

To get the PATROL SID report 

  1. Log in to TrueSight console.
  2. Go to Configuration > Managed Devices.
  3. Identify the PATROL Agent for which you want to get the SID report.
  4. From the PATROL Agent action menu, select Query PATROL Agent.
    The Agent Query Tool opens in a new browser window.
  5. In the Command box, specify the query: 
    • Do the following to select a query from a commonly-used PSL command list (applicable only to TrueSight Infrastructure Management 11.3.01 and later):
      1. Click the action menu (...).
        The Select Command dialog box is displayed.
      2. Select PATROL SID Report. Displays the PATROL SID report as shown in the following example:


    • Do the following to manually enter a PSL command (applicable only to TrueSight Infrastructure Management 11.0 and earlier):
      1. Type the command in the Command box. The following example shows the command to get the PATROL SID report: 

        outputLine="PATROL
        SID Report:\n";instanceCount=int(0);parameterCount=int(0);foreach line KM
        (get_vars("","nodes")) {displayName=get("/".KM."/MetaKMDisplayName");kmName=get("/".KM."/name");if
        (length(displayName)>0){outputLine=outputLine."================================================================================================\n|MONITOR
        TYPE:".displayName."(".kmName."):\n================================================================================================\n";foreach
        line instance (get("/".KM."/instances"))
        {instanceCount=int(instanceCount+1);parameterCount=int(parameterCount +
        lines(get_vars("/".KM."/".instance,"nodes")) -
        2);instName=get("/".KM."/".instance .
        "/name");outputLine=outputLine.sprintf("|\tNAME:%s\t
        SID:%s\n", instName, instance);}}}outputLine=outputLine."\n\nAgent
        currently has:\n\tInstances: ".instanceCount."\n\tParameters:
        ".parameterCount."\n";print(outputLine);
      2. Press Enter or click Execute. Displays the PATROL SID report as shown in the following example: 


    Note: To know how to filter the complex SIDs with special characters, see  Support for regular expressions. Open link
Was this page helpful? Yes No Submitting... Thank you

Comments

  1. Nikhil Shetty

    Dear Team the manual PSL execution is not working , please check

    Command : outputLine="PATROLSID Report:\n";instanceCount=int(0);parameterCount=int(0);foreach line KM(get_vars("","nodes")) {displayName=get("/".KM."/MetaKMDisplayName");kmName=get("/".KM."/name");if(length(displayName)>0){outputLine=outputLine."================================================================================================\n|MONITORTYPE:".displayName."(".kmName."):\n================================================================================================\n";foreachline instance (get("/".KM."/instances")){instanceCount=int(instanceCount+1);parameterCount=int(parameterCount +lines(get_vars("/".KM."/".instance,"nodes")) -2);instName=get("/".KM."/".instance ."/name");outputLine=outputLine.sprintf("|\tNAME:%s\tSID:%s\n", instName, instance);}}}outputLine=outputLine."\n\nAgentcurrently has:\n\tInstances: ".instanceCount."\n\tParameters:".parameterCount."\n";print(outputLine);

    Results : •Error submitting commandoutputLine="PATROLSID Report:\n";instanceCount=int(0);parameterCount=int(0);foreach line KM(get_vars("","nodes")) {displayName=get("/".KM."/MetaKMDisplayName");kmName=get("/".KM."/name");if(length(displayName)>0){outputLine=outputLine."================================================================================================\n|MONITORTYPE:".displayName."(".kmName."):\n================================================================================================\n";foreachline instance (get("/".KM."/instances")){instanceCount=int(instanceCount+1);parameterCount=int(parameterCount +lines(get_vars("/".KM."/".instance,"nodes")) -2);instName=get("/".KM."/".instance ."/name");outputLine=outputLine.sprintf("|\tNAME:%s\tSID:%s\n", instName, instance);}}}outputLine=outputLine."\n\nAgentcurrently has:\n\tInstances: ".instanceCount."\n\tParameters:".parameterCount."\n";print(outputLine);

    Mar 15, 2022 12:29
    1. Krutarth Mohakud

      Shivali Mengale , Please have a look.

      Apr 07, 2022 06:33