Document fully qualifying a MIB leaf in %GLOBALS and %FUNCS

This commit is contained in:
Eric Miller
2008-04-21 20:55:52 +00:00
parent 2139cb0212
commit b03e292d95

18
Info.pm
View File

@@ -1991,8 +1991,14 @@ $INIT = 0;
=item %GLOBALS =item %GLOBALS
Contains a hash in the form ( method_name => SNMP iid name ) Contains a hash in the form ( method_name => SNMP MIB leaf name )
These are scalar values such as name,uptime, etc. These are scalar values such as name, uptime, etc.
To resolve MIB leaf name conflicts between private MIBs, you may prefix the
leaf name with the MIB replacing each - (dash) and : (colon) with
an _ (underscore). For example, ALTEON_TIGON_SWITCH_MIB__agSoftwareVersion
would be used as the hash value instead of the net-snmp notation
ALTEON-TIGON-SWITCH-MIB::agSoftwareVersion.
When choosing the name for the methods, be aware that other new When choosing the name for the methods, be aware that other new
Sub Modules might inherit this one to get it's features. Try to Sub Modules might inherit this one to get it's features. Try to
@@ -2016,9 +2022,15 @@ the SNMP::Info methods.
=item %FUNCS =item %FUNCS
Contains a hash in the form ( method_name => SNMP iid) Contains a hash in the form ( method_name => SNMP MIB leaf name)
These are table entries, such as the IfIndex These are table entries, such as the IfIndex
To resolve MIB leaf name conflicts between private MIBs, you may prefix the
leaf name with the MIB replacing each - (dash) and : (colon) with
an _ (underscore). For example, ALTEON_TS_PHYSICAL_MIB__agPortCurCfgPortName
would be used as the hash value instead of the net-snmp notation
ALTEON-TS-PHYSICAL-MIB::agPortCurCfgPortName.
=cut =cut
%FUNCS = ( %FUNCS = (