Saltstack remote confirmation of McAfee's latest update Time command

Source: Internet
Author: User
Tags saltstack

The McAfee Update log directory is located in C:\Program Files\Common Files\mcafee\engine\amcoreupdater\amupdate.dat


So you can execute DOS commands

CD C:\Program Files\Common Files\mcafee\engine\amcoreupdater&&dir

Returned as follows:

    Volume in drive C are Windows
     Volume serial number is da32-cde1
    
     Directory of C:\Program Files\Common Files\mcafee\e Ngine\amcoreupdater
    
    2018/01/18  12:17    <DIR>          .
    2018/01/18  12:17    <DIR>.
    2018/01/18  12:17           395,164 amupdate.dat 2017/07/19 10:59 2,399,984 amupdate.dll
    2017 /07/19  10:59           574,336 amupdate.exe 2017/07/19 10:59 2,564,256 amupdate64.dll
    2017/ 07/19  10:59           234,072 amupdate_plugin.dll
                   5 File (s)      6,167,812 bytes
                   2 Dir (s)  15,317,721,088 bytes Free

Can see

2018/01/18  12:17           395,164 amupdate.dat
Is the latest update time.


This can be done on the Saltstack server

Salt ' Tiberx ' cmd.run ' cd C:\Program Files\Common Files\mcafee\engine\amcoreupdater&&dir ' | grep "Amupdate.dat"


Return:

  2018/01/18  12:17           395,164 amupdate.dat
If McAfee is not installed, return execution failed

Error:minions returned with Non-zero exit code



Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.