Problems with set-request NET::SNMP

------_=_NextPart_001_01C5C989.FCA63742
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

Hello All,

I have a rather strange problem.

I am doing the following:

1 $result =3D $session->set_request (
2 -varbindlist =3D> [ "${secPvcBulkModeOid}.${nextVcatIndex}" ,
INTEGER, "1",
3 "${secPvcActionTypeOid}.${nextVcatIndex}" ,
INTEGER, "$actionType",
4 "${secPvcModeOid}.${nextVcatIndex}" ,
INTEGER, "$secPvcMode",
5
"${secPvcConnectionRoleOid}.${nextVcatIndex}" , INTEGER,
"$connectionRole",
6 "${secPvcUpdatePeriodOid}.${nextVcatIndex}"
, INTEGER, "$keyUpdatePer",
7 "${secPvcUpdateCountOid}.${nextVcatIndex}"
, INTEGER, "$keyUpdateCnt",
8 "${secPvcF5OAMOid}.${nextVcatIndex}" ,
INTEGER, "$F5status",
9# "${secPvcUpdateTimeOid}.${nextVcatIndex}" ,
OCTET_STRING, '# 0x0C 0x01' ]
10# "${secPvcUpdateTimeOid}.${nextVcatIndex}" ,
OCTET_STRING, "$keyUpdateTime" ]
11 "${secPvcRowStatusOid}.${nextVcatIndex}" ,
INTEGER, "4" ] );

The line with OCTET_STRING as the data type, is giving me grief.
According to the MIB definition, it should be in the form of # 0xHH
0xMM
Where HH and MM are hour and minutes in Hex format. My guess is that the
set-request is expecting a string but somehow PERL is passing it as ASCI
characters or ...

If I perform the set function from my SNMP MIB browser, it works fine.
When I comment line 9, executing the code will have $result variable set
to HASH(0x1e4d430)

If I don't comment line 9, $result will be set to "" (I think it returns
an empty string)

I can confirm that all other set-requests are done correctly using
get-request. Any idea's. I have spent the whole day on this and have
made progress. Please help me ( Pretty please with sugar on top)

Best regards
Bobby


------_=_NextPart_001_01C5C989.FCA63742--
Bobby Jafari [ Mi, 05 Oktober 2005 10:51 ] [ ID #998692 ]
Perl » gmane.comp.lang.perl.beginners » Problems with set-request NET::SNMP

Vorheriges Thema: what does "allowed rcpthosts" mean
Nächstes Thema: STAT function; limit a log file.