HI,
      I have included my own MIB file under .../mibs/ dir. And I have created 
my subagent by using mib2c
If run snmpget -v1 -c democommunity localhost .1.3.6.1.3.96.1.1.0 , I am 
getting the following output. But I supposed get the String format only...
Could u pls resolve this ?


iso.3.6.1.3.96.1.1.0 = Hex-STRING: 48 41 49 00 00 00 00 00 00 00 00 00 00 00 00 
00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00



My MIB file



IPCAM-MIB DEFINITIONS ::= BEGIN

IMPORTS
    MODULE-IDENTITY, OBJECT-TYPE, Integer32,
    NOTIFICATION-TYPE, experimental         FROM SNMPv2-SMI
    SnmpAdminString                         FROM SNMP-FRAMEWORK-MIB
    netSnmp                                 FROM NET-SNMP-MIB
    RowStatus, StorageType, DisplayString   FROM SNMPv2-TC
    InetAddressType, InetAddress,
    InetPortNumber                          FROM INET-ADDRESS-MIB
    InterfaceIndex                          FROM IF-MIB
;

ipCamera MODULE-IDENTITY
    LAST-UPDATED "200908080000Z"
    ORGANIZATION " "
    CONTACT-INFO
             "postal:
          email:"
    DESCRIPTION
        "subagents"
    REVISION     "200908080000Z"
    DESCRIPTION
            "Contains all MIBs of the IPcamera - scalars and tables"
    REVISION     "200908080000Z"
    DESCRIPTION
            "MIB - Draft version"
    ::= { experimental 96 }

--
-- Top level structure
--

ipCamSysGrp         OBJECT IDENTIFIER ::= { ipCamera 1 }
--
--ipCamSysGrp
--
ipCamName OBJECT-TYPE
    SYNTAX DisplayString (SIZE (0..15))
    ACCESS      read-write
    STATUS      current
    DESCRIPTION
            "Name of the Camera"
    ::= { ipCamSysGrp 1 }

END

If I run

Thanks & Regards,
Raghu


________________________________
http://www.mindtree.com/email/disclaimer.html
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to