
Hi, 1. How I can extract the specific information about the Syntax of an particular attributes, i.e., Counter, Gauge, IpAddress etc. As of now I am able to get only some basic data types such as Integer, Float, Enum etc by using m_pSmiType = smiGetNodeType(m_pSmiNode); Basetype = m_pSmiType->basetype ; but I am unable to get the information if the attribute is defined as a IpAddress. How I can get these information using the smi library. 2. I think there is two "MAX-ACCESS" type is missed from the SmiAccess, they are "write-only" and "read-create"
regards Sanjay
__________________________________________________ Do You Yahoo!? Send FREE video emails in Yahoo! Mail! http://promo.yahoo.com/videomail/ -- !! This message is brought to you via the `libsmi' mailing list. !! Please do not reply to this message to unsubscribe. To subscribe or !! unsubscribe, send a mail message to libsmi-request@ibr.cs.tu-bs.de. !! See http://www.ibr.cs.tu-bs.de/projects/libsmi/ for more information.

On Fri, Jan 18, 2002 at 06:06:14AM -0800, Sanjay M wrote:
- How I can extract the specific information about
the Syntax of an particular attributes, i.e., Counter, Gauge, IpAddress etc. As of now I am able to get only some basic data types such as Integer, Float, Enum etc by using m_pSmiType = smiGetNodeType(m_pSmiNode); Basetype = m_pSmiType->basetype ; but I am unable to get the information if the attribute is defined as a IpAddress. How I can get these information using the smi library.
Counter, IpAddress, etc. are not basetypes. I.e., a Counter is derived from Integer (in SNMPv2-SMI). IpAddress is a well known textual convention in SNMPv2-TC.
To check if the type is IpAddress, you will have to string-compare m_pSmiType->name with "IpAddess". Caution! In the case of an implicit type declaration in the MIB module the name is null. So you will have to use smiGetParentType( m_pSmiType ) and do the comparison with the parent type.
Torsten -- !! This message is brought to you via the `libsmi' mailing list. !! Please do not reply to this message to unsubscribe. To subscribe or !! unsubscribe, send a mail message to libsmi-request@ibr.cs.tu-bs.de. !! See http://www.ibr.cs.tu-bs.de/projects/libsmi/ for more information.
participants (2)
-
Sanjay M
-
Torsten Klie