This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env python | |
import secure | |
import pexpect | |
# the file containing the list of servers to log into | |
input_file = "script_list" | |
# The login creds | |
user = secure.USER |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
# Program to check whether ClamAV is installed | |
import paramiko | |
import os | |
file1 = "~/ClamAv-Status" | |
Server_List = "~/server.list" | |
def ssh_connection(source_server , source_os_password): | |
Client = paramiko.SSHClient() | |
Client.set_missing_host_key_policy(paramiko.AutoAddPolicy()) | |
Client.connect(hostname=source_server, password=source_os_password) |