aboutsummaryrefslogtreecommitdiffstats
path: root/lib/snmp/doc/src/snmp_app.xml
diff options
context:
space:
mode:
authorSteve Vinoski <[email protected]>2013-09-20 14:23:35 -0400
committerMicael Karlberg <[email protected]>2013-10-09 11:21:04 +0200
commitc83c236f6a0a1a5299376e40db57e7b7527cbac7 (patch)
tree61253108c10682e359d7260ea6547a1a7ac4e10d /lib/snmp/doc/src/snmp_app.xml
parent50e91bde3403c788bb1cabe644534f351d6dc1c1 (diff)
downloadotp-c83c236f6a0a1a5299376e40db57e7b7527cbac7.tar.gz
otp-c83c236f6a0a1a5299376e40db57e7b7527cbac7.tar.bz2
otp-c83c236f6a0a1a5299376e40db57e7b7527cbac7.zip
[snmp/agent] enable SNMP to create missing database directories
Add {db_init_error, create_db_and_dir} option to SNMP manager and agent. This allows them to create any missing parent directories for db_dir, rather than treating any missing directories as a fatal error. The default for db_init_error, which is terminate, is unchanged. Add create_db_and_dir to the documentation. Add new tests to verify that using create_db_and_dir results in missing parent directories being created.
Diffstat (limited to 'lib/snmp/doc/src/snmp_app.xml')
-rw-r--r--lib/snmp/doc/src/snmp_app.xml7
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/snmp/doc/src/snmp_app.xml b/lib/snmp/doc/src/snmp_app.xml
index e5a05342c1..9ede75b943 100644
--- a/lib/snmp/doc/src/snmp_app.xml
+++ b/lib/snmp/doc/src/snmp_app.xml
@@ -763,12 +763,15 @@
</item>
<marker id="db_init_error"></marker>
- <tag><c>db_init_error() = terminate | create</c></tag>
+ <tag><c>db_init_error() = terminate | create | create_db_and_dir</c></tag>
<item>
<p>Defines what to do if the agent or manager is unable to open an
existing database file. <c>terminate</c> means that the
agent/manager will terminate and <c>create</c> means that the
- agent/manager will remove the faulty file(s) and create new ones.</p>
+ agent/manager will remove the faulty file(s) and create new ones,
+ and <c>create_db_and_dir</c> means that the agent/manager will
+ create the database file along with any missing parent directories
+ for the database file.</p>
<p>Default is <c>terminate</c>.</p>
</item>