Hi Team,
I have a requirement for calculating system idle time. It should cover all these,
- System Locked time [For how long]
- The system is un-locked, but no action performed
- The script should start monitoring these activities when a user is logged into the system
- Report needed at the end of every 8 hours, when a user is logged out from his/her system
- Report format should be in csv format and it should have fields like " 1. User Name who logged into the system, 3. Idle Time, 4. Total Hours "
Hi @Idel_Hours
we will analyze your request and update you once the script has been completed.
Thank you
Meena
3
Hi @Idel_Hours
We have completed your request, Please refer the JSON file.
Note:
Run the script as custom monitoring script.
Refer the following help topic for configuring a monitor on a device,
Refer the following wiki topic for running a custom script on a device,
https://wiki.comodo.com/frontend/web/topic/how-to-use-custom-script-procedure-monitoring
Now add this profile to the device where you need to check your details
Let us know your feedback.
Thank you.
20180822-User-Details.json (19.5 KB)
Hi Meena,
Thank you for the script.
aghiad
5
@Meena
Hi i follow the steps but did not get any result please check the picture
1- import the scrips to procedures
2- Create new monitor
3- add the procedure to the condition in monitor
4- Make sure it’s in the right profile
5- assign the profile to the device
But i did not receive any email
Thanks .

Jimmy
6
@aghiad ,
We have asked our Script Developers to review the procedure. We’ll provide you their response as soon as possible
Meena
7
Hi @aghiad
Please refer the below modified JSON files.
Run the script as custom monitoring script.
Refer the following help topic for configuring a monitor on a device,
Refer the following wiki topic for running a custom script on a device,
https://wiki.comodo.com/frontend/web/topic/how-to-use-custom-script-procedure-monitoring
Note:
1.At first configure the profile with file and its monitoring time period of 5 Minutes.
2.Then add that specific profile to the particular device.
3.After successfull configure of the first profile configure another profile with file and fix the monitoring time period of 7 minutes.
Input parameter:
emailto=[‘xxxxx@yyyyy.com’] # Provide an email where want to send CSV file.
emailfrom=‘yyyyy@zzzz.com’ # Provide a valide from email.
password='yyyyyyyyyy' # Provide the correct password for your from mail.
If you need to receive the mail using email from which you provided on the script.Please follow the below wiki guide.
https://wiki.comodo.com/frontend/web/topic/configure-gmail-account-to-be-able-to-receive-emails-from-automation-scripts
4.Now add the second configured profiles to the same device where you need to check your details.
5 If the user logged in for 7:50 min,It will calculate the break and Idle time then it will generate the report.
Let us know your feedback.
Thank you.
20181004-idle_state.json (7.47 KB)
20181004-total_monitor(1).json (22 KB)