Presentation is loading. Please wait.

Presentation is loading. Please wait.

CIT 383: Administrative ScriptingSlide #1 CIT 383: Administrative Scripting Introduction.

Similar presentations


Presentation on theme: "CIT 383: Administrative ScriptingSlide #1 CIT 383: Administrative Scripting Introduction."— Presentation transcript:

1 CIT 383: Administrative ScriptingSlide #1 CIT 383: Administrative Scripting Introduction

2 CIT 383: Administrative ScriptingSlide #2 About Me http://www.nku.edu/~waldenj1 James Walden –Assistant Professor of Computer Science –waldenj@nku.eduwaldenj@nku.edu –Experience: System administration (CMU, Intel, UT, NKU)‏ Operating systems: VMS, UNIX, Linux, IOS Scale: dozens to thousands of machines, 1-dozens of sites Scripting: sh, csh, perl, PHP, python, ruby

3 CIT 383: Administrative ScriptingSlide #3 Topics 1.Logistics – Syllabus – Background 2.Why Administrative Scripting? 3.Ruby 4.How to Study

4 CIT 383: Administrative ScriptingSlide #4 Course Administration Web Site –Notes, readings, and assignments on web site. –http://www.nku.edu/~waldenj1 Assignment submission –Use submit command on kosh. Contact Information –Email: waldenj@nku.edu –Phone: (859) 572-5571

5 CIT 383: Administrative ScriptingSlide #5 Course Goals A successful student should be able to 1. Read and understand programs written in the ruby language. 2. Construct portable, secure programs in ruby. 3. Automate common system administration tasks. 4. Write networking scripts that interact with e-mail, web, and directory servers. 5. Write programs to parse common data formats such as CSV, XML, and YAML.

6 CIT 383: Administrative ScriptingSlide #6 Grading Grades are based on Midterm Exam (20%). Final Exam (20%). Labs (20%). Programming Assignments (40%). 0-60F 60-69D 70-79C 80-89B 90-100A

7 CIT 383: Administrative ScriptingSlide #7 Assignment Policy Available on web page. Your responsibility to check for announcements. Late policy 20% penalty up to one week late 0 points given after one week late Submission should include One or more ruby program files. A readme file explaining how the program works.

8 CIT 383: Administrative ScriptingSlide #8 Expected Background Programming background: –INF 120: Elementary Programming –INF 260: Object Oriented Programming I –variables, conditionals, loops, arrays Linux background: –CIT 140: Introduction to CIT –CIT 370: System Administration –bash, vim, cd, ls, cp, mv, rm, chmod, grep, find

9 CIT 383: Administrative ScriptingSlide #9 What do sysadmins do? 1.Add and remove users. 2.Add and remove hardware. 3.Perform and restore from backups. 4.Install and patch software. 5.Troubleshooting. 6.Performance tuning. 7.Auditing security. 8.Helping users.

10 CIT 383: Administrative ScriptingSlide #10 Why Administrative Scripting? Why do you need to program in IT?

11 CIT 383: Administrative ScriptingSlide #11 Why do sysadmins need to program? 1.Make your job easier. 2.Solve problems that can’t be solved by installing or configuring others’ software. 3.Provide new features to your users.

12 CIT 383: Administrative ScriptingSlide #12 Advantages of Automation 1.Greater reliability. 2.Regularity. 3.Timing and efficiency.

13 CIT 383: Administrative ScriptingSlide #13 Popular Sysadmin Languages sh Rexx Ksh bash Perl Python Ruby

14 CIT 383: Administrative ScriptingSlide #14 Ruby Timeline 1993: Matz starts building Ruby. 1995: Ruby released in Japan. 1998: First Ruby announcement in English. 2000: First Ruby book in English. 2003: Ruby 1.8 released. 2004: First public release of Ruby on Rails. 2007: Ruby 1.9 released. 200?: Ruby 2.0

15 CIT 383: Administrative ScriptingSlide #15 Hello World JAVA public class HelloWorld { public static void main(String []args) { System.out.println(“Hello World”); } RUBY puts “Hello World”

16 CIT 383: Administrative ScriptingSlide #16 Ruby 1.Dynamic 2.High level 3.Object oriented 4.Open source 5.Programmer efficient 6.String handling 7.VHLL

17 CIT 383: Administrative ScriptingSlide #17 Where to get Ruby Linux –Debian/Ubuntu: apt-get install irb ruby –Fedora: yum install ruby Windows –http://rubyinstaller.rubyforge.org/http://rubyinstaller.rubyforge.org/ Cygwin (UNIX command line for Win)‏ –http://www.cygwin.com/ In your browser –http://tryruby.hobix.com/

18 CIT 383: Administrative Scripting How to Study Before class –Read the book. Take notes. –Print out the slides and lab notes. –Read the slides and lab notes. –Write down any questions you have. Spend 6-9 hours a week outside of class. –Programming languages are like human languages—you have to practice regularly to become fluent.

19 CIT 383: Administrative Scripting How to Study Do every lab –Read the lab before typing anything. –Try all of the exercises in irb. –Do the independent program. Do every assignment –Read the assignment the day it’s assigned. –It will take time to design solutions. Prepare for tests at least a week beforehand –It’s mostly programming, so be sure you can do the independent programs at the end of the labs without help.

20 CIT 383: Administrative ScriptingSlide #20 References 1.Mark Burgess, Principles of System and Network Administration, Wiley, 2000. 2.Aeleen Frisch, Essential System Administration, 3 rd edition, O’Reilly, 2002. 3.Ruby FAQ, http://www.rubygarden.org/faq/main/, 2006. http://www.rubygarden.org/faq/main/ 4.Dave Thomas with Chad Fowler and Andy Hunt, Programming Ruby, 2/e, Pragmatic Programmers, 2005. 5.Wikipedia, http://en.wikipedia.org/wiki/Ruby_programming_languag e, 2006. http://en.wikipedia.org/wiki/Ruby_programming_languag e


Download ppt "CIT 383: Administrative ScriptingSlide #1 CIT 383: Administrative Scripting Introduction."

Similar presentations


Ads by Google