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 2008-12-16 11:56:03

dhiraj
Member
From: INDIA
Registered: 2007-12-06
Posts: 77

Update OCS Info from GLPI

Dear All
I have been successfully running GLPI and OCS for the past few months. I am faced with a new requirement from my helpdesk team. They wish to update PC information in GLPI and the same should update at OCS end. This is so as it is a pain to open ocs reports each time and update data there, moreover the data updated in OCS gets reflected after 10 hours or so unless we manually update from OCS link.

Is such a thing possible ? I think it should be as it might be related to database priviledges.

Any input would be helpful.

Thanks and Regards

Dhiraj


OS : Fedora Core 7
GLPI : 0.7             OCS-NG : 4100
Web Server : Apache 2.2.3 DB: MySql 5.0.27   
Langage : PHP 5.2.4  Syslog-NG: 2.0.5

Offline

#2 2009-01-09 01:08:22

MoYo
GLPI - Lead
From: Poitiers
Registered: 2004-09-13
Posts: 14,513
Website

Re: Update OCS Info from GLPI

GLPI do not update informations in OCS but you can write a plugin if yuo want to do such a thing.
But I do not understand your aim of doing such a thing.

OCS to GLPI updates can be managed more precisely using the mass_ocs_import plugin.


MoYo - Julien Dombre - Association INDEPNET
Contribute to GLPI :    Support     Contribute     References     Freshmeat

Offline

#3 2009-01-09 09:44:21

dhiraj
Member
From: INDIA
Registered: 2007-12-06
Posts: 77

Re: Update OCS Info from GLPI

Thanks MoYo
The actual reason for doing such thing is coz of the administrative info. I have attached admin info like user phone number, Floor No, department etc on the ocs side. Now users or PC often change in our setup (like transfers etc) so to update the admin information about the new user either I have to re-run the ocs agent and wait for 10 hours or so for the info to come to OCS DB OR do an update from glpi (which my helpdesk is now very comfortable with)and the same is updated at OCS db as well.

Any directions to writing such plugin shall be helpful.

Regards
Dhiraj

Last edited by dhiraj (2009-01-09 09:45:21)


OS : Fedora Core 7
GLPI : 0.7             OCS-NG : 4100
Web Server : Apache 2.2.3 DB: MySql 5.0.27   
Langage : PHP 5.2.4  Syslog-NG: 2.0.5

Offline

#4 2009-01-09 09:58:52

remi
GLPI-DEV
From: Champagne
Registered: 2007-04-28
Posts: 7,127
Website

Re: Update OCS Info from GLPI

If you are using GLPI to keep your information, why do you need to store them in OCS ?

What are the informations provided by OCS and not available in GLPI which need to give access to "ocsreport" to your users ?

We are using GLPI for a while and our users doesn't use ocs console.

+


Dév. Fedora 29 - PHP 5.6/7.0/7.1/7.2/7.3/7.4 - MariaDB 10.3 - GLPI master
Certifié ITILv3 - RPM pour Fedora, RHEL et CentOS sur https://blog.remirepo.net/

Offline

#5 2009-01-09 11:41:39

dhiraj
Member
From: INDIA
Registered: 2007-12-06
Posts: 77

Re: Update OCS Info from GLPI

dear Remi
I ll try to elaborate a bit
Through the OCS agent we get the hardware details . I have added a few custom fields which get stored in OCS DB.  these are the following

Tag     c-100583  --> This refers to the bar code sticker number on each machine
LanID    8B019      --> This refers to the LAN point ID which we have given for port identification
Department HR    --> Department Name
Contact    2615 -- RAX No, to call user if required
Floor    6                --> Floor location
User    00075        --> User ID   

Now ocs agent passes all this info and stores in the OCS db(which I refer as administrative info). I am also able to see the same info in GLPI as it pulls this info from the db and displays the same in glpi interface Inventory-> Computers. This means whenever admin info is updated via OCS console, it shows up in glpi web console. (sometimes 10 hours later or next PC reboot)

Now what happens is my helpdesk operator updates this ADMIN INFO at GLPI interface and expects that OCS database should also be updated. (I believe that OCS user has only read privilege so the OCD db  is not updated through glpi interface.)

So clearly my info is in OCS DB and clearly avaialble to GLPI for view but not updating. I need a way to update my admin info resting in OCS via GLPI.

Last edited by dhiraj (2009-01-09 11:43:23)


OS : Fedora Core 7
GLPI : 0.7             OCS-NG : 4100
Web Server : Apache 2.2.3 DB: MySql 5.0.27   
Langage : PHP 5.2.4  Syslog-NG: 2.0.5

Offline

Board footer

Powered by FluxBB