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

Okay understood, and if records creted manually then we can run a script right ?

@Hitoshi Ozawa 

 

I tried with above scirpt but i am not able to update the model cateory. Can you please help me out

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

 

 

 

Thank you i copied the sys id of the linux server from the list view so that got changed 🙂

 

Hi

If you want to update the values on the asset, you need to check, if you also need/want to check the referenced model (see screenshot below):

find_real_file.png

Let me know if that answers your question and mark my answer as correct and helpful.

BR

Dirk