On tor, 2007-03-29 at 13:23 +0800, Clement Hsu wrote:
> Dear All:
> 
> I am Clement. I meet a problem about macaddress. The following is the
> mib which I want to write:
> 
> 
> ---------------------------------------------------------------------------------------------------------------------------------------------
>  
> [MIB]
...
> 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 }

> 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

This is expected since your MIB states that you should use MacAddress as
syntax for dot11Address and MacAddress has a DISPLAY-HINT of "1x:"

The big question is why there are seven entries in your address.

/MF


-------------------------------------------------------------------------
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