Manipulating fields with a 'Bits' SYNTAX

Bik Mani <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Hi,

I am having trouble setting a bit field.  
userIdType is defined as SYNTAX BITS (32 bits, Bit00 to Bit31).

I tried setting $value to:
'1,2,3',
0xFC000000
and tried other ways but I keep getting:
     "wrongValue (The set value is illegal or unsupported in some way)"

Here is how I tried to set:

 my $vars = new SNMP::VarList(["userIdType", $userID, $value, "Bits"]);
 $self->{snmp}->set($vars);

Note: I have no problem setting the value using snmpset.  I passed the value s as comma separated bit positions.

Thanks for the help.
-bik


		
---------------------------------
 Yahoo! DSL Something to write home about. Just $16.99/mo. or less
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.