Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OS version import #248

Closed
hgpit opened this issue Aug 17, 2020 · 3 comments
Closed

OS version import #248

hgpit opened this issue Aug 17, 2020 · 3 comments

Comments

@hgpit
Copy link

hgpit commented Aug 17, 2020

OCS Server v2.7
GLPI v9.5.1
OCS Plugin v1.7.0

Hello,

We have found that the Operating System version reported in OCS is different to that which is displayed in GLPI.
For instance, we have a PC (under Assets: Computers), which is synced with OCS and in GLPI has an OS version of 10.0.14393. However, if we look at the same computer on our OCS Server, it has the correct OS version of 10.0.17134.

This seems to be the case with all computers. We are guessing that GLPI's 'OS Version' only gets populated on the first import from OCS.

Is there any chance this can be fixed/changed to sync every time the plugin syncs the asset?

Thank you.

@88ee55
Copy link

88ee55 commented Oct 15, 2020

Did so

Changed inc/os.class.php

         if ($force) {
            self::resetOS($options['computers_id'], $uninstall_history);
         }

         if ($force || $computerOS != $hardware["OSNAME"]) {
            self::resetOS($options['computers_id'], $uninstall_history);
         }

@tsmr tsmr closed this as completed in f8818f2 Oct 27, 2020
@hgpit
Copy link
Author

hgpit commented Apr 15, 2021

Hi, I'm just picking this one up on behalf of my colleague. The code is there as per the last update

if ($force || $computerOS != $hardware["OSNAME"]) {
self::resetOS($options['computers_id'], $uninstall_history);
}

image
image

@jpclerc
Copy link

jpclerc commented Nov 3, 2021

OCS Server v2.7 GLPI v9.5.1 OCS Plugin v1.7.0

Hello,

We have found that the Operating System version reported in OCS is different to that which is displayed in GLPI. For instance, we have a PC (under Assets: Computers), which is synced with OCS and in GLPI has an OS version of 10.0.14393. However, if we look at the same computer on our OCS Server, it has the correct OS version of 10.0.17134.

This seems to be the case with all computers. We are guessing that GLPI's 'OS Version' only gets populated on the first import from OCS.

Is there any chance this can be fixed/changed to sync every time the plugin syncs the asset?

Thank you.

No solution for the OS version ?
The solution is only OK for $hardware["OSNAME"] but not for $hardware["OSVERSION"]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants