Howdy Pals.
I am stuck on the below
Automation Approach : The plan is to automate a server Reboot activities using simple PS script configuring on all the sites machines as per the site agreed timelines on monthly basis, only important criteria is Script need to check/verify/read the LAC/E acquisition status in LACE computer from Recover.log file under C ->Empower -> InstrumentServer before firing reboot action .
If Log status is like 2 lines reboot need to proceed, else defer the reboot.
Begin sweep
End Sweep
these 2 lines appear on the recover.log file and this file keeps on updating. So when we have to reboot as per the scheduled time, we need to check in the complete file these 2 lines. If these appear then reboot else prompt "Cannot be rebooted as work is being carried upon."
Any help on this will be highly appreciated
If log Status is 3 lines or different reboot action need to halt.