Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

We have some options that you can set by directly editing the script. These might be settable on the command line in future. They are below.

namedefault valuewhat it does
conf_file/usr/local/omk/conf/opCommon.nmisThe full path to the Opmantek configuration file. Used to retrieve the UUID.
debug0

0 - Summary output only

1 - Commands run

2 - Command outputs (usually file contents). A lot of information is dumped, use for troubleshooting only.

filenamecisco.csvThe filename to be imported. If it's not in the default directory, the full path including name is OK to use.
last_date_of_support2019-01-01The date in YYYYYYY-MM-DD format. Devices with a column value for 'Last Date of Support' that's older than this date will not be imported.
useradminThe name of the Open-AudIT user performing the action. Admin 'admin' is the default user and fine to use.

...

You may see lines beginning with DEBUG, INFO, WARNING or ERROR. Generally only ERRORs ERROR lines are bad and will immediately halt the script execution.

...

Below are the columns from our current Cisco spreadsheet. If your order of these columns differs, it shouldn't matter, however your spreadsheet should contain all the columns used in the mappings below.

The dates we are assuming have a format of D/M/YYYY. These will be reformatted to YYYY-MM-DD for Open-AudIT.

Serial Number / PAK numberCoverageCovered Line StatusBusiness EntitySub Business EntityProduct FamilyProduct IDProduct DescriptionAsset TypeProduct TypeItem QuantityCovered Line Start DateCovered Line End DateCovered Line End Date FY-FQContract TypeService Brand CodeContract NumberSubscription Reference IDShip DateEnd of Product Sale DateEnd of Software Maintenance DateLast Date of SupportLDOS FY-FQEnd Of Life Product BulletinWarranty TypeWarranty End DateInstall Site Customer Registry GU NameInstall Site Customer Registry Party NameInstall Site Customer Registry Party IDInstall Site NameInstall Site IDInstall Site Address 1Install Site CityInstall Site StateInstall Site CountryInstall Site Postal CodeProduct Bill to IDProduct Bill-to Partner NameProduct Partner BE GEO IDPOS Partner BE GEO IDPOS Partner BE GEO NameService Bill to IDService Bill-to Partner NameService Partner BE GEO IDProduct List Price $Default Service List Price $Default Service LevelExisting Coverage Level List Price $Instance IDParent Instance IDProduct SOProduct POService SOService POWeb Order IDMapped to SWSS (Y/N)Mapped to C1 (Y/N)Auto-renewal flag

Configuration


...

So you may already have some of these devices in Open-AudIT, you may not. How does Open-AudIT know what to do here? It all depends on the serial number. The spreadsheet doesn't contain the usual items we need to match devices (think hostname, ip, type, UUID, etc), but it does contain the device serial number. So you'll need to ensure your configuration item named 'match_serial' is set to 'y' (which is the default). As long as that is set, you can import and run discoveries in whichever order you like. Obviously discovery must be working and able to retrieve the serial from the device to perform the match. If you don't have working discovery (usually SNMP based for Cisco network equipment), you'll likely end up with duplicate devices - you have been warned! Just remember, Bulk Edit is your friend.

If you import a device, then run a discovery some fields may be overwritten. Model is likely the first one you'll notice. This is expected. Two screenshots are below of a device after import, then after discovery.

After import.

Image Added


After Discovery.

Image Added