Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def stop_AppServer_75():
- try:
- client = paramiko.SSHClient()
- client.load_system_host_keys()
- client.set_missing_host_key_policy(paramiko.WarningPolicy())
- client.connect(Apphost4, port=port, username=username, password=password)
- stdin, stdout, stderr = client.exec_command('/application/IBM/WASProfiles/PERF_N04/bin/stopServer.sh app04_smtsrch_inst01')
- print stdout.read()
- stdin, stdout, stderr = client.exec_command('/application/IBM/WASProfiles/PERF_N04/bin/stopServer.sh app04_smtsrch_inst02')
- print stdout.read()
- finally:
- client.close()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement