Start a Conversation

Unsolved

This post is more than 5 years old

T

1570

May 11th, 2014 18:00

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?

5 Posts

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.

5 Posts

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

isGoodTroubleshooting
No Events found!

Top