13,420
edits
Changes
no edit summary
#::192.168.235.13 centos3<br><br>
#Confirm that each host can ping all three of the other hosts by name.
===Part 2: Using Arrays to Collect VM Network Information===
{|width="40%" align="right" cellpadding="10"
|- valign="top"
|{{Admon/tip|Bash Shell Scripting Tips:|<br>'''<u>Arrays</u>'''<br><br><ul><li>Incredibly useful tool that works like a "storage container" of variables. Arrays have names like variables, but are numbered for quick storage and access. Indices are I.D. numbers for array access. The first index starts at zero instead of 1.<br><br></li><li>Examples:<br><br>''awk '{print}' data-file.txt''<br>''awk -F";" '{print $5,$3}' data-file.txt''<br>''awk -F"," '$4 >= 10000 {print $1, $2}' salary.txt''<br><br></li></ul>'''<u>Crontab (Chronograph Tables)</u>'''<br><br><ul><li>Used to automatically run (as opposed to manually run) scripts, programs, or commands. There are many tables (files), but the main one is: '''/etc/cron'''. The '''crontab''' command can be used to ''list'', ''create'', ''modify'' or ''remove'' scheduled jobs in the file.<br><br></li><li>Examples:<br><br>''crontab -e -u user'' # create/modify<br>''crontab -r -u user-name'' # remove specific user's crontab<br>''crontab -l -u username'' #List current schedules</li></ul>}}
|}
x
x
#Perform this section in your '''x''' machine
#x