Scripts and Macros
Scripts and macros are intended to reduce the management of static interfaces. Because dynamic interfaces have static lower layers, you can use scripts and macros to configure the static portion of all dynamic interfaces.
A script or macro can specify the static interface by using the interface, auto-configure, subscriber, or profile commands. These commands enable 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.
- ScriptsYou can create script files containing a series of CLI commands. The resulting script can be executed via the configure file command.
- MacrosYou can create macros that 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 10, 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.