snmpget , Hex-string format

Raghu Ramaraj <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <DE1563FF5EF45A4794D1220EF0363CB4115FF48BA7@MTW02MSG02.mindtree.com>
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
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.