itnmMetaDiscoAudit.pl
Use the itnmMetaDiscoAudit.pl script to generate a report that contains audit information on device classification, and missing device metadata. The output also includes templates of SQL inserts that you can use to rectify missing metadata issues.
Generate a report
To run the script to generate a report, use a command similar to the following example:
$NCHOME/precision/bin/ncp_perl $NCHOME/precision/scripts/perl/scripts/
itnmMetaDiscoAudit.pl –domain NCOMS –report > my_report.txt
Generate a report for specific devices
To run the script to generate a report for specific devices use a command similar to the following exampleNote: The -entity command-line option
can be used multiple times, In this example it is used twice, once with an entity identifier, and
the second time with an IP address.
: $NCHOME/precision/bin/ncp_perl $NCHOME/precision/scripts/perl/scripts/
itnmMetaDiscoAudit.pl –domain NCOMS –report –entity 500 –entity 10.10.10.1
> my_report.txt
Generate a report to exclude specific device classes (AOCs)
To run the script to generate a report that excludes specific device classes, use a command similar to the following example:$NCHOME/precision/bin/ncp_perl $NCHOME/precision/scripts/perl/scripts/
itnmMetaDiscoAudit.pl –domain NCOMS –report –exclude AIX –exclude SunView device membership for specified device classes (AOCs)
To run the script to view device membership for specified device classes, use a command similar to the following example:
$NCHOME/precision/bin/ncp_perl $NCHOME/precision/scripts/perl/scripts/
itnmMetaDiscoAudit.pl –domain NCOMS –showClassCisco –showClassIBM
Command line options
The following table describes the command line options for the script.
| Command line option | Description |
|---|---|
| -domain DomainName | Mandatory; the name of the domain where you want to start, stop, or display status of a discovery. |
| -report | Optional; instructs the script to generate the output in a report. |
| -showclass | Optional; instructs the script to produce output that shows device membership
for specified device classes. Note: The -showclass option cannot be used with the
-report option.
|
| -version | Prints the version and exits. |
| -entity entity ID | entity name |IP address | Optional; instructs the script to produce output for specific entities only.
Entities can be specified by NCIM topology database entity identifier, by IP address, or by entity
name. Note: This option can be used multiple times.
|
| -exclude parameter | Optional; instructs the script to produce output that excludes specified
parameters from the output tables; for example, entityId, className, or sysObjectId. Note: This
option can be used multiple times.
|
| -maxTableRows number | Limits the output table sizes to the specified number of rows. The default is 250 rows. |
| -timeLimit seconds | Limits the tool runtime to the specified number of seconds. The default is 300 seconds (5 minutes). |
| -help | Displays help. |
| -debug | Runs the script in debug mode. |
| -v | Optional; provides more information on the screen. |
Script output
The script generates output in the following distinct sections:
- AOC Class Hierarchy and Device Membership
- Visualizes the AOC device class tree and indicates how many devices are in each class. The
marker
###is used to bring specific AOC classes to your attention. For example, consider the following output snippet:1 Core 5 |--- NetworkDevice 3 device(s) ### 127 | |--- Redback (Router) 71 | |--- Dasan (Switch) 118 | |--- Nortel (NetworkDevice) 119 | | |--- BayWellfleet (Router) 120 | | |--- Centillion (Switch) 121 | | |--- NortelEthernetRoutingSwitch (Router) 123 | | `-- NortelPassport (Switch) 124 | | |--- NortelPassport15000 (Switch) 171 | | |--- NortelPassport8xxx (Switch) 125 | | `-- NortelPassport7000 (Switch) 358 | |--- Moxa (NetworkDevice) 359 | | `-- MoxaNPortExpress (NetworkDevice) 220 | |--- RANBaseStation (Transmitter) 11 | |--- Adtran (Router) 12 | | |--- AdtranMX2800 (Router) 13 | | `-- AdtranNetVanta (Router) - Device Discovery Audit
- Lists the devices with missing MIB data, and highlights the MIB data fields that are missing for
each device listed. For each device, the following identifying information is provided:
- Entity identifier (entityId)
- Entity name
- IP address
- Device class
- MIB system object ID
- Metadata Audit
- Lists the devices with missing metadata, and highlights the metadata fields that are missing for
each device listed. For each device, the following identifying information is provided:
- Entity identifier (entityId)
- Entity name
- IP address
- Device class
- MIB system object ID
- Recommended SQL Inserts
- Lists recommended SQL insert templates. Use these templates to add the missing metadata to the
database. The templates highlight the information that you need to add to get a working insert. For
example, in the output that follows, you must provide values to replace the following dummy entries:
__deviceModel____deviceFunction__
INSERT INTO deviceFunction VALUES ('Avocent', '1.3.6.1.4.1.10418',
'1.3.6.1.4.1.10418.7.1.3', '__deviceModel__', '__deviceFunction__'); INSERT INTO deviceFunction VALUES ('Cisco', '1.3.6.1.4.1.9',
'1.3.6.1.4.1.9.1.1642', '__deviceModel__', '__deviceFunction__'); INSERT INTO deviceFunction VALUES ('Extreme Networks', '1.3.6.1.4.1.1916',
'1.3.6.1.4.1.1916.2.93', '__deviceModel__', '__deviceFunction__');