I have been following the net-snmp tutorial on creating a MIB.
The outline of the structure I have come up with so far is ...

AC-TRAPS-MIB DEFINITIONS ::= BEGIN

IMPORTS
        stuff
        FROM RFC blah

        actrap MODULE-IDENTITY
                LAST-UPDATED
                ORGANIZATION
                CONTACT-INFO
                DESCRIPTION
                etc
                ::= { Telindus 69 }

        customerDetails     OBJECT IDENTIFIER ::= { actrap 1 }

        tcaphostname OBJECT-TYPE
                SYNTAX  DisplayString
                ACCESS  Not-accessible
                STATUS  mandatory
                DESCRIPTION "TCAP hostname"
                ::= { customerDetails 1 }

        aTrap   TRAP-TYPE
                ENTERPRISE  customerDetails  
        VARIABLES     { tcaphostname }
        DESCRIPTION "The tcap hostname."
        ::= 1

When I compile this using the SNMP::MIB::Compiler Perl module from CPAN,
it compiles without error but doesn't produce a compiled MIB file.
I have tried various other vendor mib files and they have compiled ok,
AND dumped a compiled mib file.

Does the syntax look ok?

What I would also like to ask is, am I walking down the right path here.
What I am essentially trying to do is bolt on to the net-snmp Perl
Traphandler a method to translate the OID value to the relative OID
string by way of a lookup. The Perl Traphandler decodes the trap
beautifully. What I'm not sure about is whether there is already a
method to do this within the Traphandler. The SNMP::MIB::Compiler
provices method such as
        - $mib->resolve_oid('ciscoConfig')
        - $mib->convert_oid('1.3.6.1.4.1.9.8')

As ever, any suggestions would be greatly received

Thanks

Andy


-- 
perl -e "print qq^bIG VeRN ! ^^qq^#'#Yv#=<D+ ^"

This e-mail is private and may be confidential and is for the intended 
recipient only.  If misdirected, please notify us by telephone and confirm that 
it has been deleted from your system and any copies destroyed.  If you are not 
the intended recipient you are strictly prohibited from using, printing, 
copying, distributing or disseminating this e-mail or any information contained 
in it.  We use reasonable endeavours to virus scan all e-mails leaving the 
Company but no warranty is given that this e-mail and any attachments are virus 
free.  You should undertake your own virus checking.  The right to monitor 
e-mail communications through our network is reserved by us. 




-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
_______________________________________________
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

Reply via email to