Hi,
Thanks for providing so powerful tool set "libsmi" for us to do the research.
But when I use the tool "smidump", I have encountered some problems. I couldn't convert mib file(*.mib
or *.txt) to schema file(*.xsd) successfully.
My operation is
step 1: download "libsmi" from your page
step 2: decompression the tool set
step 3: copy mib file (SNMPv2-SMI.txt) to the relatively path (c:\libsmi\bin)
step 4: open "cmd"
step 5: enter instructions c:\libsmi\bin\smidump -f xsd ./SNMPv2-SMI.txt>SNMPv2-SMI.xsd -k
The result on the screen are as follows:
./SNMPv2-SMI.txt:191: range limit exceeds underlying basetype
./SNMPv2-SMI.txt:191: range limits must be `lower-bound .. upper-bound'
./SNMPv2-SMI.txt:196: range limit exceeds underlying basetype
./SNMPv2-SMI.txt:196: range limits must be `lower-bound .. upper-bound'
./SNMPv2-SMI.txt:202: range limit exceeds underlying basetype
./SNMPv2-SMI.txt:202: range limits must be `lower-bound .. upper-bound'
./SNMPv2-SMI.txt:207: range limit exceeds underlying basetype
./SNMPv2-SMI.txt:207: range limits must be `lower-bound .. upper-bound'
./SNMPv2-SMI.txt:217: number `18446744073709551615' is out of range for SPPI 64b
it unsigned numbers
./SNMPv2-SMI.txt:217: range limits must be `lower-bound .. upper-bound'
smidump: module `./SNMPv2-SMI.txt' contains errors, expect flawed output
So, please tell me how to convert is successfully, thanks very much!
Plus, if the mib file import other module like SNMPv2-MIB, please tell me how to convert is
successfully. Thanks!
GreekDu
2009.5.28