01.10.2015 Views

HP Operations Manager for UNIX Administrator’s Reference

HP Operations Manager for UNIX Administrator's Reference

HP Operations Manager for UNIX Administrator's Reference

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

About the <strong>HP</strong>OM Java-Based Operator GUI<br />

Accessing NNM from the Java GUI<br />

Pattern Matching to Return Node Names<br />

The node mapping tool uses pattern matching to return a node name on<br />

stdout. When the problem node has been highlighted in the Node Bank,<br />

the node mapping tool uses pattern-matching to look up the specified<br />

node name on the corresponding NNM system. In this way, it locates the<br />

hostname or IP address patterns in a match table.<br />

The pattern-matching procedure is carried out from the top of the file to<br />

the bottom, until the first pattern matches. If a pattern matches, the<br />

specified target node will be returned. If none of the patterns match, the<br />

output will be empty.<br />

Syntax <strong>for</strong> the Node Mapping Tool<br />

You use the opcmapnode tool as a dynamic target node command in the<br />

<strong>HP</strong>OM application, in backquotes, as follows:<br />

‘opcmapnode ‘<br />

For more in<strong>for</strong>mation, see the man page opcmapnode(1m).<br />

Configuring the Node Mapping Tool<br />

When passed, opcmapnode reads the following file:<br />

/etc/opt/OV/share/conf/OpC/mgmt_sv/opcmapnode.conf<br />

This configuration file contains an <strong>HP</strong>OM pattern in every line, followed<br />

by a node name, or by the variable $MGMT_SERVER, as follows:<br />

^.site1.my.domain$ system1.my.domain<br />

^.site2.my.domain$ system2.my.domain<br />

^.$<br />

$MGMT_SERVER<br />

If opcmapnode is started in this configuration file, any nodes in domain<br />

site 1 are mapped to system 1, any nodes in domain site 2 are mapped to<br />

system 2, and all other nodes are mapped to the <strong>HP</strong> <strong>Operations</strong><br />

management server.<br />

NOTE<br />

If no node name is returned by opcmapnode, the only available NNM<br />

system is locally installed. If the mapping file does not exist, or if it<br />

contains no pattern lines, all NNM nodes will be mapped to the<br />

management server.<br />

312<br />

Chapter 9

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!