Unsolved
This post is more than 5 years old
470 Posts
0
1570
scripting creation of alias, zones, add zone to config, cfgsave brocade switch
what is the best way to script the creation of new aliases, zone, and add the zone to a config and cfgsave?
I have tried the ssh way where I uploaded the ssh keys to both fabic switches but the cfgsave part keeps my bash script hanging waiting on the "yes" confirmation.
Could it be done with another way?
vks_001
5 Posts
0
January 27th, 2023 09:00
You can add an echo "yes" after the specific command so that it will pass Y when there is a prompt for yes.
vks_001
5 Posts
0
February 22nd, 2023 19:00
This is a known one and I just figured out that yes cannot be passed in the shell script for cfgsave. However, use cfgsave -f and this will not prompt for y/n