
Hello,
I am using "smidump.exe -s -f ez" (smidump version 0.2.13) command to parse my mibs and get a formatted output. The output comes in this format
system|1.3.6.1.2.1.1|GP|NA sysDescr|1.3.6.1.2.1.1.1|S|RO sysObjectID|1.3.6.1.2.1.1.2|OI|RO sysUpTime|1.3.6.1.2.1.1.3|C[0,-1]|RO sysContact|1.3.6.1.2.1.1.4|S|RW sysName|1.3.6.1.2.1.1.5|S|RW snmpInTooBigs|1.3.6.1.2.1.11.8|C[0,-1]|RO snmpInNoSuchNames|1.3.6.1.2.1.11.9|C[0,-1]|RO snmpInBadValues|1.3.6.1.2.1.11.10|C[0,-1]|RO
If you look at the output, there's character 'C' for TimeTicks, Counter32, Gauge32 & Unsigned32 datatypes.
Is there a way I can get a specific character for each datatype so that I can distinguish between the data types.
Thanking in advance for your help.
Regards,
Raj Sohal Software Eng. Dorado Software, Inc.
-- !! 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.

Hi!
Raj> I am using "smidump.exe -s -f ez" (smidump version 0.2.13) Raj> command to parse my mibs and get a formatted output. The output Raj> comes in this format
Raj> system|1.3.6.1.2.1.1|GP|NA Raj> sysDescr|1.3.6.1.2.1.1.1|S|RO Raj> sysObjectID|1.3.6.1.2.1.1.2|OI|RO Raj> sysUpTime|1.3.6.1.2.1.1.3|C[0,-1]|RO Raj> sysContact|1.3.6.1.2.1.1.4|S|RW Raj> sysName|1.3.6.1.2.1.1.5|S|RW Raj> snmpInTooBigs|1.3.6.1.2.1.11.8|C[0,-1]|RO Raj> snmpInNoSuchNames|1.3.6.1.2.1.11.9|C[0,-1]|RO Raj> snmpInBadValues|1.3.6.1.2.1.11.10|C[0,-1]|RO
Raj> If you look at the output, there's character 'C' for TimeTicks, Raj> Counter32, Gauge32 & Unsigned32 datatypes.
Raj> Is there a way I can get a specific character for each datatype Raj> so that I can distinguish between the data types.
Raj> Thanking in advance for your help.
The 'ez' format you are using, is not supported by the original libsmi distribution. I don't know it. You should ask the person who wrote that format driver for your additional wishes.
From the libsmi API point of view it would be no problem to modify the
driver code so that it generates different output depending on the object types' syntax clauses.
-frank -- !! 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.

Hello,
I apologies, the format 'ez' is a customize format which gives a character for specific data type listed in "SmiBasetype".
Is it possible to include other data types like Counter32, Gauge32 & TimeTicks in SmiBasetype.
Thanking you once again for your impromptu response.
Regards,
Raj Sohal
-----Original Message----- From: strauss@ibr.cs.tu-bs.de [mailto:strauss@ibr.cs.tu-bs.de] Sent: Thursday, October 25, 2001 12:41 PM To: Raj Sohal Cc: libsmi@ibr.cs.tu-bs.de Subject: Re: [libsmi] Data Type Issue
Hi!
Raj> I am using "smidump.exe -s -f ez" (smidump version 0.2.13) Raj> command to parse my mibs and get a formatted output. The output Raj> comes in this format
Raj> system|1.3.6.1.2.1.1|GP|NA Raj> sysDescr|1.3.6.1.2.1.1.1|S|RO Raj> sysObjectID|1.3.6.1.2.1.1.2|OI|RO Raj> sysUpTime|1.3.6.1.2.1.1.3|C[0,-1]|RO Raj> sysContact|1.3.6.1.2.1.1.4|S|RW Raj> sysName|1.3.6.1.2.1.1.5|S|RW Raj> snmpInTooBigs|1.3.6.1.2.1.11.8|C[0,-1]|RO Raj> snmpInNoSuchNames|1.3.6.1.2.1.11.9|C[0,-1]|RO Raj> snmpInBadValues|1.3.6.1.2.1.11.10|C[0,-1]|RO
Raj> If you look at the output, there's character 'C' for TimeTicks, Raj> Counter32, Gauge32 & Unsigned32 datatypes.
Raj> Is there a way I can get a specific character for each datatype Raj> so that I can distinguish between the data types.
Raj> Thanking in advance for your help.
The 'ez' format you are using, is not supported by the original libsmi distribution. I don't know it. You should ask the person who wrote that format driver for your additional wishes.
From the libsmi API point of view it would be no problem to modify the
driver code so that it generates different output depending on the object types' syntax clauses.
-frank
-- !! 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.

Hi!
Raj> I apologies, the format 'ez' is a customize format which gives a Raj> character for specific data type listed in "SmiBasetype".
Raj> Is it possible to include other data types like Counter32, Gauge32 & Raj> TimeTicks in SmiBasetype.
No. These types are no basetypes in libsmi, they are treated as derived types, e.g. Counter32 is an Unsined32 with special semantics.
However, it is easy for you or whoever wrote the `ez' code to handle the types based on their names & modules. You might want to look at tools/dump-smi.c:getTypeString() to get an idea how to do this.
-frank
PS: Raj, please subscribe to the mailinglist, otherwise your posting can only appear after my approval, because it's a closed list. -- !! 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)
-
Frank Strauss
-
Raj Sohal