HP Netsight manual Executing the AddDevType Command, Tag/Data Format

Models: Netsight

1 238
Download 238 pages 42.55 Kb
Page 232
Image 232

Batch Customization via AddTool, AddImage, and AddDevType

Tag/Data Format

To create a file using the multi-line tag/data format, you must place each field name and the value you want to use in its own line. Field names and their values are separated by a colon with a space on either side. To specify multiple values for a single parameter (for example, multiple Class or Topology images), separate the values with commas. Because each line of data is tagged with its function, you need not use placeholders for optional fields you do not wish to use. The end of each entry is signaled by a separator line containing three dots; any additional blank lines between entries are ignored. Note that the filename cannot contain spaces.

If you choose to use the tag/data format for your input files, you must launch the AddDevType utility with a special switch, as described in Executing the AddDevType Command, page A-12.

The following tag/data formatted file would create a node class called Famous_MV. This sample demonstrates that optional fields you do not wish to use need not appear in the tool entry; it also demonstrates how to assign multiple values to a single attribute. It also uses some of the image types created by the example provided in Creating an AddImage Input File, page A-6.

Tag/Data Sample File

Name : Famous_MV

Model : KidMobile

Enterprise : Mom-n-Pop

sysObjectID : 1.3.6.1.4.1.3.3.5

Classes : Roundabouter, Repeater, Server

Topologies : RoundLAN, HSSI, Ultra Tech

Management Module : c:\dev_manage\manage.exe

Description : a very busy LAN bus

Notes : Super crime-fighting device

...

Executing the AddDevType Command

Once you have created the necessary input files, you can run the AddDevType utility via the Run window, as follows:

1.Make sure NetSight Element Manager and all of its components are shut down; the AddDevType utility will not run if NetSight Element Manager is running.

2.Select Start—>Runfrom the Windows Start button, then enter the following command in the Open field:

C:\Netsight Element Manager x.x\bin\AddDevType.exe [/M] [/D] input_filename

where:

/M or /m signals that the input file is in multi-line tag/data format

A-12

Using the AddDevType Utility

Page 232
Image 232
HP Netsight manual Executing the AddDevType Command, Tag/Data Format