Need help on updating the Model category in Asset

shaik_irfan
Tera Guru

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 ?

1 ACCEPTED SOLUTION

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.

find_real_file.png

2. Right click on the asset to change and select "Copy sys_id". Here, I've right clicked on "P1000196".

find_real_file.png

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.

find_real_file.png

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".

find_real_file.png

5. From Application Navigator, search and open "Script - Background".

find_real_file.png

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".

find_real_file.png

7. Result of execution is displayed.

find_real_file.png

8. Check Asset list to make surethe Model category changed to Linux Server. 

find_real_file.png

 

 

 

View solution in original post

17 REPLIES 17

Hitoshi Ozawa
Giga Sage
Giga Sage

Not sure about the problem. Model Category is specified by opening up an asset and specifying it in the "Model categories" field. For example, to change from "Windows Server" to "Linux Server", click on the lock icon and specify "Linux Server" as below.

find_real_file.png

find_real_file.png

@Hitoshi Ozawa 

The above screenshot model categories is it a custom field ?

 

Because OOB it is a reference field and it is readonly

DirkRedeker
Mega Sage

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

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