Blowerl Posted October 20, 2023 Posted October 20, 2023 Hi, Our Company has changed a few department names. If I wanted to update them in the Assets. Is it just a case of doing an export of one of the classes, open it up in excel and change the department name and then import it back into Assets? I see that there is a Download Template file, but I guess this is for bringing new assets into the CMDB Thanks Lee
Frank Reay Posted October 20, 2023 Posted October 20, 2023 You are correct. You need the download in CSV which I get from running a report. Take care if you have leading zeroes etc when manipulating CSV's. The template file is actually for Uploading new assets - it is just offering you to download it! I use this file to ensure I have the correct column names for my upload file which I do via the Import Utility.
Steve Giller Posted October 20, 2023 Posted October 20, 2023 @Blowerl Just for clarity, you will need the Database Asset Import tool to update assets, the upload option in the UI is only for creating Assets.
Blowerl Posted November 10, 2023 Author Posted November 10, 2023 I have exported the assets from one of the classes and made the changes, is it now a case of in a command line typing: asset_import.exe -file="result.csv" -dryrun=true Or does it all have to be done from a json file?
Steve Giller Posted November 10, 2023 Posted November 10, 2023 The JSON file determines which fields from the CSV populate data into Hornbill, the full details are on this page. You can use the dryrun feature to ensure (by reviewing the logs) that the correct data would be populated without actually importing any data. Once you are sure this is correct you can remove the dryrun parameter.
Frank Reay Posted November 10, 2023 Posted November 10, 2023 Yes that is sort of what you put in the Command Line but at the front you need put in the location of the file (so something like c:\....). Also you need to point to the json file in the Command Prompt - not the csv (the json file then points to the csv) I have to use the Task Scheduler as my Security Team have taken away access for the Command Prompt to do these things. But the Task Scheduler is a work around (just don't tell anyone!).
Steve Giller Posted November 10, 2023 Posted November 10, 2023 1 hour ago, Frank Reay said: Also you need to point to the json file in the Command Prompt Please refer to the documentation for this - pointing to the json is optional, as explained in the documentation. 1 hour ago, Frank Reay said: But the Task Scheduler is a work around Just for clarity - this tool is designed to be used via the Windows Task Scheduler. 1
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now