First of all, I would like to ask, Do we can ‘update’ customize attribute from bulk script or not? If no, Thank you.

If yes, I have a problem for ‘update’ customize attribute from scanned devices. I’m not sure what i did wrong?

Error as below.

C:\Program Files (x86)\Spiceworks\bin>ruby.exe bulk_import.rb -e %myusername% -p

%mypassword% -s %server% --no-manual import.csv

Logging into Spiceworks…

Importing assets…

Error: no name attribute given in {“primary_owner_name”=>“chutawat Luangsa-ard”,

“serial_number”=>“SGH203R064”, “description”=>“manually imported from csv file”

}

Had exception importing: exit

bulk_import.rb:14:in `exit’

bulk_import.rb:14:in `eputs’

bulk_import.rb:139:in `block in

5 Spice ups

There’s actually a bug in the import script that should be fixed here soon that prevents the update process when the --no-manual flag is used from working correctly.

That should be fixed in the next patch.

Once it’s fixed, you should be able to use the script to update your devices, but there is a minimum amount of information required to do so. The script requires the name and serial_number fields to function properly. Other fields are alright to use, but both of these need to be included for the script to run. It looks like the complaint:

no name attribute given in

indicates that the name field wasn’t provided.
Once the patch fixes this, you should add the name field and give it another try.

Any updates on this issue?

There hasn’t been any change since my post of Thursday, no.