From 84adefa331c4159d432d22840663c38f155cd4c1 Mon Sep 17 00:00:00 2001 From: Erlang/OTP Date: Fri, 20 Nov 2009 14:54:40 +0000 Subject: The R13B03 release. --- lib/snmp/doc/src/snmpa_supervisor.xml | 117 ++++++++++++++++++++++++++++++++++ 1 file changed, 117 insertions(+) create mode 100644 lib/snmp/doc/src/snmpa_supervisor.xml (limited to 'lib/snmp/doc/src/snmpa_supervisor.xml') diff --git a/lib/snmp/doc/src/snmpa_supervisor.xml b/lib/snmp/doc/src/snmpa_supervisor.xml new file mode 100644 index 0000000000..89b4eb8d54 --- /dev/null +++ b/lib/snmp/doc/src/snmpa_supervisor.xml @@ -0,0 +1,117 @@ + + + + +
+ + 20042009 + Ericsson AB. All Rights Reserved. + + + The contents of this file are subject to the Erlang Public License, + Version 1.1, (the "License"); you may not use this file except in + compliance with the License. You should have received a copy of the + Erlang Public License along with this software. If not, it can be + retrieved online at http://www.erlang.org/. + + Software distributed under the License is distributed on an "AS IS" + basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See + the License for the specific language governing rights and limitations + under the License. + + + + snmpa_supervisor + + + + + + + + snmpa_supervisor.xml +
+ snmpa_supervisor + A supervisor for the SNMP agent Processes + +

This is the top supervisor for the agent part of the SNMP + application. There is always one supervisor at each node with + an SNMP agent (master agent or sub-agent). +

+
+ + + start_sub_sup(Opts) -> {ok, pid()} | {error, {already_started, pid()}} | {error, Reason} + Start the SNMP supervisor for sub-agents only + + Opts = [opt()] + opt() = {db_dir, string()} | ... + + +

Starts a supervisor for the SNMP agent system without a + master agent. The supervisor starts all involved SNMP + processes, but no agent processes. Sub-agents should be + started by calling start_sub_agent/3. +

+

db_dir is mandatory.

+

See configuration parameters for + a description of the options.

+
+
+ + start_master_sup(Opts) -> {ok, pid()} | {error, {already_started, pid()}} | {error, Reason} + Start the SNMP supervisor for all agents + + Opts = [opt()] + opt() = {db_dir, string()} | {config, ConfOpts()} | ... + ConfOpts = [conf_opts()] + conf_opts() = {dir, string()} | ... + Reason = term() + + +

Starts a supervisor for the SNMP agent system. The + supervisor starts all involved SNMP processes, including the + master agent. Sub-agents should be started by calling + start_subagent/3. +

+

db_dir is mandatory.

+

dir in config is mandatory.

+

See snmp config for + a description of the options.

+
+
+ + start_sub_agent(ParentAgent,Subtree,Mibs) -> {ok, pid()} | {error, Reason} + Start a sub-agent + + ParentAgent = pid() + SubTree = oid() + Mibs = [MibName] + MibName = [string()] + + +

Starts a sub-agent on the node where the function is + called. The snmpa_supervisor must be running. +

+

If the supervisor is not running, the function fails with the + reason badarg.

+
+
+ + stop_sub_agent(SubAgent) -> ok | no_such_child + Stop a sub-agent + + SubAgent = pid() + + +

Stops the sub-agent on the node where the function is + called. The snmpa_supervisor must be running. +

+

If the supervisor is not running, the function fails with the + reason badarg.

+
+
+
+ +
+ -- cgit v1.2.3