diff options
-rw-r--r-- | lib/snmp/src/agent/snmpa.erl | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/lib/snmp/src/agent/snmpa.erl b/lib/snmp/src/agent/snmpa.erl index 87b191caed..ce208d870b 100644 --- a/lib/snmp/src/agent/snmpa.erl +++ b/lib/snmp/src/agent/snmpa.erl @@ -105,6 +105,8 @@ set_request_limit/1, set_request_limit/2 ]). +-export([print_tables/0, print_tables/1]). + -include("snmpa_atl.hrl"). -define(EXTRA_INFO, undefined). @@ -283,6 +285,26 @@ whereis_mib(Agent, Mib) when is_atom(Mib) -> %% - +print_tables() -> + Tables = [ + {snmp_view_based_acm_mib, [vacmAccessTable, + vacmSecurityToGroupTable, + vacmViewTreeFamilyTable]}, + {snmp_target_mib, [snmpTargetAddrTable, snmpTargetParamsTable]} + ], + print_tables(Tables). + +print_tables([]) -> + ok; +print_tables([{Mod, Tables}|MibTables]) -> + [(catch Mod:Table(print)) || Table <- Tables], + print_tables(MibTables); +print_tables([_|MibTables]) -> + print_tables(MibTables). + + +%% - + mib_of(Oid) -> snmpa_agent:mib_of(Oid). |