Table of Contents

Class TrapV1Message

Namespace
Lextm.SharpSnmpLib.Messaging
Assembly
SharpSnmpLib.dll

Trap message.

public sealed class TrapV1Message : ISnmpMessage
Inheritance
TrapV1Message
Implements
Inherited Members
Extension Methods

Constructors

TrapV1Message(Sequence)

Creates a TrapV1Message instance with a message body.

public TrapV1Message(Sequence body)

Parameters

body Sequence

Message body

TrapV1Message(VersionCode, IPAddress, OctetString, ObjectIdentifier, GenericCode, int, uint, IList<Variable>)

Creates a TrapV1Message with all content.

[CLSCompliant(false)]
public TrapV1Message(VersionCode version, IPAddress agent, OctetString community, ObjectIdentifier enterprise, GenericCode generic, int specific, uint time, IList<Variable> variables)

Parameters

version VersionCode

Protocol version

agent IPAddress

Agent address

community OctetString

Community name

enterprise ObjectIdentifier

Enterprise

generic GenericCode

Generic

specific int

Specific

time uint

Time

variables IList<Variable>

Variables

Properties

AgentAddress

Agent address.

public IPAddress AgentAddress { get; }

Property Value

IPAddress

Community

Community name.

public OctetString Community { get; }

Property Value

OctetString

Enterprise

Enterprise.

public ObjectIdentifier Enterprise { get; }

Property Value

ObjectIdentifier

Generic

Generic type.

public GenericCode Generic { get; }

Property Value

GenericCode

Header

Gets the header.

public Header Header { get; }

Property Value

Header

Parameters

Gets the parameters.

public SecurityParameters Parameters { get; }

Property Value

SecurityParameters

The parameters.

Remarks

TrapV1Message returns null here.

Privacy

Gets the privacy provider.

public IPrivacyProvider Privacy { get; }

Property Value

IPrivacyProvider

Scope

Gets the scope.

public Scope Scope { get; }

Property Value

Scope

The scope.

Remarks

TrapV1Message returns null here.

Specific

Specific type.

public int Specific { get; }

Property Value

int

TimeStamp

Time stamp.

[CLSCompliant(false)]
public uint TimeStamp { get; }

Property Value

uint

Version

Protocol version.

public VersionCode Version { get; }

Property Value

VersionCode

Methods

ToBytes()

To byte format.

public byte[] ToBytes()

Returns

byte[]

ToString()

Returns a string that represents the current TrapV1Message.

public override string ToString()

Returns

string