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:
- Get the PATROL SID report. For more information, see To get the PATROL SID report.
- 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.
- To add an agent threshold using the SID.
- Apply the policy.
To get the PATROL SID report
- Log in to TrueSight console.
- Go to Configuration > Managed Devices.
- Identify the PATROL Agent for which you want to get the SID report.
- From the PATROL Agent action menu, select Query PATROL Agent.
The Agent Query Tool opens in a new browser window. - 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):
- Click the action menu (...).
The Select Command dialog box is displayed. - Select PATROL SID Report. Displays the PATROL SID report as shown in the following example:
- Click the action menu (...).
- Do the following to manually enter a PSL command (applicable only to TrueSight Infrastructure Management 11.0 and earlier):
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);
- Press Enter or click Execute. Displays the PATROL SID report as shown in the following example:
- 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):
Was this page helpful? Yes No
Submitting...
Thank you
Comments
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);
Shivali Mengale , Please have a look.
Log in or register to comment.