ā12-11-2024 02:44 AM
I want to create a task on the XIQ-SE to configure ports on two switches working as MLAG Peers.
I want to configure stuff on the first switch and then go on the second switch and configure similar stuff.
How do you switch from the first switch to the second one within the Python script?
Solved! Go to Solution.
ā12-11-2024 06:43 AM - edited ā12-11-2024 06:44 AM
emc_cli.setIpAddress(deviceOne)
cli_results = emc_cli.send('commandOne')
emc_cli.close()
emc_cli.setIpAddress(deviceTwo)
cli_results = emc_cli.send('commandTwo')
emc_cli.close()
hope this helps you.
ā12-11-2024 06:43 AM - edited ā12-11-2024 06:44 AM
emc_cli.setIpAddress(deviceOne)
cli_results = emc_cli.send('commandOne')
emc_cli.close()
emc_cli.setIpAddress(deviceTwo)
cli_results = emc_cli.send('commandTwo')
emc_cli.close()
hope this helps you.