Advertisement
Guest User

Untitled

a guest
Mar 18th, 2016
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. def stop_AppServer_75():
  2. try:
  3. client = paramiko.SSHClient()
  4. client.load_system_host_keys()
  5. client.set_missing_host_key_policy(paramiko.WarningPolicy())
  6.  
  7. client.connect(Apphost4, port=port, username=username, password=password)
  8.  
  9. stdin, stdout, stderr = client.exec_command('/application/IBM/WASProfiles/PERF_N04/bin/stopServer.sh app04_smtsrch_inst01')
  10. print stdout.read()
  11. stdin, stdout, stderr = client.exec_command('/application/IBM/WASProfiles/PERF_N04/bin/stopServer.sh app04_smtsrch_inst02')
  12. print stdout.read()
  13.  
  14. finally:
  15. client.close()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement