When I import PC servers and VMs via configured asset categories, they always end up under servers in itop, instead of PC servers or VMs. I assigned the categories correctly. What can that be? Or is this a bug in itop 3.2.0?
Thank you!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Are you aware that you cannot import different type of CI at once?
During the import process, the second or third screen ask you to choice the class to import, I suppose that Server is selected...
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
We've recently built an iTop server and are hitting a similar, if not the same, issue as Marc when importing our devices from our OCS server.
We have roughly 1800 computers in OCS and when I run the import script the system assigns 908 of them as a server within iTop and no matter what I try they always end up in the server object. Most if not all of the 908 are desktop devices, with the laptops, servers and virtual machines all importing correctly to their respective objects.
So far I've checked the following:
Checked the OCS data to ensure that the devices are registered correctly on that system. Confirmed that there are no issues.
Checked the assets category definitions in OCS to ensure that they're pulling back the correct data and that these devices are assigned correctly. Again, confirmed that it's working.
Checked the OCS DB to ensure that all devices have a correct and valid field in Computer: Assets Category. Confirmed that the category_id field doesn't have a NULL in any device listed.
Went through the SQL in params.distrib.local to ensure it can retrieve data from the OCS server and that there's no errors and confirmed that it's working.
Attempted to edit the SQL queries in Server and PC retrieval and synchro functions to force it to import to the PC category. That also made no difference.
Forced target class for OCS Asset Category in iTop for the category definitions retrieved from the OCS server by the import script to PC rather than server. This made no difference.
Disabled asset category imports and to see if it would classify these devices any differently and that made no difference.
At no point has the import/synchro script for this even thrown an error and all imports always all complete successfully, albeit for a lot of them to the incorrect destination.
I've been over the documentation for v2 of Data collector for OCS Inventory and Data model for OCS Inventory a lot of times, done numerous searches for information on this and I don't know where I'm going wrong. I think I'm doing everything right but clearly I'm not.
Apart from the incorrect categorisation of these devices the import works without an error.
Any assistance or guidance would be greatly appreciated.
Thank you.
Mark
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Yes, that's exactly the same problem. Apparently nobody uses ocs? Is there anything better? Does anyone recommend something else in conjunction with itop?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
Eveything work fine on my side and I’m using iTop 3.2.0-2.
Reading what you have tested, I understand you created categories on OCS.
In that case, simpliest way would be to configure collection on these categories by parameter
<categorycollection>yes</categorycollection>
So in your conf/params.local.xml file, you will for instance, put
And as described in doc, please ensure that SQL requests described in all OCS<class_you_want_to_collect>Collector_with_categories_query sections are corrects.</class_you_want_to_collect>
Then you will turn once collector to get all asset’s categories.
You will have to associate, in itop under Data Administration/Typology configuration/OCS/Asset category Menu for each collected catégories, type of class .
When this association is done, you need to execute again collector to obtain this time devices in good target class.
Last edit: Bluearrow 2025-02-03
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hey,
When I import PC servers and VMs via configured asset categories, they always end up under servers in itop, instead of PC servers or VMs. I assigned the categories correctly. What can that be? Or is this a bug in itop 3.2.0?
Thank you!
No One?
Are you aware that you cannot import different type of CI at once?
During the import process, the second or third screen ask you to choice the class to import, I suppose that Server is selected...
I don't see the import process, the system does it through the CRON. Or where do I trigger it manually so that I can see what you describe?
Hi,
We've recently built an iTop server and are hitting a similar, if not the same, issue as Marc when importing our devices from our OCS server.
We have roughly 1800 computers in OCS and when I run the import script the system assigns 908 of them as a server within iTop and no matter what I try they always end up in the server object. Most if not all of the 908 are desktop devices, with the laptops, servers and virtual machines all importing correctly to their respective objects.
So far I've checked the following:
Checked the OCS data to ensure that the devices are registered correctly on that system. Confirmed that there are no issues.
Checked the assets category definitions in OCS to ensure that they're pulling back the correct data and that these devices are assigned correctly. Again, confirmed that it's working.
Checked the OCS DB to ensure that all devices have a correct and valid field in Computer: Assets Category. Confirmed that the category_id field doesn't have a NULL in any device listed.
Went through the SQL in params.distrib.local to ensure it can retrieve data from the OCS server and that there's no errors and confirmed that it's working.
Attempted to edit the SQL queries in Server and PC retrieval and synchro functions to force it to import to the PC category. That also made no difference.
Forced target class for OCS Asset Category in iTop for the category definitions retrieved from the OCS server by the import script to PC rather than server. This made no difference.
Disabled asset category imports and to see if it would classify these devices any differently and that made no difference.
At no point has the import/synchro script for this even thrown an error and all imports always all complete successfully, albeit for a lot of them to the incorrect destination.
I've been over the documentation for v2 of Data collector for OCS Inventory and Data model for OCS Inventory a lot of times, done numerous searches for information on this and I don't know where I'm going wrong. I think I'm doing everything right but clearly I'm not.
Apart from the incorrect categorisation of these devices the import works without an error.
Any assistance or guidance would be greatly appreciated.
Thank you.
Mark
Yes, that's exactly the same problem. Apparently nobody uses ocs? Is there anything better? Does anyone recommend something else in conjunction with itop?
Hi,
Eveything work fine on my side and I’m using iTop 3.2.0-2.
Reading what you have tested, I understand you created categories on OCS.
In that case, simpliest way would be to configure collection on these categories by parameter
<categorycollection>yes</categorycollection>
So in your conf/params.local.xml file, you will for instance, put
<default_org_id>Demo</default_org_id>
<default_status>production</default_status>
<default_active_status>active</default_active_status>
<use_asset_categories>yes</use_asset_categories>
<use_software_categories>no</use_software_categories>
<categorycollection>yes</categorycollection>
<pccollection>yes</pccollection>
<servercollection>yes</servercollection>
<vmcollection>yes</vmcollection>
<mobilephonecollection>yes</mobilephonecollection>
<printercollection>yes</printercollection>
<softwarecollection>no</softwarecollection>
<licencecollection>no</licencecollection>
And as described in doc, please ensure that SQL requests described in all OCS<class_you_want_to_collect>Collector_with_categories_query sections are corrects.</class_you_want_to_collect>
Then you will turn once collector to get all asset’s categories.
You will have to associate, in itop under Data Administration/Typology configuration/OCS/Asset category Menu for each collected catégories, type of class .
When this association is done, you need to execute again collector to obtain this time devices in good target class.
Last edit: Bluearrow 2025-02-03
Is there any news regarding the problem?