Don:

You can use the ?: syntax in a calculation:

paperType,      ($media1 == 3) ? "Plain Paper" :  \
                        ($media1 == 32735) ? "White Inkjet Paper" : \
                        ($media1 == 32736) ? "Thin Natural Tracing" : \
                           "Unknown ($media1)",                               
CALCULATION, "Paper Type"
Regards,

Bill Fisher
Dartware, LLC



On Aug 18, 2005, at 10:01 PM, Levinson, Don A. wrote:

Is there a way to take a SNMP numeric variable and compare it to a table
of static values to return the string associated with that value? Some
kind of if/then or case/next syntax?

The variable is
        TRAY1_MEDIA_TYPE,                       ${HP-PML}.1.4.1.3.3.1.6,
DEFAULT,        "Media Type"
And the table is
                                             3      Plain Paper
                                             32735  White Inkjet Paper
32736 Thin Natural Tracing
                                             32752  Natural Tracing
Paper
                                             32753  Coated Paper
                                             32754  Clear Film
                                             32755  High Gloss Photo
                                             32756  Semi-Gloss Photo
                                             32758  Heavy Coated Paper
                                             32764  Vellum
                                             32767  Translucent Bond
                                             32768  Matte Film
32750 Imaging Film Backlit
                                             32757  High Gloss Film
                                             32749  Opaque Vinyl\0mp\


____________________________________________________________________
List archives: http://www.mail-archive.com/intermapper-talk%40list.dartware.com/
To unsubscribe: send email to: [EMAIL PROTECTED]

Reply via email to