Hi,
I have some notes regarding the operation of smilint 0.3.0 (under NT/cygwin 1.3.9 environment),
used as d:\cygwin\usr\local\bin\smilint -s -i import-unused -l 6 mibfile:
1. smilint seems to require SYNTAX clause before an enumerated DEFVAL clause in an AC VARIATION
clause, otherwise:
'D:\DATA\SNMPmibs\CDXC1616-AC.MIB:423: [2] default value syntax does not match object syntax' is
output.
Although once it's used, further SYNTAX statements for further VARIATION clauses of the same type
are not required within the same SUPPORTS clause. But another SUPPORTS clause needs to repeat the
SYNTAX statement.
2. Within an AGENT-CAPABILITIES macro, if an object within a group which is not within an INCLUDES
clause, but is mentioned in a subsequent VARIATION clause, should a warning or error of some sort be
generated?
3. Smilint never seems to mind if hyphens are left in object or TC names, even when it knows the
mib must be SMIv2.
Example for 1:
IMPORTS
: : : :
augBidirectional,
sdhNE,
opticalSPITTPBidirectional,
rsTTPTrailTraceBidirectional,
msTTPBidirectional,
au4CTPBidirectionalR1,
vc4TTPBidirectionalR1
FROM WD-G774-MIB;
: : : :
SUPPORTS WD-G774-MIB
INCLUDES { sdhNE, opticalSPITTPBidirectional,
rsTTPTrailTraceBidirectional, msTTPBidirectional,
au4CTPBidirectionalR1, vc4TTPBidirectionalR1 }
: : : :
VARIATION g774SdhNEAdministrativeState
SYNTAX AdministrativeState -- <===== Need this line
ACCESS read-only
DEFVAL { unlocked } -- <===== Else this is rejected
DESCRIPTION
"It will not be possible to set this attribute value from the
management station. It will indicate unlocked, or possibly
shutting down."
VARIATION g774OSPITTPBiAdministrativeState
ACCESS read-only -- <===== SYNTAX now not needed
DEFVAL { unlocked }
DESCRIPTION
"It will not be possible to set this attribute value from the
management station. It will indicate unlocked, or possibly
shutting down."
: : : :
Example for 2:
IMPORTS
: : : :
augBidirectional,
sdhNE,
opticalSPITTPBidirectional,
rsTTPTrailTraceBidirectional,
msTTPBidirectional,
au4CTPBidirectionalR1,
vc4TTPBidirectionalR1
FROM WD-G774-MIB;
: : : :
SUPPORTS WD-G774-MIB
INCLUDES { sdhNE, opticalSPITTPBidirectional,
rsTTPTrailTraceBidirectional, msTTPBidirectional,
au4CTPBidirectionalR1, vc4TTPBidirectionalR1 }
: : : :
VARIATION augBidirectional -- <===== GROUP not part of INCLUDES
DESCRIPTION
"Not supported at present, all msTTPBidirectional and
protectedTTPBidirectional objects will 'contain'
au4CTPBidirectionalR1 objects directly as there is a 1:1
containment relationship between AUG and MS TTP for ETSI systems"
VARIATION g774AugBiAugId -- <===== object not part of INCLUDES
DESCRIPTION
"Not supported at present, all msTTPBidirectional and
protectedTTPBidirectional objects will 'contain'
au4CTPBidirectionalR1 objects directly as there is a 1:1
containment relationship between AUG and MS TTP for ETSI systems"
: : : :
Any comments would be appreciated - Thanks for a great set of tools!
Regards,
Tim Riches
Principal Design Engineer
--------------------------------------------------------------
Westbridge Design Ltd
Hurst Barns, Hurst Lane
Privett, Alton
Hants, GU34 3PL
UK
e-mail: tim.riches(a)westbridge-design.co.uk
Tel: +44 (0)1730 828111
Fax: +44 (0)1730 828123