SNMPv2 NoSuchObject error
Namespace:
SnmpSharpNetAssembly: SnmpSharpNet (in SnmpSharpNet.dll) Version: 0.5.2.0 (0.5.2.0)
Syntax
| C# |
|---|
[SerializableAttribute] public class NoSuchObject : V2Error |
| Visual Basic (Declaration) |
|---|
<SerializableAttribute> _ Public Class NoSuchObject _ Inherits V2Error |
| Visual C++ |
|---|
[SerializableAttribute] public ref class NoSuchObject : public V2Error |
Remarks
NoSuchObject is returned by the agent in response to a SNMP version 2 request
when requested object does not exist in its MIB.
This value is returned as a with data of length 0
For example:
CopyC#
[... prepare for a get operation ...] Pdu response = target.Request(outpdu, params); foreach(Vb vb in response.VbList) { if( vb.Value is NoSuchObject ) { return "Requested MIB variable does not exist on the agent."; } }