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.

Configuring <strong>HP</strong>OM<br />

About Variables<br />

Variables <strong>for</strong> SNMP Trap Templates Only<br />

You can use the following variables in most entry fields (exceptions are<br />

noted) <strong>for</strong> SNMP trap text. You can use the variables within <strong>HP</strong>OM, or<br />

pass them to external programs.<br />

Returns the number of variables in an<br />

enterprise-specific SNMP trap (generic trap 6<br />

Enterprise specific ID).<br />

Sample output:<br />

2<br />

Returns all variables assigned to the trap.<br />

Sample output:<br />

[1] .1.1 (OctetString): arg1 [2] .1.2<br />

(OctetString): kernighan.c.com<br />

<br />

Returns the time the event was received as the number<br />

of seconds since the Epoch (Jan 1, 1970) using the<br />

time_t representation.<br />

Sample output:<br />

859479898<br />

Returns one or more of the possible trap parameters<br />

that are part of an SNMP trap (<strong>for</strong> example, <br />

returns the first variable, returns the second<br />

variable, and so on)<br />

1> Returns all attributes greater than n as value strings,<br />

which are useful <strong>for</strong> printing a variable number of<br />

arguments. 0> is equivalent to $* without<br />

sequence numbers, names, or types.<br />

Sample output:<br />

richie.c.com<br />

+1> Returns all attributes greater than n as name:value<br />

string.<br />

Sample output:<br />

.1.2: richie.c.com<br />

146<br />

Chapter 2

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

Saved successfully!

Ooh no, something went wrong!