package
0.1.0-rc1
Repository: https://github.com/thebinary/go-snmp-grpc.git
Documentation: pkg.go.dev

# README

Protocol Documentation

Table of Contents

Top

protobuf/snmp.proto

SNMP Protobuf.

A protobuf interface to SNMP functions.

Oid

Represents SNMP OID.

FieldTypeLabelDescription
oidstringSNMP OID

OidList

Represents list of SNMP Oids

FieldTypeLabelDescription
oidsstringrepeatedList of SNMP OIDs

SnmpPDU

Represents a single SNMP PDU consisting of oid, type and a value.

The value is in any one of the following fields, determined by the type of value it stores.

FieldTypeLabelDescription
NamestringOID
TypeAsn1BERPDU Type (Asn1BER encoding type)
I32int32Stores 32-bit integer
I64int64Stores 64-bit signed integer
UI32uint32Stores 32-bit unsigned integer
UI64uint64Stores 64-bit unsigned integer
StrstringStores string

SnmpPDUs

Represents multiple SNMP PDU

FieldTypeLabelDescription
pdusSnmpPDUrepeated

SnmpPacket

FieldTypeLabelDescription
Erroruint32
VariableSnmpPDUrepeated

Asn1BER

Asn1Ber Enum Type definitions

NameNumberDescription
EndOfContents0
UnknownType0
Boolean1
Integer2
BitString3
OctetString4
Null5
ObjectIdentifier6
ObjectDescription7
IPAddress64
Counter3265
Gauge3266
TimeTicks67
Opaque68
NsapAddress69
Counter6470
Uinteger3271
OpaqueFloat120
OpaqueDouble121
NoSuchObject128
NoSuchInstance129
EndOfMibView130

Command

The SNMP command service.

Method NameRequest TypeResponse TypeDescription
GetOidListSnmpPacketSNMP Get given the list of OIDs
SetSnmpPDUsSnmpPacketSNMP Set
WalkOidSnmpPDUsSNMP Walk and return all variables in one shot
StreamWalkOidSnmpPDU streamStream each SNMP PDU while running SNMP WALK from the given OID.

Scalar Value Types

.proto TypeNotesC++ TypeJava TypePython Type
doubledoubledoublefloat
floatfloatfloatfloat
int32Uses variable-length encoding. Inefficient for encoding negative numbers – if your field is likely to have negative values, use sint32 instead.int32intint
int64Uses variable-length encoding. Inefficient for encoding negative numbers – if your field is likely to have negative values, use sint64 instead.int64longint/long
uint32Uses variable-length encoding.uint32intint/long
uint64Uses variable-length encoding.uint64longint/long
sint32Uses variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int32s.int32intint
sint64Uses variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int64s.int64longint/long
fixed32Always four bytes. More efficient than uint32 if values are often greater than 2^28.uint32intint
fixed64Always eight bytes. More efficient than uint64 if values are often greater than 2^56.uint64longint/long
sfixed32Always four bytes.int32intint
sfixed64Always eight bytes.int64longint/long
boolboolbooleanboolean
stringA string must always contain UTF-8 encoded or 7-bit ASCII text.stringStringstr/unicode
bytesMay contain any arbitrary sequence of bytes.stringByteStringstr

# Functions

No description provided by the author
No description provided by the author

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Variables

Enum value maps for Asn1BER.
Enum value maps for Asn1BER.
Command_ServiceDesc is the grpc.ServiceDesc for Command service.
No description provided by the author

# Structs

Represents SNMP OID.
Represents list of SNMP Oids.
No description provided by the author
Represents a single SNMP PDU consisting of oid, type and a value.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Represents multiple SNMP PDU.
UnimplementedCommandServer must be embedded to have forward compatible implementations.

# Interfaces

CommandClient is the client API for Command service.
CommandServer is the server API for Command service.
UnsafeCommandServer may be embedded to opt out of forward compatibility for this service.

# Type aliases

Asn1Ber Enum Type definitions.