On 18 July 2012 13:35, Benix Vincent <[email protected]> wrote:
> When and how Display string, octet string and snmp admin sting should be
> used in data type?
Octet String is the underlying base type.
Defining a MIB object using this type doesn't say anything about what
sort of value the object should contain (other than that it will be a
sequence of octet values).
In particular, there is no implication that the value will necessarily
be a printable string.
Both DisplayString and SnmpAdminString *are* intended for printable
string values. The difference between them is whether the string is
purely ASCII text (DisplayString), or can potentially contain other
characters (such as accented or non-roman characters).
> For a product model name, what is the correct object type to be used?
If you are working from a pre-existing MIB file, then you should follow
what is defined there.
If you are defining a new MIB file, then it's probably sensible to use
SnmpAdminString. That leaves the way open to support international
values in the future - even if you don't expect to need this at the moment.
Dave
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
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