Changes

Jump to: navigation, search

OPS435 Python3 Lab 8

No change in size, 17:11, 3 July 2020
Investigation 2 - Running the fab command in ad-hoc mode
</source>
: When running the fab command in ad-hoc mode, it is very similar to running the SSH with commands attached at the end.
== Part PART 1: running non-privileged shell commands on remote machines ==
: Try the following ad-hoc fab commands and record their results for later use:<source lang='bash'>
[raymond.chan@mtrx-node05pd lab8]$ fab --host=myvmlab.senecacollege.ca --port=7200 --user=student -- 'date;hostname;id'
: Note that there is no password prompting if you complete part 3 successfully, otherwise, the SSH server daemon on your VM will prompt you for a password. The output from the fab's ad-hoc mode is not much different from the SSH command with shell command attached at the end, however, please note that the additional information on the output from the fab command can be very useful for record keeping purpose - what has been done and whether the commands had been carried out successfully or not.
== Part PART 2: running privileged commands on remote machines ==
: We say that running an ad-hoc fab command is very similar to the SSH command with shell commands attached at the end. Let's try both with privileged commands, like the "yum" command.
1,760
edits

Navigation menu