- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-22-2020 10:25 PM
Hi,
We have assets created now for few assets we wanted to change the model category from windows to linux
can anyone please help me how to do this ?
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-24-2020 10:20 PM
1. In Application Navigator, oepn "Asset". In the example below, I'm going to change Model category of if Lenovo ThinkServer TD230 From Windows Server to Linux Server.
2. Right click on the asset to change and select "Copy sys_id". Here, I've right clicked on "P1000196".
3. Next, find sys_id of Linux Server model category.
I'm just filtering list asset on "linux" to bring a record that has "Linux Server". Any record will do.
4. Open the record and right click on the header section and select "Copy sys_id". This is the sys_id of model category "Linux Server".
5. From Application Navigator, search and open "Script - Background".
6. Enter the script. Enter the sys_id of linuxModelClass and assetId as was found
from the above steps. After updating the script, click on "Run script".
7. Result of execution is displayed.
8. Check Asset list to make surethe Model category changed to Linux Server.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-22-2020 10:37 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-22-2020 11:14 PM
The above screenshot model categories is it a custom field ?
Because OOB it is a reference field and it is readonly

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-22-2020 11:16 PM
Hi
You do not have to change the Model Category on the Asset record, because the Asset only references the related Model. You need to change the Model Category on the referenced Model.
You can do in the backend as shown in the answer from Hitoshi.
Let me know if that answers your question and mark my answer as correct and helpful.
BR
Dirk
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-22-2020 11:25 PM
When you say reference model it is cmdb_model table right ?
When i change the model category on the product level it is stil not getting updated in the alm_hardware table
We want to update the mategory category and model