AuditWizard - Using AuditWizard - Administration - General - Database Maintenance - Import & Export

From Layton Support
(Difference between revisions)
Jump to: navigation, search
m (Minor text changes)
(Removed section "SQL Import", which is now a new article)
Line 45: Line 45:
 
This is used to import asset history data that was exported from AuditWizard v7.
 
This is used to import asset history data that was exported from AuditWizard v7.
 
<p align="right">[[File:btn_back_up.png|link=User Guide for AuditWizard]] [[User Guide for AuditWizard|<u>Back to Contents</u>]]</p>
 
<p align="right">[[File:btn_back_up.png|link=User Guide for AuditWizard]] [[User Guide for AuditWizard|<u>Back to Contents</u>]]</p>
 
=SQL Import=
 
When one of the above options is too limited, SQL queries can be used to import data directly into the database.
 
 
==Locations==
 
It is not possible to import all location information using the '''[[AuditWizard - Using AuditWizard - Administration - General - Database Maintenance - Import & Export#Assets and Locations|Assets and Locations]]''' method because that method imports assets with their locations. The asset is the focus of that method. A list of locations have to be imported directly into the database using Management Studio. The table structure is as follows:
 
 
    _LOCATIONID,_FULLNAME,_NAME,_PARENTID,_START_IPADDRESS,_END_IPADDRESS,_HIDDEN
 
 
{| class="wikitable" border="1"
 
|-style="vertical-align:top;"
 
! style="background:#009999; width: 200px; color: #FFFFFF"|Column Name
 
! style="background:#009999; width: 800px; color: #FFFFFF"|Description
 
|-style="vertical-align:top;"
 
|_LOCATIONID
 
|Serial number for internal reference.
 
|-
 
|-style="vertical-align:top;"
 
|_FULLNAME
 
|The name, with any parent names, separated by a backslash \.
 
|-
 
|-style="vertical-align:top;"
 
|_NAME
 
|The name of this location without any parent names.
 
|-
 
|-style="vertical-align:top;"
 
|_PARENTID
 
|The _LOCATIONID of any parent one level up.
 
|-
 
|-style="vertical-align:top;"
 
|_START_IPADDRESS
 
|The starting IP address of a range that represents this location (optional).
 
|-
 
|-style="vertical-align:top;"
 
|_END_IPADDRESS
 
|The ending IP address of the range (optional).
 
|-
 
|-style="vertical-align:top;"
 
|_HIDDEN
 
|Unused at this time. Enter ''0''.
 
|}
 
 
===Example CSV File===
 
    _LOCATIONID,_FULLNAME,_NAME,_PARENTID,_START_IPADDRESS,_END_IPADDRESS,_HIDDEN
 
    1,Home,Home,NULL,,,0
 
    14,Home\Site 01,Site 01,1,,,0
 
    15,Home\Site 02,Site 02,1,,,0
 
    16,Home\Site 03,Site 03,1,,,0
 
    17,Home\Site 01\Location 01,Location 01,14,13.14.5.1,13.14.5.255,0
 
    18,Home\Site 01\Location 02,Location 02,14,13.15.5.1,13.15.5.255,0
 
    19,Home\Site 02\Location 01,Location 01,15,48.3.14.1,48.3.14.255,0
 
    20,Home\Site 02\Location 02,Location 02,15,48.3.15.1,48.3.15.255,0
 
    21,Home\Site 02\Location 03,Location 03,15,,,0
 
    22,Home\Site 02\Location 04,Location 04,15,,,0
 
    23,Home\Site 03\Location 01,Location 01,16,,,0
 
    24,Home\Site 03\Location 02,Location 02,16,,,0
 
    25,Home\Site 03\Location 03,Location 03,16,,,0
 
  
 
<p align="right">[[File:btn_back_up.png|link=User Guide for AuditWizard]] [[User Guide for AuditWizard|<u>Back to Contents</u>]]</p>
 
<p align="right">[[File:btn_back_up.png|link=User Guide for AuditWizard]] [[User Guide for AuditWizard|<u>Back to Contents</u>]]</p>

Revision as of 04:55, 24 November 2016

Btn back up.png Back to Contents

Contents

Overview

The import feature allows you to import data from a flat CSV file into the AuditWizard database. This interface was originally designed to import text files that were exported from AuditWizard v7, but most of the options may also be used to quickly create the location structure, user-defined data, and asset data. It can be useful when migrating from another application, or when a spreadsheet of data must be quickly added to AuditWizard. There are four different data import options:


Aw admin gen db03.png

Sections

Assets and Locations

Use this option to import Assets and the Location structure. An example CSV has been loaded below.

Database maintenance import assets locations.png

Creating an Import File

If you are constructing a CSV file for import, the file should have no headers (first row is first asset). The location should be listed first, followed by starting and ending IP addresses (null if not applicable, like with a device), and finishing with an asset name.

Examples: Computers:

   Location1,192.168.1.1,192.168.1.255,ASSET1
   Location2,192.168.2.1,192.168.2.255,ASSET2
   Location3,192.168.3.1,192.168.3.255,ASSET3

Non-Computer Devices:

   Location1,,,Phone1
   Location1,,,Phone2
   Location2,,,Phone3
   Location2,,,Phone4

Picklists and Items

This import option allows for the import of Picklists and Picklist Items. If the Picklist already exists, then the Items will be imported into it. If the Picklist does not yet exist, then it will be automatically created.


Database maintenance import picklists items.png

User Defined Data Fields

Use this import feature to import user-defined data values. If the fields have already been configured in User Defined Data, then the values will be imported into them as defined. If the fields do not yet exist, then they will be automatically created. An example CSV file has been loaded below.


Database maintenance import userdefined data.png

Asset History Data

This is used to import asset history data that was exported from AuditWizard v7.

Btn back up.png Back to Contents

Btn back up.png Back to Contents

Personal tools
Namespaces

Variants
Actions
Main Page
Online User Guides
General Support
Release Notes
Toolbox