[Fusioninventory-devel] Pass CRON setings without changing OCS structure
Gonéri Le Bouder
goneri at rulezlan.org
Thu Sep 2 11:58:15 UTC 2010
2010/9/2 David Touzeau <david at touzeau.eu>:
Hi David,
Welcome on the list.
> Is it possible for fusioninventory agent to understand a new ACTION type
> like "SCHEDULE" with a PATH Value that specify a CRON entry eg:
>
> ACTION="SCHEDULE" PATH="{10,20,30,40 * * * *} c:\my\exe /s"
Yes, that's possible. Today an OCS Inventory info file look like that:
<DOWNLOAD ID="1274994722" PRI="5" ACT="STORE"
DIGEST="ae9fc629ee6e6a5c219c7341ecf53cd2" PROTO="HTTP" FRAGS="2"
DIGEST_ALGO="MD5" DIGEST_ENCODE="Hexa" PATH="c:/tmp" NAME=""
COMMAND="" NOTIFY_USER="0" NOTIFY_TEXT="" NOTIFY_COUNTDOWN=""
NOTIFY_CAN_ABORT="0" NOTIFY_CAN_DELAY="0" NEED_DONE_ACTION="0"
NEED_DONE_ACTION_TEXT="" GARDEFOU="rien" />
I think it's simpler to add a new key SCHEDULE=$timestamp to this XML.
So, for example if SCHEDULE=NOW+13 and STORE=/tmp/root, we will
extract and move the files in /tmp/root in 13 seconds.
FYI, this module is maintained there:
http://github.com/fusinv/fusioninventory-agent-task-ocsdeploy
Best regards,
--
Gonéri Le Bouder
More information about the Fusioninventory-devel
mailing list