[clamav-users] FW: How to programmatically determine if I have latest clamd software
Richard
inbound-lists-clamav at listmail.innovate.net
Thu Jun 11 01:38:45 UTC 2020
> Date: Wednesday, June 10, 2020 19:42:18 -0500
> From: Cliff via clamav-users <clamav-users at lists.clamav.net>
>
> I also have a similar cron script that updates clam daily.
>
> What I’m looking for is a way to double check in case the script
> encounters a problem and cannot notify.
>
> Unfortunately, your method using freshclam takes about 20 seconds,
> which is too long for a dashboard.
>
> What I am looking for is a very quick way to determine if clam
> software is out of date.
>
The current version can be gotten from the dns txt record of
current.cvd.clamav.net
The command:
dig +short current.cvd.clamav.net txt
will return the one line with that information, which (after a little
parsing) you can then compare with the version that your machines are
running.
More information about the clamav-users
mailing list