Tim Huffman wrote:
> I have an OID which returns '2' if the radio link is up, or '1' if the
> radio link is down. Similiarly, I have another OID which returns an
> number that tells you what type of radio it is (for example, 1 means
> that it is an Air-Pair 50, 2 means that it is an Air-Pair 100, and so
> on). How can I set the probe up to display something meaningful under
> the status window (i.e. so that the radio link OID would display 'Up' if
> the link is up (OID returns 2) or 'Down' if the link is down (OID
> returns 1)?
You can use an ${EVAL} expression in the display section:
Radio Link: ${EVAL: $oid == 2 ? "up" : "down" }
The ?: syntax can be chained as well:
Radio Type: ${EVAL: ($type == 1) ? "Air-Pair 50" : ($type == 2) ? "Air-Pair
100" : ($type == 3) ? "Air-Pair 150" :
"other" }
Regards,
Bill Fisher
Dartware, LLC
____________________________________________________________________
List archives:
http://www.mail-archive.com/intermapper-talk%40list.dartware.com/
To unsubscribe: send email to: [EMAIL PROTECTED]