• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Run command via FI Task: Undefined subroutine &FusionInventory::Age...
#1
I'my trying to make FI run a single Batch command on some computers and I got the following error on some:

Quote:Undefined subroutine &FusionInventory::Agent::Tools::Win32::runCommand

Command is:
Code:
REG add "HKLM\SOFTWARE\Policies\Microsoft\Windows NT\DNSClient" /v RegistrationRefreshInterval /t REG_DWORD /d 1800 /f

Failed computer is using Windows 7 and agent v2.3.8.

Full job-run details:
Quote:53a01b79e3b8f someworkstation007-2014-06-03-00-47-03 2014-06-17 12:46 Error

Process number : 207
Date Status Comments
Agent : someworkstation007-2014-06-03-00-47-03
Definition(1) : Intervalle dactualisation de linscription DNS (Packages)

Steps :
2014-06-17 12:42 Prepared
2014-06-17 12:46 Running ChecksConfusedtarting
2014-06-17 12:46 Running Checks:all checks are ok
2014-06-17 12:46 Running Files download:downloading files
2014-06-17 12:46 Running Files downloadConfuseduccess
2014-06-17 12:46 Running Files preparationConfuseduccess
2014-06-17 12:46 Running Undefined subroutine &FusionInventory::Agent::Tools::Win32::runCommand called at ../agent/FusionInventory/Agent/Task/Deploy/ActionProcessor/Action/Cmd.pm line 68.
2014-06-17 12:46 Error Actions:action #1 processing failure

Agent's log contains:
Quote:[Tue Jun 17 12:46:40 2014][error] Failed to load FusionInventory::Agent::Tools::Win32: Can't locate FusionInventory/Agent/Tools/Win32.pm in @INC (you may need to install the FusionInventory::Agent::Tools::Win32 module) (@INC contains: ../agent C:/Program Files/FusionInventory-Agent/perl/site/lib C:/Program Files/FusionInventory-Agent/perl/vendor/lib C:/Program Files/FusionInventory-Agent/perl/lib .) at ../agent/FusionInventory/Agent/Task/Deploy/DiskFree.pm line 31.
[Tue Jun 17 12:46:40 2014][error] cannot chdir to C:/Program Files/FusionInventory-Agent/var/https..__glpi.example.com_plugins_fusioninventory_/deploy/workdir/53a01b79e3b8f from C:\Program Files\FusionInventory-Agent\var\https..__glpi.example.com_plugins_fusioninventory_\deploy/workdir: No such file or directory, aborting. at ../agent/FusionInventory/Agent/Task/Deploy/Datastore.pm line 47.
[Tue Jun 17 12:46:41 2014][info] Got 0 VMware host(s) to inventory.
[Tue Jun 17 12:46:41 2014][info] task WakeOnLan execution not requested
[Tue Jun 17 12:46:41 2014][info] task NetInventory execution not requested
[Tue Jun 17 12:46:41 2014][info] task NetDiscovery execution not requested
[Tue Jun 17 12:46:41 2014][error] no inventory module found at ../agent/FusionInventory/Agent/Task/Inventory.pm line 149.

Folder "C:/Program Files/FusionInventory-Agent/var/https..__glpi.example.com_plugins_fusioninventory_/deploy/workdir" does exists but is empty (at least when I checked after the error was reported): no "53a01b79e3b8f" subdir.
  Reply
#2
Not sure you can because agent run is specific session: system
Co-leader, official developper
DCS official PARTNER: dcs.glpi@dcsit-group.com
  Reply
#3
You're not sure I can what? Run the
Code:
REG add "HKLM\SOFTWARE\Policies\Microsoft\Windows NT\DNSClient" /v RegistrationRefreshInterval /t REG_DWORD /d 1800 /f
command via FI?

Task did succeeded on some computers ("job successfully completed") and I've manually checked: registry key was correctly set.
  Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)