HP Netsight manual Creating an AddDevType Input File, Comma-Separated Variable CSV Format

Models: Netsight

1 238
Download 238 pages 42.55 Kb
Page 231
Image 231

Batch Customization via AddTool, AddImage, and AddDevType

Notes

Use this optional parameter to specify any additional note information you’d like to display by default in the Properties window for devices represented by your new node class.

Creating an AddDevType Input File

You can create your AddDevType input file in one of two formats: multi-line tag/data format, or single-line comma-separated variable (CSV) format. Each method is described below.

Comma-Separated Variable (CSV) Format

To create an input file using the single-line CSV format, you need only string together the fields you wish to use in a single line, with each value separated by a comma. To specify multiple values for a single parameter (for example, multiple Class or Topology images), separate the values with commas, and enclose the entire attribute value in double-quotes. Spaces before and after commas are ignored. If you wish to skip one or more optional fields, be sure to use a comma for a placeholder, or any following fields will be misread. Use one line for each device type you wish to add; extra lines are ignored. Note that the filename cannot contain spaces.

If you wish, the first line of your file can contain a comma-separated list of the available field names; if you choose not to include this line, you must launch your CSV file with a special switch (as described in Executing the AddDevType Command, page A-12). A CSV file with this descriptive line is the default file type expected by the AddTool utility.

The following CSV file would create a node class called Famous_MV. This sample includes the optional initial descriptive line, and demonstrates using commas as placeholders for the optional fields you do not wish to use and using double-quotes to enclose attributes which contain multiple values. It also uses some of the image types created by the example provided in Creating an AddImage Input File, page A-6. Note that the line breaks shown here are a publishing limitation only; be sure your file does not break the single line required for each device type entry.

CSV Sample File

Name, Model, Enterprise, sysObjectID, Classes, Topologies, Module, Arguments, Working directory, Description, Notes

Famous_MV, KidMobile, Mom-n-Pop, 1.3.6.1.4.1.3.3.5, “Roundabouter, Repeater, Server”, “RoundLAN, HSSI, Ultra Tech”, c:\dev_manage\manage.exe,,,a very busy LAN bus, Super crime-fighting device

Using the AddDevType Utility

A-11

Page 231
Image 231
HP Netsight manual Creating an AddDevType Input File, Comma-Separated Variable CSV Format