snmp-server vrf

Syntax

snmp-server vrf <VRF-NAME>

no snmp-server vrf <VRF-NAME>

Description

Configures the VRF on which the SNMP agent listens for incoming requests. By default, the SNMP agent does not listen on any VRF. The SNMP agent can run on only one VRF at a time: mgmt or default. If configured on multiple VRFs, the SNMP agent is disabled.

The no form of this command stops the SNMP agent from listening for incoming requests on the specified VRF.

Command context

config

Parameters

<VRF-NAME>

Specifies the name of a VRF. Valid options are default or mgmt.

Authority

Administrators or local user group members with execution rights for this command.

Examples

switch(config)# snmp-server vrf default
switch(config)# no snmp-server vrf default