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

David77
Giga Guru

Could the asset model category be changed with a "Data Management" job?
Thinking this would be handy if you had to move a number of assets from one Model Category to another. 

Community Alums
Not applicable

Hello @David77 ,

 

Yu can right a fix script and run it for larger number of records. Also, In future you just need to change the value of model categorie) to use the script.

Thanks!

Yes, I've used scripts to do this in the past, but prefer to use Data Management if it works.