ā10-30-2018 06:31 AM
ā07-19-2019 09:58 AM
ā07-19-2019 09:49 AM
ā07-19-2019 09:39 AM
ā07-19-2019 08:52 AM
#############CLI - FUNCTION DEFINITIONS
def sendConfigCmds(cmds):
for cmd in cmds:
cli_results = emc_cli.send( cmd )
if cli_results.isSuccess() is False:
print 'CLI-ERROR: ' + cli_results.getError()
exit
cli_lines = cli_results.getOutput()
return cli_lines
#############Establish the session and send commands
emc_cli.setIpAddress(emc_vars["switchIP"])
varCMDS = []
varCMDS.append('config terminal')
varCMDS.append('hosname I-Was-Here')
varCli_result = sendConfigCmds(varCMDS)
emc_cli.close()