Enterasys Networks D2G124-12P Benutzerhandbuch

Seite von 496
set snmp view
D-Series CLI Reference 5-21
Mode
Switch command, read‐only.
Usage
An SNMP context is a collection of management information that can be accessed by an SNMP 
agent or entity. The default context allows all SNMP agents to access all management information 
(MIBs). When created using the set snmp access command (“
contexts can be applied to limit access to a subset of management information.
Example
This example shows how to display a list of all SNMP contexts known to the device:
D2(su)->show snmp context               
                                               
--- Configured contexts:                       
default context (all mibs)
set snmp view
Use this command to set a MIB configuration for SNMPv3 view‐based access (VACM).
Syntax
set snmp view viewname viewname subtree subtree [mask mask] [included | excluded
[volatile nonvolatile]
Parameters
Defaults
If not specified, mask will be set to 255.255.255.255
If not specified, subtree use will be included.
If storage type is not specified, nonvolatile (permanent) will be applied.
Mode
Switch command, read‐write.
Example
This example shows how to set an SNMP MIB view to “public” with a subtree name of 1.3.6.1 
included:
D2(su)->set snmp view viewname public subtree 1.3.6.1 included 
viewname viewname Specifies a name for a MIB view. 
subtree subtree
Specifies a MIB subtree name.
mask mask
(Optional) Specifies a bitmask for a subtree. 
included | 
excluded
(Optional) Specifies subtree use (default) or no subtree use.
volatile | 
nonvolatile
(Optional) Specifies the use of temporary or permanent (default) storage.