Quantcast
Channel: C# Based Open Source SNMP Library for .NET and Mono
Viewing all articles
Browse latest Browse all 576

New Post: Using a Sequence datatype with SendTrapV2

$
0
0
As your final data in the TRAP v2 message will be of OctetString type, you should do the following,
  1. Construct the Sequence object as above.
  2. Construct an OctetString object to embed the Sequence object, such as var stringData = new OctetString(seq.ToBytes());.
Then this OctetString object can be sent on the wire. The receiver just needs to decode it correctly so as to get the Sequence inside, such as var seq = (Sequence)DataFactory.CreateSnmpData(stringData.GetRaw());

Viewing all articles
Browse latest Browse all 576

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>