Scripts and Macros
Monitoring Upper-Layer Dynamic Interfaces and Profiles
Copyright © 2010, Juniper Networks, Inc.
Autodetection is enabled for the IP encapsulation type with a lockout time range of
3600–7200 seconds (1–2 hours).
host1(config)#interface atm 4/0.3
host1(config-subif)#atm pvc 300 0 300 aal5autoconfig
host1(config-subif)#profile any ProfileC
host1(config-subif)#subscriber ip user atm2 domain isp3 password atm3pw
host1(config-subif)#auto-configure ip lockout-time 3600 7200
host1(config-subif)#auto-configure ppp
host1(config-subif)#auto-configure pppoe
host1(config-subif)#exit
This example uses the profile configured in the first example. Autodetection is enabled
for the bridged Ethernet encapsulation type with a lockout time range of 3600–21600
seconds (1–6 hours).
host1(config)#interface atm 4/0.3
host1(config-subif)#atm pvc 300 0 300 aal5autoconfig
host1(config-subif)#profile bridgedEthernet ProfileA
host1(config-subif)#subscriber bridgedEthernet user atm3 domain isp1
password fjdkei
host1(config-subif)#auto-configure bridgedEthernet lockout-time 3600 21600
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.
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 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 chapter Writing CLI Macros
in JunosE System Basics Configuration Guide.
NOTE: For a list of vendor-specific attributes (VSAs) that apply to dynamic interfaces,
see JunosE Broadband Access Configuration Guide.
You can use the show commands described in this section to monitor configurations
created with dynamic interfaces and profiles.
Chapter 17: Configuring Dynamic Interfaces
593
Need help?
Do you have a question about the JUNOSE SOFTWARE 11.2.X - LINK LAYER CONFIGURATION GUIDE 7-7-2010 and is the answer not in the manual?
Questions and answers