You are not logged in.

Announcement

 Téléchargez la dernière version stable de GLPI      -     Et vous, que pouvez vous faire pour le projet GLPI ? :  Contribuer
 Download last stable version of GLPI                      -     What can you do for GLPI ? :  Contribute

#1 2023-04-17 15:23:26

k_r
Member
Registered: 2023-01-31
Posts: 2

GLPI Inventory adds new computer instead updating it

I have two computers in the database that GLPI doesn't update in its inventory and instead creates a new entry every time. I have created additional rules, but none of them causes an update to the previous day's entry. How can I check why exactly these two computers are not updating?

<?xml version="1.0"?>
<rules>
	<rule>
		<entities_id>spis</entities_id>
		<sub_type>RuleImportAsset</sub_type>
		<ranking>9</ranking>
		<name>Computer constraint (name)</name>
		<description/>
		<match>AND</match>
		<is_active>1</is_active>
		<comment/>
		<is_recursive>0</is_recursive>
		<uuid/>
		<condition>0</condition>
		<date_creation>2022-08-23 08:29:11</date_creation>
		<rulecriteria>
			<criteria>itemtype</criteria>
			<condition>0</condition>
			<pattern>Computer</pattern>
		</rulecriteria>
		<rulecriteria>
			<criteria>name</criteria>
			<condition>9</condition>
			<pattern>1</pattern>
		</rulecriteria>
		<ruleaction>
			<action_type>assign</action_type>
			<field>_inventory</field>
			<value>2</value>
		</ruleaction>
	</rule>
	<rule>
		<entities_id>spis</entities_id>
		<sub_type>RuleImportAsset</sub_type>
		<ranking>10</ranking>
		<name>Computer update (by serial + uuid)</name>
		<description/>
		<match>AND</match>
		<is_active>1</is_active>
		<comment/>
		<is_recursive>0</is_recursive>
		<uuid/>
		<condition>0</condition>
		<date_creation>2022-08-23 08:29:11</date_creation>
		<rulecriteria>
			<criteria>itemtype</criteria>
			<condition>0</condition>
			<pattern>Computer</pattern>
		</rulecriteria>
		<rulecriteria>
			<criteria>serial</criteria>
			<condition>10</condition>
			<pattern>1</pattern>
		</rulecriteria>
		<rulecriteria>
			<criteria>serial</criteria>
			<condition>8</condition>
			<pattern>1</pattern>
		</rulecriteria>
		<rulecriteria>
			<criteria>uuid</criteria>
			<condition>10</condition>
			<pattern>1</pattern>
		</rulecriteria>
		<rulecriteria>
			<criteria>uuid</criteria>
			<condition>8</condition>
			<pattern>1</pattern>
		</rulecriteria>
		<ruleaction>
			<action_type>assign</action_type>
			<field>_inventory</field>
			<value>0</value>
		</ruleaction>
	</rule>
	<rule>
		<entities_id>spis</entities_id>
		<sub_type>RuleImportAsset</sub_type>
		<ranking>17</ranking>
		<name>Computer import (by serial + uuid)</name>
		<description/>
		<match>AND</match>
		<is_active>1</is_active>
		<comment/>
		<is_recursive>0</is_recursive>
		<uuid/>
		<condition>0</condition>
		<date_creation>2022-08-23 08:29:11</date_creation>
		<rulecriteria>
			<criteria>itemtype</criteria>
			<condition>0</condition>
			<pattern>Computer</pattern>
		</rulecriteria>
		<rulecriteria>
			<criteria>uuid</criteria>
			<condition>8</condition>
			<pattern>1</pattern>
		</rulecriteria>
		<rulecriteria>
			<criteria>serial</criteria>
			<condition>8</condition>
			<pattern>1</pattern>
		</rulecriteria>
		<ruleaction>
			<action_type>assign</action_type>
			<field>_inventory</field>
			<value>0</value>
		</ruleaction>
	</rule>
	<rule>
		<entities_id>spis</entities_id>
		<sub_type>RuleImportAsset</sub_type>
		<ranking>11</ranking>
		<name>Computer update (by serial)</name>
		<description/>
		<match>AND</match>
		<is_active>1</is_active>
		<comment/>
		<is_recursive>0</is_recursive>
		<uuid/>
		<condition>0</condition>
		<date_creation>2022-08-23 08:29:11</date_creation>
		<rulecriteria>
			<criteria>itemtype</criteria>
			<condition>0</condition>
			<pattern>Computer</pattern>
		</rulecriteria>
		<rulecriteria>
			<criteria>serial</criteria>
			<condition>10</condition>
			<pattern>1</pattern>
		</rulecriteria>
		<rulecriteria>
			<criteria>serial</criteria>
			<condition>8</condition>
			<pattern>1</pattern>
		</rulecriteria>
		<ruleaction>
			<action_type>assign</action_type>
			<field>_inventory</field>
			<value>0</value>
		</ruleaction>
	</rule>
	<rule>
		<entities_id>spis</entities_id>
		<sub_type>RuleImportAsset</sub_type>
		<ranking>12</ranking>
		<name>Computer update (by uuid)</name>
		<description/>
		<match>AND</match>
		<is_active>1</is_active>
		<comment/>
		<is_recursive>0</is_recursive>
		<uuid/>
		<condition>0</condition>
		<date_creation>2022-08-23 08:29:11</date_creation>
		<rulecriteria>
			<criteria>itemtype</criteria>
			<condition>0</condition>
			<pattern>Computer</pattern>
		</rulecriteria>
		<rulecriteria>
			<criteria>uuid</criteria>
			<condition>10</condition>
			<pattern>1</pattern>
		</rulecriteria>
		<rulecriteria>
			<criteria>uuid</criteria>
			<condition>8</condition>
			<pattern>1</pattern>
		</rulecriteria>
		<ruleaction>
			<action_type>assign</action_type>
			<field>_inventory</field>
			<value>0</value>
		</ruleaction>
	</rule>
	<rule>
		<entities_id>spis</entities_id>
		<sub_type>RuleImportAsset</sub_type>
		<ranking>14</ranking>
		<name>Computer update (by mac)</name>
		<description/>
		<match>AND</match>
		<is_active>1</is_active>
		<comment/>
		<is_recursive>0</is_recursive>
		<uuid/>
		<condition>0</condition>
		<date_creation>2022-08-23 08:29:11</date_creation>
		<rulecriteria>
			<criteria>itemtype</criteria>
			<condition>0</condition>
			<pattern>Computer</pattern>
		</rulecriteria>
		<rulecriteria>
			<criteria>mac</criteria>
			<condition>10</condition>
			<pattern>1</pattern>
		</rulecriteria>
		<rulecriteria>
			<criteria>mac</criteria>
			<condition>8</condition>
			<pattern>1</pattern>
		</rulecriteria>
		<ruleaction>
			<action_type>assign</action_type>
			<field>_inventory</field>
			<value>0</value>
		</ruleaction>
	</rule>
	<rule>
		<entities_id>spis</entities_id>
		<sub_type>RuleImportAsset</sub_type>
		<ranking>18</ranking>
		<name>Computer import (by serial)</name>
		<description/>
		<match>AND</match>
		<is_active>1</is_active>
		<comment/>
		<is_recursive>0</is_recursive>
		<uuid/>
		<condition>0</condition>
		<date_creation>2022-08-23 08:29:11</date_creation>
		<rulecriteria>
			<criteria>itemtype</criteria>
			<condition>0</condition>
			<pattern>Computer</pattern>
		</rulecriteria>
		<rulecriteria>
			<criteria>serial</criteria>
			<condition>8</condition>
			<pattern>1</pattern>
		</rulecriteria>
		<ruleaction>
			<action_type>assign</action_type>
			<field>_inventory</field>
			<value>0</value>
		</ruleaction>
	</rule>
	<rule>
		<entities_id>spis</entities_id>
		<sub_type>RuleImportAsset</sub_type>
		<ranking>19</ranking>
		<name>Computer import (by uuid)</name>
		<description/>
		<match>AND</match>
		<is_active>1</is_active>
		<comment/>
		<is_recursive>0</is_recursive>
		<uuid/>
		<condition>0</condition>
		<date_creation>2022-08-23 08:29:11</date_creation>
		<rulecriteria>
			<criteria>itemtype</criteria>
			<condition>0</condition>
			<pattern>Computer</pattern>
		</rulecriteria>
		<rulecriteria>
			<criteria>uuid</criteria>
			<condition>8</condition>
			<pattern>1</pattern>
		</rulecriteria>
		<ruleaction>
			<action_type>assign</action_type>
			<field>_inventory</field>
			<value>0</value>
		</ruleaction>
	</rule>
	<rule>
		<entities_id>spis</entities_id>
		<sub_type>RuleImportAsset</sub_type>
		<ranking>21</ranking>
		<name>Computer import (by mac)</name>
		<description/>
		<match>AND</match>
		<is_active>1</is_active>
		<comment/>
		<is_recursive>0</is_recursive>
		<uuid/>
		<condition>0</condition>
		<date_creation>2022-08-23 08:29:11</date_creation>
		<rulecriteria>
			<criteria>itemtype</criteria>
			<condition>0</condition>
			<pattern>Computer</pattern>
		</rulecriteria>
		<rulecriteria>
			<criteria>mac</criteria>
			<condition>8</condition>
			<pattern>1</pattern>
		</rulecriteria>
		<ruleaction>
			<action_type>assign</action_type>
			<field>_inventory</field>
			<value>0</value>
		</ruleaction>
	</rule>
	<rule>
		<entities_id>spis</entities_id>
		<sub_type>RuleImportAsset</sub_type>
		<ranking>23</ranking>
		<name>Computer import (by name)</name>
		<description/>
		<match>AND</match>
		<is_active>0</is_active>
		<comment/>
		<is_recursive>0</is_recursive>
		<uuid/>
		<condition>0</condition>
		<date_creation>2022-08-23 08:29:11</date_creation>
		<rulecriteria>
			<criteria>itemtype</criteria>
			<condition>0</condition>
			<pattern>Computer</pattern>
		</rulecriteria>
		<rulecriteria>
			<criteria>name</criteria>
			<condition>8</condition>
			<pattern>1</pattern>
		</rulecriteria>
		<ruleaction>
			<action_type>assign</action_type>
			<field>_inventory</field>
			<value>0</value>
		</ruleaction>
	</rule>
	<rule>
		<entities_id>spis</entities_id>
		<sub_type>RuleImportAsset</sub_type>
		<ranking>24</ranking>
		<name>Computer import denied</name>
		<description/>
		<match>AND</match>
		<is_active>1</is_active>
		<comment/>
		<is_recursive>0</is_recursive>
		<uuid/>
		<condition>0</condition>
		<date_creation>2022-08-23 08:29:11</date_creation>
		<rulecriteria>
			<criteria>itemtype</criteria>
			<condition>0</condition>
			<pattern>Computer</pattern>
		</rulecriteria>
		<ruleaction>
			<action_type>assign</action_type>
			<field>_inventory</field>
			<value>2</value>
		</ruleaction>
	</rule>
	<rule>
		<entities_id>spis</entities_id>
		<sub_type>RuleImportAsset</sub_type>
		<ranking>22</ranking>
		<name>Computer import (device ID)</name>
		<description/>
		<match>AND</match>
		<is_active>1</is_active>
		<comment/>
		<is_recursive>0</is_recursive>
		<uuid>29a91467-cf03f8bd-6304747860ad93.69934227</uuid>
		<condition>0</condition>
		<date_creation>2022-08-23 08:32:24</date_creation>
		<rulecriteria>
			<criteria>itemtype</criteria>
			<condition>0</condition>
			<pattern>Computer</pattern>
		</rulecriteria>
		<rulecriteria>
			<criteria>device_id</criteria>
			<condition>8</condition>
			<pattern>1</pattern>
		</rulecriteria>
		<ruleaction>
			<action_type>assign</action_type>
			<field>_inventory</field>
			<value>0</value>
		</ruleaction>
	</rule>
	<rule>
		<entities_id>spis</entities_id>
		<sub_type>RuleImportAsset</sub_type>
		<ranking>15</ranking>
		<name>Computer update (device ID)</name>
		<description/>
		<match>AND</match>
		<is_active>1</is_active>
		<comment/>
		<is_recursive>0</is_recursive>
		<uuid>29a91467-cf03f8bd-6304752e5283c2.85439916</uuid>
		<condition>0</condition>
		<date_creation>2022-08-23 08:35:26</date_creation>
		<rulecriteria>
			<criteria>itemtype</criteria>
			<condition>0</condition>
			<pattern>Computer</pattern>
		</rulecriteria>
		<rulecriteria>
			<criteria>device_id</criteria>
			<condition>10</condition>
			<pattern>1</pattern>
		</rulecriteria>
		<rulecriteria>
			<criteria>device_id</criteria>
			<condition>8</condition>
			<pattern>1</pattern>
		</rulecriteria>
		<ruleaction>
			<action_type>assign</action_type>
			<field>_inventory</field>
			<value>0</value>
		</ruleaction>
	</rule>
	<rule>
		<entities_id>spis</entities_id>
		<sub_type>RuleImportAsset</sub_type>
		<ranking>13</ranking>
		<name>Computer update (TAG)</name>
		<description/>
		<match>AND</match>
		<is_active>1</is_active>
		<comment/>
		<is_recursive>0</is_recursive>
		<uuid>29a91467-cf03f8bd-63047576b12b70.18297755</uuid>
		<condition>0</condition>
		<date_creation>2022-08-23 08:36:38</date_creation>
		<rulecriteria>
			<criteria>itemtype</criteria>
			<condition>0</condition>
			<pattern>Computer</pattern>
		</rulecriteria>
		<rulecriteria>
			<criteria>tag</criteria>
			<condition>10</condition>
			<pattern>1</pattern>
		</rulecriteria>
		<rulecriteria>
			<criteria>tag</criteria>
			<condition>8</condition>
			<pattern>1</pattern>
		</rulecriteria>
		<ruleaction>
			<action_type>assign</action_type>
			<field>_inventory</field>
			<value>0</value>
		</ruleaction>
	</rule>
	<rule>
		<entities_id>spis</entities_id>
		<sub_type>RuleImportAsset</sub_type>
		<ranking>20</ranking>
		<name>Computer import (TAG)</name>
		<description/>
		<match>AND</match>
		<is_active>1</is_active>
		<comment/>
		<is_recursive>0</is_recursive>
		<uuid>29a91467-cf03f8bd-630475c01309b0.34770452</uuid>
		<condition>0</condition>
		<date_creation>2022-08-23 08:37:52</date_creation>
		<rulecriteria>
			<criteria>itemtype</criteria>
			<condition>0</condition>
			<pattern>Computer</pattern>
		</rulecriteria>
		<rulecriteria>
			<criteria>tag</criteria>
			<condition>8</condition>
			<pattern>1</pattern>
		</rulecriteria>
		<ruleaction>
			<action_type>assign</action_type>
			<field>_inventory</field>
			<value>0</value>
		</ruleaction>
	</rule>
	<rule>
		<entities_id>spis</entities_id>
		<sub_type>RuleImportAsset</sub_type>
		<ranking>65</ranking>
		<name>Computer update (TAG) (copy)</name>
		<description/>
		<match>AND</match>
		<is_active>1</is_active>
		<comment/>
		<is_recursive>0</is_recursive>
		<uuid>1ed2ad56-cf03f8bd-643009b97fee25.83533922</uuid>
		<condition>0</condition>
		<date_creation>2023-04-07 14:16:57</date_creation>
		<rulecriteria>
			<criteria>itemtype</criteria>
			<condition>0</condition>
			<pattern>Computer</pattern>
		</rulecriteria>
		<rulecriteria>
			<criteria>model</criteria>
			<condition>10</condition>
			<pattern>1</pattern>
		</rulecriteria>
		<rulecriteria>
			<criteria>model</criteria>
			<condition>8</condition>
			<pattern>1</pattern>
		</rulecriteria>
		<rulecriteria>
			<criteria>name</criteria>
			<condition>10</condition>
			<pattern>1</pattern>
		</rulecriteria>
		<rulecriteria>
			<criteria>name</criteria>
			<condition>8</condition>
			<pattern>1</pattern>
		</rulecriteria>
		<rulecriteria>
			<criteria>mskey</criteria>
			<condition>10</condition>
			<pattern>1</pattern>
		</rulecriteria>
		<rulecriteria>
			<criteria>mskey</criteria>
			<condition>8</condition>
			<pattern>1</pattern>
		</rulecriteria>
		<ruleaction>
			<action_type>assign</action_type>
			<field>_inventory</field>
			<value>0</value>
		</ruleaction>
	</rule>
	<rule>
		<entities_id>spis</entities_id>
		<sub_type>RuleImportAsset</sub_type>
		<ranking>66</ranking>
		<name>Computer import (TAG) (copy)</name>
		<description/>
		<match>AND</match>
		<is_active>0</is_active>
		<comment/>
		<is_recursive>0</is_recursive>
		<uuid>1ed2ad56-cf03f8bd-643009b984d129.54340448</uuid>
		<condition>0</condition>
		<date_creation>2023-04-07 14:16:57</date_creation>
		<rulecriteria>
			<criteria>itemtype</criteria>
			<condition>0</condition>
			<pattern>Computer</pattern>
		</rulecriteria>
		<rulecriteria>
			<criteria>tag</criteria>
			<condition>8</condition>
			<pattern>1</pattern>
		</rulecriteria>
		<ruleaction>
			<action_type>assign</action_type>
			<field>_inventory</field>
			<value>0</value>
		</ruleaction>
	</rule>
</rules>

Offline

#2 2023-04-18 13:19:58

gbougard
Moderator
From: Montpellier, France
Registered: 2021-07-21
Posts: 537
Website

Re: GLPI Inventory adds new computer instead updating it

Hi k_r,

are you in a process you're first manually creating a computer with just the serial and then see a new computer which has S/N + UUID ? If yes, just try to put the "Computer import (by serial + uuid)" just after the "Computer update (by serial)".


GLPI-Agent developer from Teclib' and GLPI-Network team
Previously FusionInventory-Agent maintainer

Offline

Board footer

Powered by FluxBB