cancel
Showing results for 
Search instead for 
Did you mean: 

XIQ-SE Task change switches

XIQ-SE Task change switches

ChristianK
New Contributor II

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?

1 ACCEPTED SOLUTION

Zdeněk_Pala
Extreme Employee

 

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.

Regards Zdeněk Pala

View solution in original post

1 REPLY 1

Zdeněk_Pala
Extreme Employee

 

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.

Regards Zdeněk Pala
GTM-P2G8KFN