Now that you have the basics of making an SSH connection, running a command, and saving the output to a file. Let’s work
Posted: Sun May 15, 2022 12:47 pm
Now that you have the basics of making an SSH connection,
running a command, and saving the output to a file. Let’s work on a
project. Your manager just asked you to find out what is the
hostname (/etc/hostname) and if there are any files in the www
directory. Your manager wants you to check this on two Ubuntu based
machines. However, they want you to have this written in a way that
will scale to all 100 servers on the network. Achieve the following
items:
●Make Flowchart
●Create Pseudo code
●Make a single SSH connection via paramiko and send a command to
check the hostname and a second command to see if there is anything
in the www directory.
●Input the IP addresses from a file (text or csv)
●Save the output of both commands, make sure to note what IP the
data came from, to a file (text or csv)
running a command, and saving the output to a file. Let’s work on a
project. Your manager just asked you to find out what is the
hostname (/etc/hostname) and if there are any files in the www
directory. Your manager wants you to check this on two Ubuntu based
machines. However, they want you to have this written in a way that
will scale to all 100 servers on the network. Achieve the following
items:
●Make Flowchart
●Create Pseudo code
●Make a single SSH connection via paramiko and send a command to
check the hostname and a second command to see if there is anything
in the www directory.
●Input the IP addresses from a file (text or csv)
●Save the output of both commands, make sure to note what IP the
data came from, to a file (text or csv)