02-28-2017 05:05 AM - edited 03-08-2019 09:32 AM
Hi,
we are installing new gear with 100G links and because of auto-cost
The problem is that we have over 200 devices under OSPF area 0 with multiple links on each.
One way is to connect to every device, check the cost, add it under the interface and after that change auto-cost. After every device is reconfigured we can remove that statically assigned cost.
Is there a better, faster way to change it?
I wonder why Cisco has no implemented a way to change auto-cost on every device at the same time.
e.g. auto-cost
We have IOS,
Solved! Go to Solution.
02-28-2017 02:01 PM
Hi
have you looked at using tcl scripts? below script will set ospf ref bw to 5656 for ospf process 1 - kron job will run the script once at 21:58
hth
Andy
tclsh
puts [open "nvram:ospf-cost.tcl" w] {
ios_config "router ospf 1" "auto-cost reference-bandwidth 5656"
}
tclquit
config t
kron policy-list ospf-cost.tcl
cli tclsh nvram:ospf-cost.tcl
exit
kron occurrence ospf-cost.tcl at 21:58 oneshot
policy-list ospf-cost.tcl
02-28-2017 02:01 PM
Hi
have you looked at using tcl scripts? below script will set ospf ref bw to 5656 for ospf process 1 - kron job will run the script once at 21:58
hth
Andy
tclsh
puts [open "nvram:ospf-cost.tcl" w] {
ios_config "router ospf 1" "auto-cost reference-bandwidth 5656"
}
tclquit
config t
kron policy-list ospf-cost.tcl
cli tclsh nvram:ospf-cost.tcl
exit
kron occurrence ospf-cost.tcl at 21:58 oneshot
policy-list ospf-cost.tcl
03-01-2017 06:15 AM
Hi,
I can try to convince our customer to go with TCL.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide