importCMDB

command module
v0.0.0-...-b8a4a1e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 2, 2021 License: CC0-1.0 Imports: 6 Imported by: 0

README

CMDB Analysis DB

Golang program to import CSV reports from vRO and ServiceNow to compare CMDB records for vmWare virtual machines

Usage

Important: because this is a CGO enabled package you are required to set the environment variable CGO_ENABLED=1 and have a gcc compile present within your path.

Dependencies

Compile and install the import tool

export CGO_ENABLED=1
go get github.com/GSA/geo-vm-inventory/go/importCMDB

If the csv files are named snow.csv, vcac.csv and vcenter.csv and in the current directory, then simply running the command will create the cmdb_cleanup.db database in the current directory, delete the tables (if they exist), import the csv files into the tables and normalize the data.

importCMDB

The following flags are supported

-db string
    path of db file (default "./cmdb_cleanup.db")
-snow string
    path to ServiceNow CSV file (default "./snow.csv")
-vcac string
    path to vCAC CSV file (default "./vcac.csv")
-vcenter string
    path to vCenter CSV file (default "./vcenter.csv")

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL