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-06-05 20:23:23

richard.coelho
Member
Registered: 2023-05-05
Posts: 28

(SOLVED)Try to update a computer by GLPI Agent that was manually added

Hi everyone,

I am trying to update a computer registry that was manually added before.
Like, I register a computer manually without user or anything, just with the specs of it.

When that computer connect on the network and the agent is installed,
I want to update automatically the same registry with new infos (who is the user and etc.)

I tried to make a rule that:
"If the serial number already exists: Try to relationate it it's possible"

Maybe I'm making the wrong rule for that, but I'm kinda rookie on GLPI, so I don't know where I go

Thanks in advance smile

Last edited by richard.coelho (2023-07-12 19:20:48)


A newbie trying to learn GLPI!
GLPI 10.0.3

Offline

#2 2023-06-06 08:52:52

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

Re: (SOLVED)Try to update a computer by GLPI Agent that was manually added

Hello richard.coelho

the default rules should still handle the case where the S/N you entered is found on the computer.

But did you tried to import the computer inventory from GLPI Agent ? You didn't tell if you tried to import it. Anyway, be sure to remove the rule you created to avoid any mistake as, like I said, the default rules should make the job.

If you imported the inventory and it didn't update the expected computer, you should still see a new computer for the automatically imported one. If not, be sure to have enabled inventory support as it is no more enabled by default.


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

Offline

#3 2023-06-06 15:31:23

richard.coelho
Member
Registered: 2023-05-05
Posts: 28

Re: (SOLVED)Try to update a computer by GLPI Agent that was manually added

Thanks for the answer gbougard!

I tried to do it, but, it is showing up as another computer and not updating the existing one.
The only information that is the same in both is the S/N.

Like:

PC-1234  ------ S/N 32453 (Manually added)
PC-TI-45  ------ S/N 32453 (Agent added)


A newbie trying to learn GLPI!
GLPI 10.0.3

Offline

#4 2023-06-06 15:45:59

WebGreg
Member
Registered: 2020-02-27
Posts: 740

Re: (SOLVED)Try to update a computer by GLPI Agent that was manually added

Why is the name field different? GLPI agent must have read the actual one - why manually added another one?

The name field is ocked in this manually added object?


Do you have a clean install or did you change anything? front/ruleimportasset.php

Last edited by WebGreg (2023-06-06 15:54:27)


--
GLPI 10.0.17
GLPI-Inventory 1.4.0
Ubuntu Server 20.04 LTS

Offline

#5 2023-06-06 18:08:23

richard.coelho
Member
Registered: 2023-05-05
Posts: 28

Re: (SOLVED)Try to update a computer by GLPI Agent that was manually added

Sorry, I put an existing rule that does what I want above the others and it worked, thanks everyone!


A newbie trying to learn GLPI!
GLPI 10.0.3

Offline

Board footer

Powered by FluxBB