Go to documentation repository
A Hardware failures report (see System failures) can be automatically generated using a script that uses the REPORT_FAILURES reaction of the VIDEOSRV_R object:
DoReact("VIDEOSRV_R","","REPORT_FAILURES","computer<>,file<>,export<>,object<>,region<>,district<>,city<>,type<>,fromTime<>,toTime<>,sorting<>,comment<>");
Parameters description is given in the table below:
Parameter | Description |
---|---|
computer<> | Specifies the NetBIOS name of the computer on which the report is to be created. Required parameter. |
file<> | The full path to the file where the report will be saved. Required parameter. |
export<> | Format of the export file. 0 - Excel, 1 - HTML, 2 - RTF, 3 - CSV. Optional parameter. If this parameter is absent, the file is exported in Excel format. |
object<> | The object on which the report is created. This parameter specifies the "Object code", which is displayed on the Log Panel of the Monitoring PSIM interface object (see Information about an object). Optional parameter. If this parameter is absent, a report is created for all objects. |
region<> | Filter by the Region. It is necessary to specify the indexing numbers of the options to be used separated by commas in the Region drop-down list. For example: (region<1,3>) (see System failures). Optional parameter. If this parameter is absent, a report is created for all regions. |
district<> | Filter by the District. It is necessary to specify the indexing numbers of the options to be used separated by commas in the District drop-down list. For example: (district<2,3,5>) (see System failures). Optional parameter. If this parameter is absent, a report is created for all districts. |
city<> | Filter by the City. It is necessary to specify the indexing numbers of the options to be used separated by commas in the City drop-down list. For example: (city<1>) (see System failures). Optional parameter. If this parameter is absent, a report is created for all cities. |
type<> | Filter by the Failure type. It is necessary to specify the indexing numbers of the options to be used separated by commas in the Failure type drop-down list. For example: (type<1,3,5>) (see System failures). Optional parameter. If this parameter is absent, a report is created for all failure types. |
fromTime<> | Date and time of the report beginning in the DD-MM-YY HH:MM:SS format. Required parameter. |
toTime<> | Date and time of the report ending in the DD-MM-YY HH:MM:SS format. Required parameter. |
sorting<> | Sorting mode. 0 - by event, 1 - by time. Optional parameter. If this parameter is absent, sorting by event is used. |
comment<> | Show comment. 0 - do not show, 1 - show. Optional parameter. If this parameter is absent, comments are not shown. |
Sample script that will automatically create a Hardware failures report every day at 20:00 and save it to the C:\report.html file:
OnTime(W,D,X,Y,"20","00","00") { DoReact("VIDEOSRV_R","","REPORT_FAILURES","computer<Monitoring>,file<c:\report.html>,export<1>,fromTime<" + date + " 00:00:00>,toTime<" + date + " " + time + ">"); }