CLI Macro Commands 130563CLI Macro CommandsCLI Macros provides a convenient way to save and distribute commonconfigurations. A CLI macro is a set of the CLI commands having a uniquename. When a CLI macro is applied, the CLI commands contained withinthe macro are executed and added to the Running Configuration File. Whenthe macro is applied to an interface, the existing configuration is not lost; thenew commands are added configuration.A CLI Macro may have keywords (variables) which are replaced by valuesprovided when the macro is applied (up to 3 keywords per macro). Macros canbe applied to specific interfaces, a range of interfaces, or the globalconfiguration.There are two types of Macros:• Built-In Macros, or Default Macros – the predefined macros which cannotbe changed or deleted.• User-Defined Macros, or Custom Macros – the macros which allow theoperator to bundle some pre-requisites or global configurations as a macroand then apply them to one or more interfaces at a time, which can thenbe copied or used by other switches. Up to 50 user-defined macros aresupported.The software includes 6 built-in macros:• profile-global, the global configuration, used to enable RSTP and loopguard.• profile-desktop, the interface configuration, for increased network securityand reliability when connecting a desktop device, such as a PC, to a switchport.• profile-phone, the interface configuration, used when connecting adesktop device such as a PC with an IP Phone to a switch port.• profile-switch, the interface configuration, used when connecting anaccess switch and a distribution switch or between access switches.• profile-router, the interface configuration, used when connecting theswitch and a WAN router.