[Fusioninventory-devel] Task:Deploy Questions

Kevin Roy kiniou at gmail.com
Fri Mar 22 09:14:38 UTC 2013


Hi Mario,

On 21 March 2013 20:38, Mario Gzuk <mariogzuk at technikz.de> wrote:
> Am 21.03.2013 18:12, schrieb Kevin Roy:
>> That's weird because as far as i can remember, I've already made package
>> with
>> only one command in GLPI but i can't remember what are the requirements.
>> I should check that ...
>
>
> That yould be nice... I only need an example how I can do that...

I think the following json snippet should do the trick but i can't test it
right now :

###snip###
{
    "jobs": {
        "checks": [

        ],
        "associatedFiles": [

        ],
        "actions": [
            {
                "cmd": {
                    "exec": "dir",
                    "retChecks": [
                        {
                            "type": "okCode",
                            "value": [
                                "0"
                            ]
                        }
                    ]
                }
            }
        ]
    },
    "associatedFiles": [

    ]
}
###snip###

>>> - are the files which are downloaded via associatedFiles automaticly
>>> deleted
>>> after the jobs are done or should this be specified on the jobs:delete
>>> list?
>>
>> They normally are deleted whenever the job is completed or in error.
>> The only exception is when P2P is enabled : the dowloaded files marked
>> as P2P are kept until the retention period.
>>
>> Cheers,
>>
>> -- Kevin Roy
>>
>
> Ok, the files which will be executed (e.g. test.bat) will be deleted that
is
> true. But the filecontent is also available at
> .../var/bla/deploy/fileparts/private/1364129200/a/6/1ea1bc
> This files also should be deleted because (for my situation) there might
be
> sensetive data inside, and so it would be nessesary that this files get
> deleted to... Is this a feature request?

The fileparts should be kept by the agent only when a file is marked with
P2P:

###snip###
{
            "name": "Firefox Setup 11.0.exe",
            "p2p": 1,
            "mimetype": "application\/x-ms-dos-executable",
            "filesize": 16287888,
            "p2p-retention-duration": "365",
            "uncompress": 0,
            "multiparts": [
###snip###

> And a last question. I use the wmi to determine the language of the
> operating system in windows:
> http://uranos.svn.sourceforge.net/viewvc/uranos/z/bin/getlang.js
> When I run this normaly I get "en" or "de" -> but when it is executed
> through the deploy task is says that the language is "C"... What the
> (perl)... ;) How can I correct this?

I'm not sure I can help you on this as i'm not aware of WMI.
All I can say is that the agent execute a command inside a temporary batch
and "C" may be the default language set when executing perl on windows.
This needs confirmation with some Perl expert (like Goneri or Guillaume).

Cheers,

-- Kevin Roy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/fusioninventory-devel/attachments/20130322/71e83930/attachment.html>


More information about the Fusioninventory-devel mailing list