What is the correct way to send datetime to UTC in SNMPV2 event using SNMPSHARPNET?
We are using the TimeTex ASNTP type but have been running data issues for 29 and half days.
This is the code for reference:
asnType newMIBValue = null; If (! String.InsalOreactString) {switch (datatype) {case MIBDataType.DateAndTime: // newMIBValue = newTyTyX (MIBValueString); NewMIBValue = Conversion DataToOctatString (MIBValueString); break; Case MIBDataType.SnmpAdminString: newMIBValue = New OctetString (MIBValueString); break; Case MIBDataType.TimeTicks: newMIBValue = New TimeTeX (MIBValueString); break; Case MIBDataType.IPAddress: newMIBValue = new IPA (MIBValueString); break; Case MIBDataType.Integer: newMIBValue = New Integer32 (MIBValueString); break; Default: Break; }}
Use OCTET STRING for routine items. The timetix is a non-negative integer, which specifies the time elapsed between two events, units of one hundredths of a second.
No comments:
Post a Comment