From f9f7bde8524e9863b689275691f4b4711e30d0ff Mon Sep 17 00:00:00 2001
From: Micael Karlberg
Date: Wed, 22 Feb 2012 14:16:48 +0100
Subject: [snmp] Add log_to_io function for both manager and agent
Add a log_to_io Audit Trail Log converter function for
both the manager (snmpm) and agent (snmpa).
Also fixed the converter functions in the logger module,
snmp_log, which previously sometimes did not work
properly (re-open an already open log with different
properties).
OTP-9940
---
lib/snmp/doc/src/snmp.xml | 28 ++++++++++++++++++++++++++--
1 file changed, 26 insertions(+), 2 deletions(-)
(limited to 'lib/snmp/doc/src/snmp.xml')
diff --git a/lib/snmp/doc/src/snmp.xml b/lib/snmp/doc/src/snmp.xml
index af0833f005..3e6610891f 100644
--- a/lib/snmp/doc/src/snmp.xml
+++ b/lib/snmp/doc/src/snmp.xml
@@ -1,10 +1,10 @@
-
+
- 19962009
+ 19962012
Ericsson AB. All Rights Reserved.
@@ -391,6 +391,30 @@
version of the protocol data unit. There is a new line
between Vsn and PDU.
+
+
+
+
+
+ log_to_io(LogDir, Mibs, LogName, LogFile) -> ok | {error, Reason}
+ log_to_io(LogDir, Mibs, LogName, LogFile, Start) -> ok | {error, Reason}
+ log_to_io(LogDir, Mibs, LogName, LogFile, Start, Stop) -> ok | {error, Reason}
+ Convert an Audit Trail Log to text format
+
+ LogDir = string()
+ Mibs = [MibName]
+ MibName = string()
+ LogName = string()
+ LogFile = string()
+ Start = Stop = null | datetime() | {local_time,datetime()} | {universal_time,datetime()}
+ Reason = term()
+
+
+ Converts an Audit Trail Log to a readable format and
+ prints it on stdio. See
+ log_to_txt
+ above for more info.
+
--
cgit v1.2.3