12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667openNetsnmp_raw_monadmoduletypeS=sigmoduleIO:Io_intf.S(** netsnmp provides high level access to SNMP functionality
*)moduleASN1_value=ASN1_valueinclude(moduletypeofstructincludeNetsnmp_typesend)moduleOid:siginclude(moduletypeofstructincludeOidend)(** [of_string] - convert string to an [Oid.t], modules reference will be loaded
if they are in the mib path *)valof_string:string->tIO.t(** [to_string] - convert an [Oid.t] to a string *)valto_string:t->stringIO.tendmoduleMib:Mib_intf.SwithmoduleIO:=IOmoduleConnection:sigtypet(** [connect] creates a connection to a peer based on the information
passed in [Connection_info.t].
This and [close] should be called as a pair.
*)valconnect:Connection_info.t->tIO.t(** [close] - close an existing connection *)valclose:t->unitIO.t(** [with_connection] - connect to the remote agent using the supplied credentials
and then call the function [f] with the session. Closes the session in all
cases before returning *)valwith_connection:Connection_info.t->f:(t->'a)->'aIO.tend(** [add_mib_paths] adds directories to search for mibs in. Note that this will
be used for all subsequent mib searches. raises Failure on error *)valadd_mib_paths:stringlist->unitIO.t(** [get_s] - get the values of a list of symbolic oids. The function handles loading mib
modules referenced by the supplied oids, eg passing 'SNMPv2-MIB::sysDescr.0' ensures
SNMPv2-MIB is loaded. *)valget_s:Connection.t->stringlist->(Oid.t*ASN1_value.t)listIO.t(** [get] - get the values of a list oids *)valget:Connection.t->Oid.tlist->(Oid.t*ASN1_value.t)listIO.t(** [get_next] - get the value of the next node after the supplied oid *)valget_next:Connection.t->Oid.t->(Oid.t*ASN1_value.t)listIO.tmoduleRaw:sigmoduleOid=OidmodulePdu:Pdu_intf.SwithmoduleIO:=IOmoduleMib:Mib_intf.SwithmoduleIO:=IOmoduleSession:Session_intf.SwithmoduleIO:=IOendend