where we do have to keep it, what is the format for content of that file?
which permissions are required to give to that file?
Code: Select all
[root@localhost libexec]# ./check_wmi_plus.pl -H 192.168.3.170 -u admin -p welcome123$ -m checkfileage -a "c:/users/mcapra/documents/test.txt"
OK - Age of File c:/users/mcapra/documents/test.txt is 25 days 18:13:44 (37093min) or 618.23hr(s).|'c:/users/mcapra/documents/test.txt Age'=618.23hr;
Code: Select all
username=admin
password=welcome123$
domain=WORKGROUP
Code: Select all
[root@localhost libexec]# ./check_wmi_plus.pl -H 192.168.3.170 -A wmi_auth_file -m checkfileage -a "c:/users/mcapra/documents/test.txt"
OK - Age of File c:/users/mcapra/documents/test.txt is 25 days 18:16:53 (37096min) or 618.28hr(s).|'c:/users/mcapra/documents/test.txt Age'=618.28hr;