aboutsummaryrefslogtreecommitdiffstats
path: root/lib/snmp/src/agent/snmp_community_mib.erl
diff options
context:
space:
mode:
authorMicael Karlberg <[email protected]>2011-02-25 10:49:13 +0100
committerMicael Karlberg <[email protected]>2011-02-25 10:49:13 +0100
commit03014788307572cf1920ddc82bfae0d8d1faf74b (patch)
tree79b8902483f200220b673a865d58a1b7183a55e1 /lib/snmp/src/agent/snmp_community_mib.erl
parent8d66da63859f1dae9339d1b13f37b0982c052133 (diff)
parentae806f1663d47569876b3abc0998ee3387c7abd2 (diff)
downloadotp-03014788307572cf1920ddc82bfae0d8d1faf74b.tar.gz
otp-03014788307572cf1920ddc82bfae0d8d1faf74b.tar.bz2
otp-03014788307572cf1920ddc82bfae0d8d1faf74b.zip
[agent] Added a "complete" set of (snmp) table and variable
print functions, for each mib handled by the SNMP (agent) application. This will be usefull when debugging a running agent. See snmpa:print_mib_info/0, snmpa:print_mib_tables/0 and snmpa:print_mib_variables/0 for more info. Merge branch 'bmk/snmp/add_snmp_table_print/OTP-8977' into bmk/snmp/snmp419_integration/OTP-9068 Conflicts: lib/snmp/doc/src/notes.xml lib/snmp/src/app/snmp.appup.src lib/snmp/vsn.mk
Diffstat (limited to 'lib/snmp/src/agent/snmp_community_mib.erl')
-rw-r--r--lib/snmp/src/agent/snmp_community_mib.erl4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/snmp/src/agent/snmp_community_mib.erl b/lib/snmp/src/agent/snmp_community_mib.erl
index 8f0f4cad73..5644a43345 100644
--- a/lib/snmp/src/agent/snmp_community_mib.erl
+++ b/lib/snmp/src/agent/snmp_community_mib.erl
@@ -336,6 +336,8 @@ get_target_addr_ext_mms(TDomain, TAddress, Key) ->
get_target_addr_ext_mms(TDomain, TAddress, NextKey)
end
end.
+
+
%%-----------------------------------------------------------------
%% Instrumentation Functions
%%-----------------------------------------------------------------
@@ -347,7 +349,7 @@ snmpCommunityTable(print) ->
PrintRow =
fun(Prefix, Row) ->
lists:flatten(
- io_lib:format("~sIndex: ~p"
+ io_lib:format("~sIndex: ~p"
"~n~sName: ~p"
"~n~sSecurityName: ~p"
"~n~sContextEngineID: ~p"