# Verify that inventory data is being properly uploaded to Medulla

<div id="bkmrk-v%C3%A9rifications-%C3%A0-effe">**Checks to perform on the client workstation (affected machine)**   
</div><div id="bkmrk-1%29-v%C3%A9rifier-si-l%E2%80%99inv">**1) Verify that the inventory has been generated**  
Please run:</div>```
dir c:\progra~1\medulla\tmp\inventory.txt*
```

<div id="bkmrk-si-aucun-fichier%C2%A0inv">If no**inventory.txt**or**inventory.txt.back**file is present, this indicates a problem with inventory generation.  
  
</div><div id="bkmrk-2%29-forcer-la-g%C3%A9n%C3%A9rat">**2) Force the inventory to generate**  
If the inventory is not generated automatically, please run:</div>```
"c:\progra~1\GLPI-Agent\glpi-agent.bat" --config=none --scan-profiles --backend-collect-timeout=120 --local="c:\progra~1\Medulla\tmp\inventory.txt"
```

<div id="bkmrk-cette-commande-retou">This command will return an explicit error if the generation fails.  
=&gt; Either you figure out how to resolve the error, or you send the command output to<support@medulla-tech.io>  
  
</div><div id="bkmrk-v%C3%A9rifications-%C3%A0-effe-1">**Checks to perform on the Medulla server**   
</div><div id="bkmrk-3%29-v%C3%A9rifier-l%E2%80%99url-de">**3) Verify the URL for transmitting the inventory to GLPI**  
Please run:</div>```
curl $(crudini --get /etc/pulse-xmpp-agent-substitute/agent_master_substitute_inv.ini.local glpi url_to_forward)
```

<div id="bkmrk-une-erreur-ici-indiq">An error here would indicate a configuration issue or a problem with the URL’s accessibility.  
=&gt; Either you figure out how to resolve the error, or you send the command output to<support@medulla-tech.io>  
  
</div><div id="bkmrk-4%29-v%C3%A9rifier-si-la-ma">**4) Check if the machine is properly registered in GLPI**  
Please run the following (replacing the name if necessary):</div>```
mysql --defaults-group-suffix=itsm glpi -e "SELECT * FROM glpi_computers WHERE name='CLIENT_WORKSTATION_NAME'\G"
```

<div id="bkmrk-si-la-requ%C3%AAte-ne-ret">If the query returns no results, the machine has not been registered in GLPI.  
=&gt; From Medulla, force an inventory request from the Computers view &gt; Quick Action &gt; Run Inventory for the machine in question  
  
</div><div id="bkmrk-5%29-v%C3%A9rifier-l%E2%80%99%C3%A9tat-d">**5) Check the machine’s status in the Medulla database**  
Please run:</div>```
mysql --defaults-group-suffix=medulla xmppmaster -e "SELECT jid, hostname, id_glpi, enabled FROM machines WHERE hostname='CLIENT_WORKSTATION_NAME'\G"
```

<div id="bkmrk-si-le-champ%C2%A0id_glpi%C2%A0">If the**id\_glpi**field is empty, this means that the association between Medulla and the GLPI inventory could not be established.  
=&gt; From Medulla, force a re-registration of the machine via Computers &gt; Quick Action &gt; Custom command &gt; Reconfigure machine agent  
  
=&gt; If the issue is still not resolved, send the output of all commands to<support@medulla-tech.io></div>