From 4526ec71fc913993ec6c5f0a9c0e11192240a60a Mon Sep 17 00:00:00 2001
From: Micael Karlberg
Date: Thu, 3 Mar 2011 14:27:32 +0100
Subject: Handling target address configuration files (with new Domain). Also
added some proper documentation.
---
lib/snmp/doc/src/notes.xml | 4 ++
lib/snmp/doc/src/snmp_agent_config_files.xml | 60 ++++++++++++----------------
lib/snmp/doc/src/snmp_target_mib.xml | 24 ++++++++---
lib/snmp/doc/src/snmpa_conf.xml | 25 +++++++++---
lib/snmp/src/agent/snmp_target_mib.erl | 21 ++++++----
lib/snmp/src/agent/snmpa_conf.erl | 47 ++++++++++++++++------
6 files changed, 115 insertions(+), 66 deletions(-)
(limited to 'lib')
diff --git a/lib/snmp/doc/src/notes.xml b/lib/snmp/doc/src/notes.xml
index 8677d5ab61..8dd5bcb2c0 100644
--- a/lib/snmp/doc/src/notes.xml
+++ b/lib/snmp/doc/src/notes.xml
@@ -45,6 +45,10 @@
-
[agent] Added support for sending traps to IPv6 targets.
+ See the
+ target address config file,
+ the target_addr_entry/11 function or
+ add_addr/11 for more info.
Own Id: OTP-9088
Aux Id: Seq 11790
diff --git a/lib/snmp/doc/src/snmp_agent_config_files.xml b/lib/snmp/doc/src/snmp_agent_config_files.xml
index b62269d506..bd5c537522 100644
--- a/lib/snmp/doc/src/snmp_agent_config_files.xml
+++ b/lib/snmp/doc/src/snmp_agent_config_files.xml
@@ -1,4 +1,4 @@
-
+
@@ -367,56 +367,50 @@
Target Address Definitions
The information about Target Address Definitions should be
- stored in a file called
- target_addr.conf.
-
+ stored in a file called target_addr.conf.
The corresponding tables are snmpTargetAddrTable in the
- SNMP-TARGET-MIB and snmpTargetAddrExtTable in the SNMP-COMMUNITY-MIB.
-
- Each entry is a term:
-
- {TargetName, Ip, Udp, Timeout, RetryCount, TagList, ParamsName, EngineId}. or
-{TargetName, Ip, Udp, Timeout, RetryCount, TagList, ParamsName, EngineId, TMask, MaxMessageSize}.
+ SNMP-TARGET-MIB and snmpTargetAddrExtTable in the
+ SNMP-COMMUNITY-MIB.
+ Each entry is a term:
+ {TargetName, Ip, Udp, Timeout, RetryCount, TagList, ParamsName, EngineId}.
or
+{TargetName, Ip, Udp, Timeout, RetryCount, TagList, ParamsName, EngineId, TMask, MaxMessageSize}.
or
+{TargetName, Domain, Ip, Udp, Timeout, RetryCount, TagList, ParamsName, EngineId, TMask, MaxMessageSize}.
-
TargetName is a unique non-empty string.
-
-
Ip is a list of four integers.
-
+ Domain is one of the atoms:
+ transportDomainUdpIpv4 | transportDomainUdpIpv6.
-
-
Udp is an integer.
-
+ Ip is a list of four or eight integers.
-
-
Timeout is an integer.
-
+ Udp is an integer.
-
-
RetryCount is an integer.
-
+ Timeout is an integer.
-
-
TagList is a string.
-
+ RetryCount is an integer.
-
-
ParamsName is a string.
-
+ TagList is a string.
-
-
EngineId is a string or the atom discovery.
-
+ ParamsName is a string.
-
-
TMask is a string of size 0, or size 6 (default: []).
-
+ EngineId is a string or the atom discovery.
-
-
MaxMessageSize is an integer (default: 2048).
-
+ TMask is a list of integer() of size 0,
+ size 6 or size 10 (default: []).
+
+ -
+
MaxMessageSize is an integer (default: 2048).
Note that if EngineId has the value discovery,
@@ -429,14 +423,10 @@
Target Parameters Definitions
The information about Target Parameters Definitions should be
- stored in a file called
- target_params.conf.
-
+ stored in a file called target_params.conf.
The corresponding table is snmpTargetParamsTable in the
- SNMP-TARGET-MIB.
-
- Each entry is a term:
-
+ SNMP-TARGET-MIB.
+ Each entry is a term:
{ParamsName, MPModel, SecurityModel, SecurityName, SecurityLevel}.
-
diff --git a/lib/snmp/doc/src/snmp_target_mib.xml b/lib/snmp/doc/src/snmp_target_mib.xml
index 4a36be19a3..d5151d41de 100644
--- a/lib/snmp/doc/src/snmp_target_mib.xml
+++ b/lib/snmp/doc/src/snmp_target_mib.xml
@@ -1,10 +1,10 @@
-
+