Network OS Administration Guide

Supporting Network OS 6.0.1a

Part Number: 53-1003768-04

Configuring multiple SNMP server contexts

A single SNMP agent can be supported by the multiple instances of the same MIB module by mapping the context name to a virtual routing and forwarding (VRF) instance as described below. The SNMP agent supports 256 contexts to support context-to-VRF mapping. Do the following to set the SNMP server context, using the snmp-server context command to map a context to the name of a VRF instance.

  1. Enter the configure command.
  2. Enter the snmp-server context context_name vrf-name vrf_name command.
    switch(config)# snmp-server context mycontext vrf-name myvrf

    The example maps the context name "mycontext" to the VRF name "myvrf."