11.1 Customizing Icon Display

Elements originating from OpenView or NetView networks display with the standard icons used by the management system. Other elements display with icons from the Operations Center Icon Library based on the element’s class.

Customized icons can be assigned for any non-system object class to replace the default icon. Custom icons display anywhere the element is represented in the Operations Center console. This includes the Element column in the Summary and Alarms views.

Figure 11-1 Element Icons Displayed in Alarms View

To customize the display of icons:

11.1.1 Assigning an Icon to the Class

To assign a new icon to a class of elements:

  1. In the Explorer pane, expand Administration > Metamodel > Classes > Custom.

    Open the section that contains the class for which you want to assign a new icon to update the View pane.

  2. Do one of the following:

    • Right-click the class and select Properties. When the Properties dialog opens, select the Class tab.

    • Select the class, then open the Portal view. Click the Down Arrow for the Class box.

  3. To assign a new icon, do one of the following:

    • Select the Assign Icon from the Icon Library radio button, click the Icon drop-down list, then select the existing icon to display for the class.

    • Select the Define Icon Using Custom Graphics radio button (Small Icon or Large Icon), click Browse, navigate to the icon, then click Open.

      The selected icon displays on the Create Class dialog box.

  4. Click Apply to display the new icon for the class.

11.1.2 Animating Element Icons

An animated icon can be created through the automation utility, or through a programmatic script, such as the Operations.ini file.

The icon must be in a .gif format. Only GIF images can be applied as animated icons.

To create and use a customized animated icon:

  1. Determine the object’s class.

    For more information, see Section 11.2, Determining an Element’s Class Name.

  2. Move the /OperationsCenter_install_path/database/examples/Operations.ini file to the /OperationsCenter_install_path/database directory.

  3. In a text editor, edit the Operations.ini as required. For example:

    [Set Blinking]
    description=Set to Blinky
    target=dnamematch:.*/root=Organizations
    context=element
    type=serverscript
    operation=\
    // @debug off \n \
    element.setGraphic( '/images/large/blinkit.gif' )
    command=Blink
    
    [Unset Blinking]
    description=Set to non‑Blinky
    target=dnamematch:.*/root=Organizations
    context=element
    type=serverscript
    operation=\
    // @debug off \n \
    element.setGraphic( '/images/large/unblink.gif' )
    command=UnBlink
    
    [Clear Graphic]
    description=Clear Graphic
    target=dnamematch:.*/root=Organizations
    context=element
    type=serverscript
    operation=\
    // @debug off \n \
    element.setGraphic( '' )
    command=Clear
    

    Elements of the specified class use the animated icon as specified.