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 ?
hi there :)
i have an issue
this is my code
This function should return
*note i get this value on the same request from wireshark .
but the function return
and when i decode it the value become
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
and i test this on OLT GPON the old version on snmp v2c protocol
what can i do to fix this issue ?