Hi,
My first attempt at scripting… So here goes something really silly I think…
$NationalGateway is defined as a global var.
[admin@wsmd-core-01] > :put $NationalGateway [interface pppoe-client find name=“National Gateway”
ERROR: invalid argument name
[admin@wsmd-core-01] > interface pppoe-client find name=“National Gateway”
[admin@wsmd-core-01] > interface pppoe-client print
Flags: X - disabled, R - running
0 name=“International Gateway” mtu=1480 mru=1480
interface=ADSL 01 - INTERNATIONAL user=“blah@blah” password=“blah”
profile=ADSL service-name=“” ac-name=“” add-default-route=yes
dial-on-demand=no use-peer-dns=no allow=pap1 name=“National Gateway” mtu=1480 mru=1480 interface=ADSL 02 - NATIONAL
user=“blah@blah” password=“blah” profile=ADSL service-name=“”
ac-name=“” add-default-route=no dial-on-demand=no use-peer-dns=no
allow=pap2 name=“Static IP - Server01” mtu=1480 mru=1480
interface=ADSL 01 - INTERNATIONAL user=“blah” password=“blah”
profile=ADSL service-name=“” ac-name=“” add-default-route=no
dial-on-demand=no use-peer-dns=no allow=pap
[admin@wsmd-core-01] >
It must be something silly that I am not doing right…
Thanks for the help ![]()
[/quote]