Symantec Access Management

  • 1.  XPSSweeper Log Email

    Posted Jan 15, 2016 03:50 PM

    Does anyone have a script that either (a) emails them the XPSSweeper Log after each scheduled sweep, or (b) a script that checks the most recent log for a WARNING or ERROR and sends an email alert?



  • 2.  Re: XPSSweeper Log Email

    Posted Jan 18, 2016 07:05 AM

    This is an off topic discussion not really SSO issue.

    This thread could be useful for what you are looking:


    https://bbs.archlinux.org/viewtopic.php?id=130762



  • 3.  Re: XPSSweeper Log Email
    Best Answer

    Posted Jan 28, 2016 01:54 PM

    Use this PowerShell Script and run it as a Scheduled Task.

     

    cd "%PROGRAM FILES%\CA\siteminder\log"

    $log = Get-ChildItem XPSSweep* | Where{$_.LastWriteTime -gt (Get-Date).AddDays(-1)}

    Send-MailMessage -To smadmins@ca.com -Subject "[prod]XPS Sweeper Daily Report" -Body "Please check for [WARN] or [ERROR] messages in the policy store." -SmtpServer smtp.ca.com -From XPSSweeper@ca.com -Attachments $log



  • 4.  Re: XPSSweeper Log Email

    Posted Jan 28, 2016 11:27 PM

    Thank you for sharing.