Scripts and Macros
Scripts and macros are intended to reduce the management of static interfaces. Because dynamic interfaces have static lower layers, scripts and/or macros can be used to configure the static portion of all dynamic interfaces.
A script or macro can specify the static interface via the interface, auto-configure, subscriber, or profile commands. These commands allow you to configure the interface as dynamic and to specify configuration sources for the dynamic upper layers. These files can then be executed by the router as though the commands were entered at the terminal.
- Scripts—You can create script files containing a series of CLI commands. The resulting script can be executed via the configure file command.
- Macros—You can create macros that will generate and execute CLI commands. You first write macros on a computer and then copy them to the router. You issue the macro command from the CLI to execute both local macros or macros stored remotely. The macro command is available from all command modes. See JUNOSe System Basics Configuration Guide, Chapter 9, Writing CLI Macros.
NOTE: For a list of vendor-specific attributes (VSAs) that apply to dynamic interfaces, see JUNOSe Broadband Access Configuration Guide, Chapter 1, Configuring Remote Access.