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 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 VRF on which the SNMP agent listens for incoming requests. The SNMP agent can listen on either the mgmt or default VRF. If configured for both, the SNMP agent listens on default, which has a higher priority.

Authority

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

Example

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