Importing assets in Snipe-IT

In this blog, we will look at how to import assets in Snipe-IT. You can import assets in bulk if required. There are two ways to import assets, first one is through web interface and the second one is command line. Both ways have their pros and cons.

This post is still in development…

Last updated 14th Sept 2021

Let’s have look the difference in a below table:

Web InterfaceCommand Line
Easy to use, user friendlyNeed access to the command line and complex
Good for small files, it chokes while importing large recordsWorks seamless while importing larger imports
Can’t automateAutomation can be made

Importing through Web Interface

In this section, we will actually go through the steps to import assets through web interface. In order achieve this step you need access to SNIPE-IT’s web interface as an admin.

  1. Login as admin on SNIPE-IT and click on import
  2. Select file and click on import
  3. Click on process and you will see a screen to select different options.
  4. Click on process and importer will redirect the page after process the changes
  5. Assets are imported successfully

What if you would like to update existing assets through CSV? Yes, you can do this. Update any value in the existing used CSV file and then import that file by checking the box “Update Existing Values”.

  1. Update CSV file, in our case I will update just a serial number of SPARE-01
  2. Import the updated CSV file by following the steps 2 to 5 from the first section
  3. Check the updated serial number, it should reflect the changes on the web interface as well

Importing through command line

This is slightly complex than using web interface to import assets. Let’s have a look at the steps which we need to go through.

  1. Login to your SNIPE-IT Server
  2. Save your import file on the server
  3. Open File Explorer and browse to the root directory where SNIPE-IT is installed.
  4. Click on file and open PowerShell as an administrator
  5. Run the following command. There are different switches available to achieve different results.
    – Command
    – Different Switches
  6. For this test, we will be running the following command. It will import the assets from the mentioned location in the command and it will also output the results in the PowerShell.

Asset import file

Download the file which is used in this example below: