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 2013-03-26 23:24:46

uk6999
Member
Registered: 2013-03-26
Posts: 9

Forcing inventory checks without overwriting existing entries

Right now I am forcing an inventory check using the fusion-agent on a client which works but creates another server entry under inventory -> computers in glpi.  This would be fine as I could delete the old server entry however I have made some manual additions to the comments field, etc. that I dont want to lose or redo everytime I want to update the inventory on a server.

Can I either hard set a comment section, etc. on the client so that field gets populated when an inventory check is ran?  Or is there another way people are making this work that I am un-aware of.

Thanks!

Offline

#2 2013-03-26 23:44:21

ddurieux
Plugins Dev
From: Propières, France
Registered: 2005-06-17
Posts: 7,521

Re: Forcing inventory checks without overwriting existing entries

1/ if it create new computer insteal update existing, you may update your import devices rules.

2/ fter have computer created by FusionInventory, if you modify a field manually, this field will be locked and automatic inventory will not update it

Offline

#3 2013-03-26 23:58:48

uk6999
Member
Registered: 2013-03-26
Posts: 9

Re: Forcing inventory checks without overwriting existing entries

That sounds exactly what I am looking for.  I've been in the plugin section but am unable to find how to set the import rules.

Offline

#4 2013-03-27 00:23:35

uk6999
Member
Registered: 2013-03-26
Posts: 9

Re: Forcing inventory checks without overwriting existing entries

Little more on this.  I go to GLPI-> Plugins -> Fusion -> Equipment import.  However there are no pre-existing rules defined.

Last edited by uk6999 (2013-03-27 00:29:04)

Offline

#5 2013-03-27 00:40:55

ddurieux
Plugins Dev
From: Propières, France
Registered: 2005-06-17
Posts: 7,521

Re: Forcing inventory checks without overwriting existing entries

Oh strange, what version of plugin FusionInventory you have?

Offline

#6 2013-03-27 00:44:31

uk6999
Member
Registered: 2013-03-26
Posts: 9

Re: Forcing inventory checks without overwriting existing entries

FusionInventory Agent (2.1.14)

Red-Hat 6.3

Offline

#7 2013-03-27 00:48:25

uk6999
Member
Registered: 2013-03-26
Posts: 9

Re: Forcing inventory checks without overwriting existing entries

I just got it to work by adding my own rule for one server.  That is a ton of rules to add but hey if it works and is one time only I guess I can live with it.

I did ( Assets to Import : Name ) Condition: Already exists in GLPI
Actions: Fusion Inventory -> Link if possible otherwise create device.

After I re-ran a forced inventory check the server showed a current time stamp update and retained the previous comments I had entered.  I still have some more work to do on this to make sure it works as intended.  I did try setting a couple of global "catch all" conditions in the Equipment Import section but it did not work.

Last edited by uk6999 (2013-03-27 00:48:57)

Offline

#8 2013-03-27 06:04:00

ddurieux
Plugins Dev
From: Propières, France
Registered: 2005-06-17
Posts: 7,521

Re: Forcing inventory checks without overwriting existing entries

add these criteria in your rule :

* itemtype is computer
* name exist

Offline

#9 2013-03-27 17:50:40

uk6999
Member
Registered: 2013-03-26
Posts: 9

Re: Forcing inventory checks without overwriting existing entries

That doesnt seem to work. 

Criteria:
Criteria:  Assets to import: Item Type
Condition: Is
Reason: Computer

Actions:
Fields: FusionInventory link
Action type: Assign
Value: Link if possible, else create device

Offline

#10 2013-03-27 17:59:42

uk6999
Member
Registered: 2013-03-26
Posts: 9

Re: Forcing inventory checks without overwriting existing entries

This works.  At least the few times I have tried it.

Criteria:
Criteria: Assets to import: Name
Condition: Already present in GLPI
Reason: Yes

Actions:
Fields: FusionInventory link
Action type: Assign
Value: Link if possible, else create device

This matches on all computers.  Think I will stick with that if it continues to work.   Thank you for the direction in getting this fixed ddurieux and all the speedy replies.

Offline

Board footer

Powered by FluxBB