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)
Now that you have the basics of making an SSH connection, running a command, and saving the output to a file. Let’s work
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
Now that you have the basics of making an SSH connection, running a command, and saving the output to a file. Let’s work
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!