show snmp context
6-20 SNMP Configuration
show snmp context
UsethiscommandtodisplaythecontextlistconfigurationforSNMP’sview‐basedaccesscontrol.
Syntax
show snmp context
Parameters
None.
Defaults
None.
Mode
Switchcommand,read‐only.
Usage
AnSNMPcontextisacollectionofmanagementinformationthatcanbeaccessedbyanSNMP
agentorentity.ThedefaultcontextallowsallSNMPagentstoaccessallmanagementinformation
(MIBs).Whencreatedusingthesetsnmpaccesscommand(“setsnmpaccess”onpage 6‐17),other
contextscanbe
appliedtolimitaccesstoasubsetofmanagementinformation.
Example
ThisexampleshowshowtodisplayalistofallSNMPcontextsknowntothedevice:
C2(su)->show snmp context
--- Configured contexts:
default context (all mibs)
set snmp view
UsethiscommandtosetaMIBconfigurationforSNMPv3view‐basedaccess(VACM).
Syntax
set snmp view viewname viewname subtree subtree [mask mask] [included | excluded]
[volatile | nonvolatile]
Table 6-7 show snmp view Output Details
Output What It Displays...
View Name Name assigned to a MIB view.
Subtree OID Name identifying a MIB subtree.
Subtree mask Bitmask applied to a MIB subtree.
View Type Whether or not subtree use must be included or excluded for this view.
Storage type Whether storage is in nonVolatile or Volatile memory
Row status Status of this entry: active, notInService, or notReady.