You will need to write some CLI around this.  The following example is 
from my lab system:

First collect the Model Handles of the devices you want. For example all 
SystemEDGE hosts:

[spectrum@robo-mloc vnmsh]$ ./show models | grep Host_systemEDGE
0x2001b1    robo-win7         0x1160088   Host_systemEDGE
0x2001a9    robo-spec1        0x1160088   Host_systemEDGE
0x200190    robozone          0x1160088   Host_systemEDGE
0x200188    robo-sol10        0x1160088   Host_systemEDGE
0x200181    robo-mloc         0x1160088   Host_systemEDGE
0x20016d    robo-zen          0x1160088   Host_systemEDGE
0x200130    robo-suse         0x1160088   Host_systemEDGE
0x200122    robo-nas          0x1160088   Host_systemEDGE
0x2000f1    robo-aio.austin.  0x1160088   Host_systemEDGE
0x200070    lisa-fas          0x1160088   Host_systemEDGE
0x20006f    robo-w2k3r2       0x1160088   Host_systemEDGE
[spectrum@robo-mloc vnmsh]$

Next you will need to stuff that left hand column in some sort of array.

Then walk the array and update the attribute you want. You can find the 
Asset (Owner) Attribute like this:

[spectrum@robo-mloc vnmsh]$ ./show attributes mh=0x200181 | grep 
USER_AssetOwner
0x12bfd     USER_AssetOwner


[spectrum@robo-mloc vnmsh]$ ./update mh=0x200181 attr=0x12bfd,val=Rob_owns
Id            Name                  Iid               Value
0x12bfd       USER_AssetOwner  Rob_owns
[spectrum@robo-mloc vnmsh]$

Hope that helps.

-Rob



On 2/20/2013 7:54 PM, Fereydoon Mallahi Karai wrote:
> Hi,
>
> I need a script or any other solution to add values to the "owner" 
> field of "Asset information" in many devices in spectrum. I will 
> appreciate if you inform me about your suggestions.
>
> Regards,
>
> Fereydoon
>
>   * --To unsubscribe from spectrum, send email to [email protected]
>     <mailto:[email protected]> with the body: unsubscribe spectrum
>     [email protected]
>


---
To unsubscribe from spectrum, send email to [email protected] with the body: 
unsubscribe spectrum [email protected]

Reply via email to