Skip to content

Wrong return value :( #7

@blackangiliq

Description

@blackangiliq

hi there :)
i have an issue

this is my code

void GitOid() async {
    var target = InternetAddress('10.11.104.7');
    var session = await Snmp.createSession(
      target,
      port: 161,
      community: "private123",
    );
    var oid = Oid.fromString('1.3.6.1.4.1.2011.6.128.1.1.2.43.1.3.4194315520.25');
    // sysDesc
    var message = await session.get(oid); 

    print(message.pdu.varbinds[0].value); // outputs system description

  }

This function should return

1.3.6.1.4.1.2011.6.128.1.1.2.43.1.3.4194315520.25: 485754433236cc37
Object Name: 1.3.6.1.4.1.2011.6.128.1.1.2.43.1.3.4194315520.25 (iso.3.6.1.4.1.2011.6.128.1.1.2.43.1.3.4194315520.25)
Value (OctetString): 485754433236cc37

*note i get this value on the same request from wireshark .

but the function return

Base64 value
SFdUQzI2zDc=

and when i decode it the value become

HWTC267

This value is not totally wrong , but it is not the full value that I want from the function to return. It should be like this:
HWTC3236CC37

and it is the same value the ont have it on the user side that look like this

485754433236cc37

and i test this on OLT GPON the old version on snmp v2c protocol

what can i do to fix this issue ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions