Changes

Jump to: navigation, search

OPS235 Lab 3 - CentOS7

2,111 bytes added, 10:41, 28 March 2015
no edit summary
= INVESTIGATION 3: LOOKING AHEAD =
==Part 1: Automating Routine Tasks (Shell Scripting)==
[[Image:lab2_text_1.png|thumb|right|275px|When executed as '''root''' or using '''sudo''' command, provides VM status and opportunity to '''start''' VMs in a text-based interface]]
We continue the discussion of using Bash Shell Scripts to help automate routine tasks for the Linux system administrator. In lab1, you were exposed to downloading and running Bash Shell Scripts for demonstration purposes. Before showing you demos for this lab, you should learn a few more "shell scripting tricks" in case you need to create your own set of tools for task automation.
 
 
#Click on the following link to run an online tutorial showing you some additional shell scripting techniques: [ link ].
#It is recommended to practice creating Bash Shell Scripts as you proceed throughout this course.
#Let's look at some demos involving managing VMs with shell scripts. Issue the following command:<blockquote><b><code><span style="pointer-events: none;cursor: default;color:#3366CC;">wget https://scs.senecac.on.ca/~elizabeth.kopiec/backupVM.bash</span></code></b></blockquote>
#Set the appropriate permissions and run this Bash Shell script.
#Verify that the backup of your virtual machine occurred (hint: issue ls command to verify the date and time of creation).
#Use the <b><code>wget</code></b> command to download, study, and run the following shell scripts on-line:<blockquote><b><code><span style=" pointer-events:none;cursor:default;color:#3366CC;">https://scs.senecac.on.ca/~murray.saul/vm-start-text.bash<br>https://scs.senecac.on.ca/~murray.saul/vm-stop-text.bash</span></code></b><br><b><code><span style=" pointer-events:none;cursor:default;color:#3366CC;">https://scs.senecac.on.ca/~murray.saul/vm-start.bash<br>https://scs.senecac.on.ca/~murray.saul/vm-stop.bash</span></code></b></blockquote>
#Try to understand what these Bash Shell scripts do.
#You have completed lab2. Proceed to Completing The Lab, and follow the instructions for "lab sign-off".
 
'''Answer all observations / questions in your lab log book.'''
= Completing the lab =
13,420
edits

Navigation menu