Changes

Jump to: navigation, search

OPS335 Assignment 1

186 bytes added, 10:37, 4 October 2011
no edit summary
'''Keeping accurate time on a Linux-based computer is one of the functions assigned to the system administrator. Correct time will ensure log records have accurate time stamps and that scheduled processes (eg. cron jobs) will run precisely when intended. Linux's time keeping toolchest includes the following:'''* date* hwclock* daytime* rdate* ntpdate* ntpd* chrony* radios
For this assignment you are to investigate each of the above mentioned time keeping methods on your Fedora 13 Linux PC.
'''date'''# Show real examples of how to use this command to set your Fedora system clock.# Comment on the accuracy of the time set using this method.# State advantages and disadvantages of this method.hwclockShow real examples of how to use this command to set your Fedora system clock.Show real examples of how to use this command to set your hardware clock.Comment on the accuracy of the time set using this method.State advantages and disadvantages of this method.Comment on the accuracy of the hardware clock built into the mainboarrd of your computer.daytimeSet up your Fedora PC to be a daytime server (through xinetd).Set up a virtual machine and configure it to set its clock to the host using a local rc file and netcat at boot time.Find other hosts on the Internet that will let you use this method to set your clock. Which one did you use?Comment on the accuracy of the time set using this method.State advantages and disadvantages of this method.Be sure to list any files you modified and or created. Specifically inside /etc/init.d /etc/xinetd.d directory.rdateShow how to use rdate in a cron job to set your virtual machine's clock to the host's time. Try this out - don't just guess at the answer.Find other hosts that will let you use rdate to set your clock. Which host did you use?Comment on the accuracy of the time set using this method.State advantages and disadvantages of this method.Be sure to list any files you modified and or created.What port(s) are used by this method?ntpdateUse ntpdate command in a cron job to set your virtual machine's clock to the time on any ntp server.Comment on the differences between stratum-1, stratum-2, stratum-3, etc. time servers.Comment on the accuracy of the time set using this method.State advantages and disadvantages of this method.Be sure to list any files you modified and or created.What port(s) are used by this method?ntpdSet up an ntp server on your Fedora host. Be sure to enable logging and statistics files.Find an open and free stratum-1 time server to use on your host.Show log records when starting your ntp server.Show and explain the contents of your ntp server's statistics file.Set up an ntp server on your Fedora VM and use your host as its time server.Use the ntpstat command on both host and VM to demonstrate that everything is working properly.Comment on the accuracy of the time set using this method.State advantages and disadvantages of this method.Explain how you could set up another VM as a stratum-3 server.chronyInstall and configure chrony on your Fedora host and your VM. Then use chrony on your VM to synchronize its clock to the host.Explain precisely how you did this. Show edited files and specific commands used.Comment on the accuracy of the time set using this method.State advantages and disadvantages of this method.radiosIn order to test this method you'll need some sort of radio card that will receive GPS satellite signals. I use an old Garmin Etrex portable receiver that connects to my computer's serial port. Since most students probably won't have such a device it would be ok to just write a paragraph or two about this method. i.e. is it accurate, easy to set up, expensive, etc. Finally, provide conclusions to your experimentation. i.e. which method is most accurate? least accurate? most reliable? least reliable? etc. Perhaps a table could be used to summarize your results?
NOTES: '''hwclock'''# Show real examples of how to use this command to set your Fedora system clock.# Show real examples of how to use this command to set your hardware clock.# Comment on the accuracy of the time set using this method.# State advantages and disadvantages of this method.# Comment on the accuracy of the hardware clock built into the mainboarrd of your computer.
This is '''daytime'''# Set up your Fedora PC to be a daytime server (through xinetd).# Set up a virtual machine and configure it to set its clock to the host using a hands-local rc file and netcat at boot time.# Find other hosts on assignment the Internet that will let you use this method to be done by each student individually (set your clock. Which one did you use?# Comment on the accuracy of the time set using this method.# State advantages and disadvantages of this is NOT a group assignment)method.# Be sure to list any files you modified and or created. Specifically inside /etc/init.d /etc/xinetd.d directory.
'''rdate'''# Show how to use rdate in a cron job to set your virtual machine's clock to the host's time. Try this out - don't just guess at the answer.# Find other hosts that will let you use rdate to set your clock. Which host did you use?# Comment on the accuracy of the time set using this method.# State advantages and disadvantages of this method.# Be sure to list any files you modified and or created.# What port(s) are used by this method? '''ntpdate'''# Use ntpdate command in a cron job to set your virtual machine's clock to the time on any ntp server.# Comment on the differences between stratum-1, stratum-2, stratum-3, etc. time servers.# Comment on the accuracy of the time set using this method.# State advantages and disadvantages of this method.# Be sure to list any files you modified and or created.# What port(s) are used by this method? '''ntpd'''# Set up an ntp server on your Fedora host. Be sure to enable logging and statistics files.# Find an open and free stratum-1 time server to use on your host.# Show log records when starting your ntp server.# Show and explain the contents of your ntp server's statistics file.# Set up an ntp server on your Fedora VM and use your host as its time server.# Use the ntpstat command on both host and VM to demonstrate that everything is working properly.# Comment on the accuracy of the time set using this method.# State advantages and disadvantages of this method.# Explain how you could set up another VM as a stratum-3 server. '''chrony'''# Install and configure chrony on your Fedora host and your VM. Then use chrony on your VM to synchronize its clock to the host.# Explain precisely how you did this. Show edited files and specific commands used.# Comment on the accuracy of the time set using this method.# State advantages and disadvantages of this method. '''radios'''# In order to test this method you'll need some sort of radio card that will receive GPS satellite signals. I use an old Garmin Etrex portable receiver that connects to my computer's serial port. Since most students probably won't have such a device it would be ok to just write a paragraph or two about this method. i.e. is it accurate, easy to set up, expensive, etc. # Finally, provide conclusions to your experimentation. i.e. which method is most accurate? least accurate? most reliable? least reliable? etc. Perhaps a table could be used to summarize your results? : NOTES: '''This is a hands-on assignment to be done by each student individually (this is NOT a group assignment).''' '''Please submit this assignment in formal written form according to instructions posted on your teacher's web page and also email an electronic copy to him/her.''' <u>'''This assignment is worth 10% of your final grade.'''</u>
1
edit

Navigation menu