-
1. Re: TrueSight 10.x: How to increase Query Agent Window's buffer size?
Oleg Protokolov Oct 13, 2017 3:16 PM (in response to Sam Truong)Hi, Sam!
Could you show me output for this command:
print(grep("is bigger than the maximum",cat(get("agentLogPath")), "i"));
--
WBR, Oleg
-
2. Re: TrueSight 10.x: How to increase Query Agent Window's buffer size?
Sam Truong Oct 17, 2017 3:39 AM (in response to Oleg Protokolov)Hi Oleg,
Small log file:
print(system("type %patrol_home%\\log\\SEN_CMPL_debug_km_3181_2017-10-12-14-53.log"));
• DEBUG: 2017-10-12 14:53:03: [SEN_CMPL_MAIN]: Creating /SEN_CMPL_MAIN/CMPL
DEBUG: 2017-10-12 14:53:04: [SEN_CMPL_MAIN]:
-----+ ***************************************
| **
| ** START OF MAIN DISCOVERY
| **
| ***************************************
| KM version: 1.3.00
| Build version: SNAPSHOT.d73161d4868
DEBUG: 2017-10-12 14:53:04: [SEN_CMPL_MAIN]:
-----+ ******************************************
| **
| ** Initialization - Level 0
| **
| ******************************************
Same file with your command:
Command : print(grep("is bigger than the maximum",cat(get("%PATROL_HOME%\\log\\SEN_CMPL_debug_km_3181_2017-10-12-14-53.log")), "i"));
Results :
Executed successfully on the PATROL agent.
Bigger log file, about 25MB:
Command : print(system("type %patrol_home%\\log\\SEN_CMPL_debug_java_3181_compel-em-2014_2017-10-12-15-28.log"));
Results :
Executed successfully on the PATROL agent.
Same file with your command:
Command : print(grep("is bigger than the maximum",cat(get("%patrol_home%\\log\\SEN_CMPL_debug_java_3181_compel-em-2014_2017-10-12-15-28.log ")), "i"));
Results :
Executed successfully on the PATROL agent.
Thanks,
Sam.
-
3. Re: TrueSight 10.x: How to increase Query Agent Window's buffer size?
Oleg Protokolov Oct 18, 2017 6:30 AM (in response to Sam Truong)Sam,
Once again, send me output of that command:
print(grep("is bigger than the maximum",cat(get("agentLogPath")), "i"));
--
WBR, Oleg
-
4. Re: TrueSight 10.x: How to increase Query Agent Window's buffer size?
Sam Truong Oct 18, 2017 1:02 PM (in response to Oleg Protokolov)Here you go:
Command : print(grep("is bigger than the maximum",cat(get("agentLogPath")), "i")); Results : Executed successfully on the PATROL agent.
Thanks,
Sam.
-
5. Re: TrueSight 10.x: How to increase Query Agent Window's buffer size?
Ramassh Theivendran Oct 18, 2017 10:44 PM (in response to Sam Truong)Hi Sam Truong ,
Try this PSL (replacing the log file):
chan = fopen("C:\\Program Files\\BMC Software\\Patrol3\\log\\SEN_MS_debug_km_3181_2017-10-18-23-46.log", "r"); if(chan) { data = read(chan, 1048576); while(errno != 55) { print(data); data = read(chan, 1048576); }} else { print("file not found\n"); }
This will read 1MB chunks of data and print it to SOW.
-
6. Re: TrueSight 10.x: How to increase Query Agent Window's buffer size?
Ashroba Ujagare Oct 27, 2017 1:52 AM (in response to Sam Truong)Dear All,
I tried below PSL for Windows Server Agent but it is giving error. Can anyone please give correct PSL scrip to check dir and read log files for Windows server Agent using Query Agent Option.
As below PSL command for Linux Agent is working fine.
print(system("ls -l %PATROL_HOME%/log/"));
So Please suggest for Windows. I am new to PSL scripting.
Thanks,
Ashroba
-
7. Re: TrueSight 10.x: How to increase Query Agent Window's buffer size?
Oleg Protokolov Oct 27, 2017 6:51 AM (in response to Ashroba Ujagare)Hi,
Try the following commands:
print(system("dir %PATROL_HOME%\\log\\"));
print(system("dir D:\\Program Files (x86)\\BMC Software\\Patrol3\\log\\"));
--
WBR, Oleg
-
9. Re: TrueSight 10.x: How to increase Query Agent Window's buffer size?
Oleg Protokolov Oct 27, 2017 8:23 AM (in response to Ashroba Ujagare)Please, send me the output from followed commands:
print(system("dir ".get("agentLogPath")));
print(system("echo %PATROL_HOME%"));
--
WBR, Oleg
-
11. Re: TrueSight 10.x: How to increase Query Agent Window's buffer size?
Oleg Protokolov Oct 30, 2017 4:35 AM (in response to Ashroba Ujagare)Ashroba,
You forgot to send me the output from this command:
print(system("dir ".get("agentLogPath")));
--
WBR, Oleg
-
13. Re: TrueSight 10.x: How to increase Query Agent Window's buffer size?
Oleg Protokolov Oct 30, 2017 10:09 AM (in response to Ashroba Ujagare)Hi,
Try this
%PSL print(system("dir \"".get("/patrolHome")."\""));
--
WBR, Oleg
-
14. Re: TrueSight 10.x: How to increase Query Agent Window's buffer size?
Ashroba Ujagare Oct 31, 2017 12:23 AM (in response to Oleg Protokolov)Hi Oleg,
PF output of above query which is executed successfully.
Can you please send me any basic recommended document/Links for PSL scripting at ujgare.ash93@yahoo.com. I will go through it to learn PSL.
Thanks,
Ashroba
-
image[1].png 45.3 K
-