Managing NerveCenter - Managing the Database - ncdb2html.pl -
Transferring Data between Databases      Troubleshooting: Managing the NerveCenter Database

ncdb2html.pl

Included in NerveCenter 3.8 is a utility that will convert *.ncdb and *.node files to HTML, so that you can easily know what NerveCenter objects are in your database.

Sample ncdb2html.pl Output

nc2html7

Output of ncdb2html.pl details the contents of the HTML output:

Output of ncdb2html.pl

File Contents

ncindex.html

Summarizes the contents of your database. Provides links to all other pages. Contains the following categories:

nodes.html

Details each alarm in your database, including the following information:

alarms.html

Details each alarm in your database, including the following information:

perlsub.html

Lists all Perl subroutines in your database.

triggers.html

Lists all triggers in your database, including the following information:

polls.html

Details each poll in your database, including the following information:

masks.html

Details each trap mask in your database, including the following information:

property.html

Lists all properties defined in your database and the property groups they belong to.

propertygrp.html

Lists all property groups in your database and all properties included in each group

severities.html

Details each severity defined in your database, including the following information:

oidtogroup.html

Lists all OIDs in your database and the MIB module the OID belongs to.


The *.ncdb and*.node files are the database format on UNIX systems. To convert Access or SQL NerveCenter databases, use the SerialzeDB utility. For more information about SerializeDB, see Managing NerveCenter or the SerializeDB help.

 
  To convert *.ncdb and *.node to HTML:

  1. From a command line or UNIX prompt, navigate to the installation/Samples/ncdb2html directory.
  2. Type the following command:
       ncdb2html.pl -ncdb=path/filename.ncdb -node=path/filename.node -h -dir=output_directory

    The options for this script are detailed in ncdb2html.pl Options:

    ncdb2html.pl Options

    Option Description

    -ncdb=ncdb_file

    Required. Specify the location of ncdb file (./NerveCenter.ncdb is default)

    -node=node_file

    Optional. Specify the location of the node file (no default)

    -dir=output_directory

    Specify the directory to place the HTML files (current directory is the default)

    -title=title

    Specify a title for the top of each page (no default)

    -h

    Hide the community strings on the node page

    -sh

    Suppress the Open header at the top of each page

    -usage

    Display usage information and exit



Transferring Data between Databases Troubleshooting: Managing the NerveCenter Database
29 July 2003