Download Simple Network Management Protocol (SNMP)

Transcript
snmp pdus
SNMP Reference Manual
dec scoped pdu([byte()]) -> ScopedPdu
Types:
ScopedPdu = #scoped pdu
Decodes a list of bytes into an SNMP ScopedPdu.
dec scoped pdu data([byte()]) -> ScopedPduData
Types:
ScopedPduData = #scoped pdu | EncryptedPDU
EncryptedPDU = [byte()]
Decodes a list of bytes into either a scoped pdu record, or - if the scoped pdu was
encrypted - to a list of bytes.
dec usm security parameters([byte()]) -> UsmSecParams
Types:
UsmSecParams = #usmSecurityParameters
Decodes a list of bytes into an SNMP UsmSecurityParameters
enc encrypted scoped pdu(EncryptedScopedPdu) -> [byte()]
Types:
EncryptedScopedPdu = [byte()]
Encodes an encrypted SNMP ScopedPdu into an OCTET STRING that can de used as
the data field in a message record, that later can be encoded with a call to
enc message only/1.
This function should be used whenever the ScopedPDU is encrypted.
enc message(Message) -> [byte()]
Types:
Message = #message
Encodes a message record to a list of bytes.
enc message only(Message) -> [byte()]
Types:
Message = #message
Message is a record where the data field is assumed to be encoded (a list of bytes). If
there is a v1 or v2 message, the data field is an encoded PDU, and if there is a v3
message, data is an encoded and possibly encrypted scopedPDU.
enc pdu(Pd) -> [byte()]
Types:
Pdu = #pdu
Encodes an SNMP Pdu into a list of bytes.
enc scoped pdu(ScopedPdu) -> [byte()]
138
Simple Network Management Protocol (SNMP)