Download Simple Network Management Protocol (SNMP)

Transcript
snmp mgr
SNMP Reference Manual
Exports
expect(Id,
expect(Id,
expect(Id,
expect(Id,
expect(Id,
expect(Id,
What) -> ok | ferror, Id, Reasong
ErrorStatus,ErrorIndex,Varbinds)
trap, Enterp, Generic, Specific, Varbinds)
v2trap, Varbinds)
report, Varbinds)
finform, InformReplyg, Varbinds)
Types:
Id = term()
What = any|trap|timeout|Varbinds|ErrorStatus
ErrorIndex = integer()
Enterp = oid()
Generic = integer()
Specific = integer()
InformReply = true | false | ferror, ErrorStatus, ErrorIndexg
Id is used to help identifying this particular test in a long test suite. It is not used
by the manager.
The atom any makes the test succeed for any response.
timeout succeeds if the message queue is empty for 3.5 seconds. This can be used
to ensure that no messages are pending.
ErrorStatus is an atom which describes an error message. See documentation for
the SNMP agent.
Varbinds is a list of fOid, Valueg|fOid,anyg.
If a response other than the expected one is received, an error message is displayed and
and ferror, Id, Reasong is returned. A call to expect is normally directly preceeded
by sending a message.
The reply to a received Inform request can be controlled. If InformReply is true, a
noError reply is sent. If it is false no reply is sent. If it is ferror, ErrorStatus,
ErrorIndexg, a reply indicating the error is sent.
g(Oids) -> void()
Types:
Oids = [oid()]
Sends a get-request.
gb(NonRepeaters, MaxRepetitions, Oids) -> void()
Types:
NonRepeaters = integer()
MaxRepetitions = integer()
Oids = [oid()]
Sends a get-bulk-request (See RFC1905).
130
Simple Network Management Protocol (SNMP)