Encode SNMP version 3 packet
Namespace: SnmpSharpNetAssembly: SnmpSharpNet (in SnmpSharpNet.dll) Version: 0.9.1.0 (0.9.1)
Syntax
| C# |
|---|
public byte[] encode( byte[] authKey, byte[] privKey ) |
| Visual Basic |
|---|
Public Function encode ( _ authKey As Byte(), _ privKey As Byte() _ ) As Byte() |
| Visual C++ |
|---|
public: array<unsigned char>^ encode( array<unsigned char>^ authKey, array<unsigned char>^ privKey ) |
Parameters
- authKey
- Type: array<System..::..Byte>[]()[][]
Authentication key (not password)
- privKey
- Type: array<System..::..Byte>[]()[][]
Privacy key (not password)
Return Value
Byte array BER encoded SNMP packet.
Remarks
Before encoding the packet into a byte array you need to ensure all required information is
set. Examples of required information is request type, Vbs (Oid + values pairs), USM settings including
SecretName, authentication method and secret (if needed), privacy method and secret (if needed), etc.