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

Slides:



Advertisements
Similar presentations
CSC 171 – FALL 2004 COMPUTER PROGRAMMING LECTURE 0 ADMINISTRATION.
Advertisements

Scripting Languages. Originally, a script was a file containing a sequence of commands that needed to be executed Control structures were added to make.
COMP 110 Introduction to Programming Mr. Joshua Stough August 22, 2007 Monday/Wednesday/Friday 3:00-4:15 Gardner Hall 307.
CMPE 151: Network Administration Spring Class Description Focus: system and network administration. Sequence of exercises. E.g., installing/configuring.
1 SD1042: Introduction to Software Development SD1042 Introduction to Software Development SCHOOL OF COMPUTING AND TECHNOLOGY Getting Started MODULE TEAM.
Sadegh Aliakbary Sharif University of Technology Fall 2011.
Unix Presentation. What is an Operating System An operating system (OS) is a program that allows you to interact with the computer -- all of the software.
COP4020/CGS5426 Programming languages Syllabus. Instructor Xin Yuan Office: 168 LOV Office hours: T, H 10:00am – 11:30am Class website:
CSE 131 Computer Science 1 Module 1: (basics of Java)
Computer Science 2211b Software Tools and Systems Programming.
CSC 142 A 1 CSC 142 Introduction to Java [Reading: chapter 0]
Welcome to CS 115! Introduction to Programming. Class URL Please write this down!
CSCI 1301 Principles of Computer Science I
Sadegh Aliakbary Sharif University of Technology Spring 2011.
CS 3305 Course Overview. Introduction r Instructor: Dr Hanan Lutfiyya r Office: MC 355 r hanan at csd dot uwo ca r Office Hours: m Drop-by m Appointment.
Sadegh Aliakbary Sharif University of Technology Fall 2010.
COMP Introduction to Programming Yi Hong May 13, 2015.
1 INE 1020 Introduction to Internet Engineering Tutorial 3 Discussion on Homework 1.
Computer Science 2211b Software Tools and Systems Programming.
CIT 383: Administrative ScriptingSlide #1 CIT 383: Administrative Scripting Introduction.
CENT 305 Information Systems Security Linux Introduction.
How to be an online student. How does it work? An online course follows a schedule and syllabus with due dates for assignments (just like an on-campus.
Course Introduction Software Engineering
Computer Programming for Biologists Oct 30 th – Dec 11 th, 2014 Karsten Hokamp  Fill out.
Sadegh Aliakbary Sharif University of Technology Fall 2012.
Programming Concept Chapter I Introduction to Java Programming.
CSCI 51 Introduction to Computer Science Dr. Joshua Stough January 20, 2009.
Salman Marvasti Sharif University of Technology Fall 2014.
CS 390 Unix Programming Summer Unix Programming - CS 3902 Course Details Online Information Please check.
Course Information CSCI N321 – System and Network Administration Copyright © 2011, 2012 by Scott Orr and the Trustees of Indiana University.
CS 390 Unix Programming Environment Summer Suchindra Rengan - CS3902 Course Details Instructors Suchindra Rengan – ‘sachin’ ( Section 001)
Welcome to CS 115! Introduction to Programming. Class URL Write this down!
CSC 171 – FALL 2001 COMPUTER PROGRAMMING LECTURE 0 ADMINISTRATION.
Operating Systems Session 1. Contact details TA: Alexander(Sasha) Apartsin ◦ ◦ Office hours: Homepage:
ENEE150 – 0202 ANDREW GOFFIN Introduction to ENEE150.
LINUX System : Lecture 1 Course Overview Bong-Soo Sohn Associate Professor School of Computer Science and Engineering Chung-Ang University.
Principles of Computer Science I Honors Section Note Set 1 CSE 1341 – H 1.
National Taiwan University Department of Computer Science and Information Engineering National Taiwan University Department of Computer Science and Information.
Lecture.1: Getting Started With Java Jiang (Jen) ZHENG May 9 th, 2005.
Operating Systems Session 1. Contact details TA: Alexander(Sasha) Apartsin ◦ ◦ Office hours: TA: Sasha Alperovich.
Monday, Jan 6, 2003Kate Gregory with material from Deitel and Deitel CO 204 Object Oriented Programming 2003 Trent University Kate Gregory.
The HTTP is a standard that all Web browsers and Web servers must speak in order for the Web portion of the Internet to work.
Computer Science 101 Spring 2000 Section E8TBA Registration Code 1693 Dr. Christopher Vickery.
Introduction to Computer Programming (FIT-I pro) J. H. Wang Sep. 17, 2007.
Lecture 1. Introduction to Programming and Java MIT- AITI 2003.
CSCI 330 UNIX and Network Programming Unit I Introduction.
COP3502: Introduction to Computer Science Yashas Shankar Lecture #2.
Introduction Mehdi Einali Advanced Programming in Java 1.
CIT 383: Administrative ScriptingSlide #1 CIT 383: Administrative Scripting Directories.
Computer Networks CNT5106C
ITP 109 Week 2 Trina Gregory Introduction to Java.
Intro to CSC27I Software I : Utilities and Internals Pepper.
PROBLEM SOLVING AND PROGRAMMING ISMAIL ABUMUHFOUZ | CS 170.
Spring 2008 Mark Fontenot CSE 1341 – Honors Principles of Computer Science I Note Set 1 1.
Computer Science I ISMAIL ABUMUHFOUZ | CS 180. CS 180 Description BRIEF SUMMARY: This course covers a study of the algorithmic approach and the object.
Presented By P.SRIVIDYA 085D1A0552 Programming Language.
INT213 Active Server Pages using Visual Basic Scripting.
CSC 241: Introduction to Computer Science I
CSC 135 section 60 or CSC Fall 2017.
C Programming Language
The Linux Operating System
Introduction and Overview
PHP / MySQL Introduction
Yung-Hsiang Lu Purdue University
CSC 142 Introduction to Java [Reading: chapters 1 & 2]
System Administration (LTAT )
CS201 – Course Expectations
Web Application Development Using PHP
CSC 241: Introduction to Computer Science I
Presentation transcript:

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

CIT 383: Administrative ScriptingSlide #2 About Me James Walden –Assistant Professor of Computer Science –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

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

CIT 383: Administrative ScriptingSlide #4 Course Administration Web Site –Notes, readings, and assignments on web site. – Assignment submission –Use submit command on kosh. Contact Information – –Phone: (859)

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 , web, and directory servers. 5. Write programs to parse common data formats such as CSV, XML, and YAML.

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 A

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.

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

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.

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

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.

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

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

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

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”

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

CIT 383: Administrative ScriptingSlide #17 Where to get Ruby Linux –Debian/Ubuntu: apt-get install irb ruby –Fedora: yum install ruby Windows – Cygwin (UNIX command line for Win)‏ – In your browser –

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.

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.

CIT 383: Administrative ScriptingSlide #20 References 1.Mark Burgess, Principles of System and Network Administration, Wiley, Aeleen Frisch, Essential System Administration, 3 rd edition, O’Reilly, Ruby FAQ, Dave Thomas with Chad Fowler and Andy Hunt, Programming Ruby, 2/e, Pragmatic Programmers, Wikipedia, e, e