Dear All:

I am Clement. I meet a problem about macaddress. The following is the mib
which I want to write:


---------------------------------------------------------------------------------------------------------------------------------------------
[MIB]

dot11GroupAddressesTable OBJECT-TYPE
       SYNTAX SEQUENCE OF Dot11GroupAddressesEntry
       MAX-ACCESS not-accessible
       STATUS current
       DESCRIPTION
           "A conceptual table containing a set of MAC addresses
           identifying the multicast addresses for which this STA
           will receive frames.  The default value of this attribute
           shall be null."
   ::= { dot11mac 3 }

dot11GroupAddressesEntry OBJECT-TYPE
       SYNTAX Dot11GroupAddressesEntry
       MAX-ACCESS not-accessible
       STATUS current
       DESCRIPTION
           "An Entry (conceptual row) in the Group Addresses Table.

           ifIndex - Each IEEE 802.11 interface is represented by an
           ifEntry.  Interface tables in this MIB module are indexed
           by ifIndex."
       INDEX { ifIndex,
               dot11GroupAddressesIndex}
   ::= { dot11GroupAddressesTable  1 }

Dot11GroupAddressesEntry ::=
       SEQUENCE {    dot11GroupAddressesIndex    Integer32,
                   dot11Address                MacAddress,
                   dot11GroupAddressesStatus   RowStatus }

dot11GroupAddressesIndex OBJECT-TYPE
       SYNTAX Integer32
       MAX-ACCESS not-accessible
       STATUS current
       DESCRIPTION
           "The auxiliary variable used to identify instances
           of the columnar objects in the Group Addresses Table."
   ::= { dot11GroupAddressesEntry 1 }

dot11Address OBJECT-TYPE
       SYNTAX MacAddress
       MAX-ACCESS read-create
       STATUS current
       DESCRIPTION
           "MAC address identifying a multicast addresses
           from which this STA will receive frames."
   ::= { dot11GroupAddressesEntry 2 }

dot11GroupAddressesStatus OBJECT-TYPE
       SYNTAX RowStatus
       MAX-ACCESS read-create
       STATUS current
       DESCRIPTION
           "The status column used for creating, modifying, and
           deleting instances of the columnar objects in the Group
           Addresses Table."
       DEFVAL { active }
   ::= { dot11GroupAddressesEntry 3 }

-- **********************************************************************
-- *    End of GroupAddress  TABLE
-- **********************************************************************

------------------------------------------------------------------------------------------------------------------------------------

The problem is when I perform mib2c and create the corresponding mib
template( I use mib2c.iterate_access)
After coding, when I perform ./get, I got the following result:

Walk dot11GroupAddressesTable
IEEE802dot11-MIB::dot11Address.1.0 = STRING: 11:22:33:44:55:66:1
IEEE802dot11-MIB::dot11Address.2.0 = STRING: 11:22:33:44:55:66:1
IEEE802dot11-MIB::dot11Address.3.0 = STRING: 11:22:33:44:55:66:1
IEEE802dot11-MIB::dot11Address.4.0 = STRING: 11:22:33:44:55:66:1
IEEE802dot11-MIB::dot11GroupAddressesStatus.1.0 = INTEGER: active(1)
IEEE802dot11-MIB::dot11GroupAddressesStatus.2.0 = INTEGER: active(1)
IEEE802dot11-MIB::dot11GroupAddressesStatus.3.0 = INTEGER: active(1)
IEEE802dot11-MIB::dot11GroupAddressesStatus.4.0 = INTEGER: active(1)

the error is that the EEE802dot11-MIB::dot11Address.1.0  should show
Hex-STRING: 11 22 33 44 55 66
not
STRING: 11:22:33:44:55:66:1

It seems as a problem about mib template, but I don't realize how to correct
that , can anyone give me any suggestion about that.  Any advice is highly
appreciated. Thanks a lot.

Best Regards,
Clement Hsu
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to