EasyManuals Logo

Cisco ME 3600X User Manual

Cisco ME 3600X
628 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #187 background imageLoading...
Page #187 background image
2-163
Cisco ME 3800X and ME 3600X Switch Command Reference
OL-28238-01
Chapter 2 Cisco ME 3800X and ME 3600X Switch Cisco IOS Commands
macro global
Examples After you have created a new macro by using the macro name global configuration command, you can
apply it to a switch. This example shows how see the snmp macro and how to apply the macro and set
the hostname to test-server and set the IP precedence value to 7:
Switch# show parser macro name snmp
Macro name : snmp
Macro type : customizable
#enable port security, linkup, and linkdown traps
snmp-server enable traps port-security
snmp-server enable traps linkup
snmp-server enable traps linkdown
#set snmp-server host
snmp-server host ADDRESS
#set SNMP trap notifications precedence
snmp-server ip precedence VALUE
--------------------------------------------------
Switch(config)# macro global apply snmp ADDRESS test-server VALUE 7
To debug a macro, use the macro global trace global configuration command to find any syntax or
configuration errors in the macro when it is applied to a switch. In this example, the
ADDRESS parameter
value was not entered, causing the
snmp-server host command to fail while the remainder of the macro
is applied to the switch:
Switch(config)# macro global trace snmp VALUE 7
Applying command...‘snmp-server enable traps port-security’
Applying command...‘snmp-server enable traps linkup’
Applying command...‘snmp-server enable traps linkdown’
Applying command...‘snmp-server host’
%Error Unknown error.
Applying command...‘snmp-server ip precedence 7’
Related Commands Command Description
macro apply Applies a macro on an interface or applies and traces a macro on an
interface.
macro description Adds a description about the macros that are applied to an interface.
macro global description Adds a description about the macros that are applied to the switch.
show parser macro Displays the macro definition for all macros or for the specified
macro.

Table of Contents

Other manuals for Cisco ME 3600X

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Cisco ME 3600X and is the answer not in the manual?

Cisco ME 3600X Specifications

General IconGeneral
BrandCisco
ModelME 3600X
CategorySwitch
LanguageEnglish

Related product manuals