Name

nnmicons.sh — NNMi UI Configuration

SYNOPSIS

nnmicons.sh -help

nnmicons.sh -list | -create (<iconSpec1,iconSpec2,...> | -file <file>) | -update (<iconSpec1,iconSpec2,...> | -file <file>) | -delete (<iconName1,iconName2,...> | -file <file>) [-preview] [-u <username> -p <password>] [-jndiHost <hostName> Default: localhost] [-jndiPort <port> Default: 1099]

DESCRIPTION

nnmicons.sh provides access to icons that are stored in the NNM database. The icons can be listed, created, update and deleted.

Parameters

nnmicons.sh supports the following commands:

-list

List the icons that are stored in the NNMi database

-create (<iconSpec1,iconSpec2,...> | -file <file>)

Create icons using either icon specifications or an input file.

<iconSpec1,iconSpec2,...>

comma separated list of icon specifications, where iconSpecN is of the form: iconName:authorKey[:<iconImageSpec1>[:<iconImageSpec2>]]

An iconImageSpecN is of the form, size:path. size is the size of the square image in pixels, and must either 16 or 32 path is the file path to the image file. The image file must be either a GIF, JPEG, or PNG, and the corresponding file suffix must be one .gif, .jpeg, .jpg, or .png

-file

Path to a file containing contain a list of iconSpecs, one per line. Blank lines and comment may also be included in the file. Comments are denoted by a '#' character at the beginning of a line.

-update (<iconSpec1,iconSpec2,...> | -file <file>)

Update icons using either icon specifications or an input file. If the icons do not exist, they will be created.

<iconSpec1,iconSpec2,...>

comma separated list of icon specifications, where iconSpecN is of the form: iconName:authorKey:<iconImageSpec1>:<iconImageSpec2>:...

An iconImageSpec is of the form, size:path. size is the size of the square image in pixels. path is the file path to the image file. The image file must be either a GIF, JPEG, or PNG, and the corresponding file suffix must be one .gif, .jpeg, .jpg, or .png

-file

Path to a file containing contain a list of iconSpecs, one per line. Blank lines and comment may also be included in the file. Comments are denoted by a '#' character at the beginning of a line.

-delete (<iconName1,iconName2,...> | -file <file>)

Delete icons using either icon names or an input file. If the icons do not exist, they will be ignored

<iconName1,iconName2,...>

iconNameN is the icon name associated with the icon.

-file

Path to a file containing contain a list of icon names, one per line. Blank lines and comment may also be included in the file. Comments are denoted by a '#' character at the beginning of a line.

-u <username>

Supply the NNMi administrator username to run the script.

-p <password>

Supply the NNMi administrator password to run the script.

-jndiHost<hostname>

The server jndi host; default is localhost.

-jndiPort<port>

The server jndi port; default is 1099.

EXAMPLES

List icons in NNMi database

 nnmicons.sh -list

Create icons using icons specifications:

 nnmicons.sh -create iconName1:com.customer.author:16:image16.gif:32:image32.gif,iconName2:com.customer.author:16:anotherimage16.gif

Update icons using a specification file:

 nnmicons.sh -update -f /tmp/iconSpecificationFile.txt

Delete icons using icon names:

 nnmicons.sh -delete iconName1,iconName2

AUTHOR

nnmicons.sh was developed by Hewlett Packard Enterprise.

FILES

$NMS_BIN/nnmicons.sh

SEE ALSO

None

Return to Reference Pages Index