3com MSR 20-20 참조 매뉴얼
2340
C
HAPTER
154: SNMP C
ONFIGURATION
C
OMMANDS
set-operation: Enables logging of SNMP SET operation.
Description
Use the snmp-agent log command to enable SNMP logging.
Use the undo snmp-agent log command to restore the default.
By default, SNMP logging is disabled.
If a specified SNMP logging is enabled, when NMS performs a specified operation
to SNMP Agent, the latter records the operation-related information and saves it
to the information center.
to SNMP Agent, the latter records the operation-related information and saves it
to the information center.
Example
# Enable logging of SNMP GET operation.
<Sysname> system-view
[Sysname] snmp-agent log get-operation
# Enable logging of SNMP SET operation.
<Sysname> system-view
[Sysname] snmp-agent log set-operation
snmp-agent mib-view
Syntax
snmp-agent mib-view { excluded | included } view-name oid-tree [ mask
mask-value ]
mask-value ]
undo snmp-agent mib-view view-name
View
System view
Parameter
excluded: Indicates that not all nodes of the MIB tree are included in current view.
included: Indicates that all nodes of the MIB tree are included in current view.
view-name: View name, a string of 1 to 32 characters.
oid-tree: MIB subtree. It can only be an OID string, such as 1.4.5.3.1, or an object
name string, such as “system”. OID is made up of a series of integers, which
marks the position of the node in the MIB tree and uniquely identifies a MIB
object.
name string, such as “system”. OID is made up of a series of integers, which
marks the position of the node in the MIB tree and uniquely identifies a MIB
object.
mask mask-value: Mask for an object tree, in the range 1 to 32 hexadecimal
digits. It must be an even digit.
digits. It must be an even digit.
Description
Use the snmp-agent mib-view command to create or update MIB view
information so that MIB objects can be specified.
information so that MIB objects can be specified.
Use the undo snmp-agent mib-view command to delete the current
configuration.
configuration.
By default, MIB view name is ViewDefault.