aboutsummaryrefslogtreecommitdiffstats
path: root/lib/snmp/src/agent/snmpa.erl
diff options
context:
space:
mode:
authorMicael Karlberg <[email protected]>2010-12-10 15:54:25 +0100
committerMicael Karlberg <[email protected]>2010-12-10 15:54:25 +0100
commitfee3f48c37432c7ea28f2e8c9eb4eacac4422db9 (patch)
tree98cdb89bcdebcd8c940d63c17c7dc6653fbca94d /lib/snmp/src/agent/snmpa.erl
parent58620c2052e07490beb44a4bd1a8fbb5ebc028ac (diff)
downloadotp-fee3f48c37432c7ea28f2e8c9eb4eacac4422db9.tar.gz
otp-fee3f48c37432c7ea28f2e8c9eb4eacac4422db9.tar.bz2
otp-fee3f48c37432c7ea28f2e8c9eb4eacac4422db9.zip
Added variables from STANDARD-MIB (including counters).
Also some minor fixes.
Diffstat (limited to 'lib/snmp/src/agent/snmpa.erl')
-rw-r--r--lib/snmp/src/agent/snmpa.erl57
1 files changed, 52 insertions, 5 deletions
diff --git a/lib/snmp/src/agent/snmpa.erl b/lib/snmp/src/agent/snmpa.erl
index c09435c03b..8ca057892c 100644
--- a/lib/snmp/src/agent/snmpa.erl
+++ b/lib/snmp/src/agent/snmpa.erl
@@ -287,6 +287,46 @@ whereis_mib(Agent, Mib) when is_atom(Mib) ->
mibs_info() ->
[
+ {snmp_standard_mib,
+ [],
+ [
+ sysDescr,
+ sysObjectID,
+ sysContact,
+ sysName,
+ sysLocation,
+ sysServices,
+ snmpEnableAuthenTraps,
+ sysUpTime,
+ snmpInPkts,
+ snmpOutPkts,
+ snmpInBadVersions,
+ snmpInBadCommunityNames,
+ snmpInBadCommunityUses,
+ snmpInASNParseErrs,
+ snmpInTooBigs,
+ snmpInNoSuchNames,
+ snmpInBadValues,
+ snmpInReadOnlys,
+ snmpInGenErrs,
+ snmpInTotalReqVars,
+ snmpInTotalSetVars,
+ snmpInGetRequests,
+ snmpInSetRequests,
+ snmpInGetNexts,
+ snmpInGetResponses,
+ snmpInTraps,
+ snmpOutTooBigs,
+ snmpOutNoSuchNames,
+ snmpOutBadValues,
+ snmpOutGenErrs,
+ snmpOutGetRequests,
+ snmpOutSetRequests,
+ snmpOutGetNexts,
+ snmpOutGetResponses,
+ snmpOutTraps
+ ]
+ },
{snmp_view_based_acm_mib,
[
vacmAccessTable,
@@ -295,7 +335,8 @@ mibs_info() ->
],
[
vacmViewSpinLock
- ]},
+ ]
+ },
{snmp_target_mib,
[
snmpTargetAddrTable,
@@ -303,12 +344,14 @@ mibs_info() ->
],
[
snmpTargetSpinLock
- ]},
+ ]
+ },
{snmp_community_mib,
[
snmpCommunityTable
],
- []},
+ []
+ },
{snmp_notification_mib,
[
snmpNotifyTable
@@ -320,7 +363,9 @@ mibs_info() ->
],
[
usmUserSpinLock
- ]}].
+ ]
+ }
+ ].
print_mib_info() ->
MibsInfo = mibs_info(),
@@ -386,8 +431,10 @@ make_pretty_mib(snmp_community_mib) ->
"SNMP-COMMUNITY-MIB";
make_pretty_mib(snmp_notification_mib) ->
"SNMP-NOTIFICATION-MIB";
-make_pretty_mib(snmp_target_mib) ->
+make_pretty_mib(snmp_user_based_sm_mib) ->
"SNMP-USER-BASED-SM-MIB";
+make_pretty_mib(snmp_standard_mib) ->
+ "STANDARD-MIB";
make_pretty_mib(Mod) ->
atom_to_list(Mod).