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 be enabled by the user on single or multiple VRFs.
Theno
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.
Authority
Administrators or local user group members with execution rights for this command.
Example
switch(config)# snmp-server agent-port Configure UDP port to reach SNMP Master Agent community The name of the community string. Default is public host Configure SNMP trap or inform system-contact Configure system contact system-description Configure system description system-location Configure system location vrf Specify VRF to run SNMP on.
switch(config)# snmp-server vrf default
switch(config)# no snmp-server vrf default