Sure, you can do it like this (snagged from the host resources mib):

hrDeviceStatus OBJECT-TYPE
    SYNTAX     INTEGER {
                   unknown(1),
                   running(2),
                   warning(3),
                   testing(4),
                   down(5)
               }

I believe you're not supposed to use 0 as an enumerator, also.

-Dan




2008/6/23 Brian Stark <[EMAIL PROTECTED]>:
> I would like to add a variable to my MIB so that I can send commands to my
> device using the set command.  What I would like in my MIB file is something
> similar to a C enum structure.  So that an MIB browser would recognize that
> the variable can be set to a specific set of values with human readable
> tags.  For example if I name my variable Send_Action, with the variable
> accepting the values: 1-Clear alarm, 2-Reset Device.  Is there a way to
> describe this in the MIB file so that a generically written MIB browser
> would be able to present this to the user in a logical way?
>
>
>
> -----------------------------
> Brian D. Stark
> Senior Software Engineer
>
> MISSION TECHNOLOGY GROUP, INC. dba Magma
> 9918 Via Pasar, San Diego, CA 92126
> p: 858.530.2511 ext. 245
> f: 858.530.2733
> m: 760.889.2774
>
> [EMAIL PROTECTED]
> www.magma.com
>
> A Service Disabled Veteran Owned Company
> ISO 9001:2000 certified
>
> Pioneering Computer Bus Expansion Technology
>
>
>
> -------------------------------------------------------------------------
> Check out the new SourceForge.net Marketplace.
> It's the best place to buy or sell services for
> just about anything Open Source.
> http://sourceforge.net/services/buy/index.php
> _______________________________________________
> Net-snmp-users mailing list
> [email protected]
> Please see the following page to unsubscribe or change other options:
> https://lists.sourceforge.net/lists/listinfo/net-snmp-users
>
>

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to