1

Topic: OCS importing software comments

hi

I'm currently importing computers and software from OCSNG. One problem that I now have, is, that the software comments aren't imported to GLPI.
(background info: we thought about putting the software package version into the software comments field by a registry key. So we would have the package version available in OCS and maybe also in GLPI.)

I thought it should be possible to set the OCS config value "general information software/comments" to "yes", but actually the software comments aren't imported or updated. So a took a look into the code an figured out, that $cfg_ocs["import_software_comments"] is never read and the COMMENTS field of OCS's softwares table is just ignored.

So, has someone just forgotten to set the software comments or will it be available in future versions of GLPI?

I'm currently using GLPI version 0.71.2 and was also testing glpi-unstable-2009-02-23 on RedHat Ent 5.2
OCSNG version is 1.01

regards
Bernhard

2

Re: OCS importing software comments

You're right.

It has work in old verions (probably 0.70) but not really in a good way :

The comment was import in the comment for the software (when a new software is create) and so, is the same for all computers : no sens for me.

If we want this comment, it should be a attribut of the software - version / computer relation.

I don't understand what is you exact need and what you call "software package version".

+

Dév. Fedora 17 - php 5.4.7 - MySQL 5.5.27 - OCS 2.0.5 - GLPI SVN
Certifié ITILv3 - RPM pour Fedora, RHEL et CentOS sur http://blog.famillecollet.com/

3

Re: OCS importing software comments

remi wrote:

I don't understand what is you exact need and what you call "software package version".

we are packaging some software (ex with a MSI-packager) to add some perdefined config options or something else. these software packages also have a version to be able to track problems with certain packages. Now the easiest way to be able to put this customized package version into OCSNG and GLPI, is adding a comment to the softwares comments field in the registry, since most programs doesn't use it. Or is there some other/better way? Of course, changing the version string in the registry would also be an option, but what about software updates or if the program relays on it?

So from my point of view, it would be enough to add the comment to the software - version's comment field, and if we have two entries with two different comments in OCS, we add a new software version in GLPI. Or does it not fit in the global GLPI schema wink

greetings,
Bernhard

4

Re: OCS importing software comments

> if we have two entries with two different comments in OCS, we add a new software version in GLPI
I don't think this is a good solution.

Put the package version in the Software version, the simplest and immediate solution.
All linux distro use a /version/-/release/ schema, which seems robust
/version/ = of the software
/release/ = version of the package

Ex : firefox-3.0.6-2

+

Dév. Fedora 17 - php 5.4.7 - MySQL 5.5.27 - OCS 2.0.5 - GLPI SVN
Certifié ITILv3 - RPM pour Fedora, RHEL et CentOS sur http://blog.famillecollet.com/