% CST8207 Week 11 Notes - system logging, process management, crontab, at % Ian! D. Allen - - [www.idallen.com] % Fall 2013 - September to December 2013 - Updated Tue Dec 10 21:25:03 EST 2013 Readings, Assignments, Labs, and ToDo ===================================== - Read (at least) these things (All The Words): - [Week 11 Notes HTML] - this file - **Read All The Words** - [Unix/Linux system logging, log files, kernel messages] - [Unix/Linux Processes, Jobs, background, foreground, kill, killall] - [Delayed and Repeated Scheduled Execution - at, cron, and crontab] - [List of Commands You Should Know] - Using your [lynda.com] account, watch [Unix for Mac OS X Users] - **5. Commands and Programs 52m 34s** - System information commands 3m 40s - date, uptime, users, who, uname, hostname, domainname - Viewing processes 5m 0s - ps - Monitoring processes 3m 36s - top - Stopping processes 3m 19s - kill Assignments this week --------------------- Check the due date for each assignment and put a reminder in your agenda, calendar, and digital assistant. - Read (All The Words), Do, and then Submit via Blackboard: - [Assignment #09 HTML] – [Permissions], [Umask] - [Assignment #11 HTML] – [Processes and Jobs][Unix/Linux Processes, Jobs, background, foreground, kill, killall], [System Log Files][Unix/Linux system logging, log files, kernel messages], [Crontab and At][Delayed and Repeated Scheduled Execution - at, cron, and crontab], [Minimal Permissions] - [Assignment #07 HTML] – installing and configuring CentOS in a VM, using [CentOS Installation and Configuration] and [CentOS VMware Tools Installation] - Coming soon: Assignment #12 HTML – user and group management (Megadeth Project) - You must have a working CentOS installed for Assignments 12 and 13. Lab work this week ------------------ - [CentOS Installation and Configuration] - [Assignment #07 HTML] will verify this installation. - [CentOS VMware Tools Installation] - [Assignment #07 HTML] will verify this installation. - [Worksheet #08 HTML][Minimal Permissions] – permissions, mode, `chmod`, `umask` - minimum permissions needed for basic file operations (needed for [Assignment #11 HTML]) From the Class Notes link on the Course Home Page ================================================= - Review last week. Did you do everything assigned last week? From the Classroom Whiteboard/Chalkboard ======================================== - Your in-class notes go here. - Charles Dougan solves the minimum permissions exercise in Worksheet #08: > I took a structured approach which involved setting up test cases. I went > on the assumption of having no knowledge of permissions - blackbox testing > in essence. Basically, I started by giving full permissions for USER to > “target directory”, “source directory” and “source file”. As per #1, #2 > and #3, I started by removing all permissions on the “target directory”; > then set bits, one-by-one with chmod command. On success, I recorded > symbolic permissions; then moved on to the “source directory” and repeated > process. On success, I recorded symbolic permissions; then moved on to the > “source file”. It took me 48 test cases to ‘proof’ the entire exercise. I > think the total possible of cases could have been (2\^3) x # of boxes (16) > = 128; but you stop on success. I recorded my results in a document which > is attached. C. Dougan > (The number of cases is actually 2\^3\^# where # is the number of boxes > in a row. Rows with three boxes have 8x8x8=512 possible combinations, but > careful choosing of test cases can quickly reduce that. -Ian!) - Data mining: Looking for lines that contain more than one text string: - `$ fgrep 'string one' filenames... | fgrep 'string two'` - can be extended to any number of text strings with more `fgrep`: - `$ fgrep 'one' filenames... | fgrep 'two' | fgrep 'three' | fgrep 'four'` - Data mining: Which users have the most `Failed password` attempts? - HINT: Look in the system authorization log and use [Pipes] to extract and count the userids. - Basic EMail etiquette: - Make the **Subject:** match the message. - Don’t quote irrelevant crap in replies; remove the junk. - [Don’t top-post] unless forwarding. - Use an [SMS Gateway List] to find the email address of your SMS enabled phone, and email a test message directly to your phone. (May be subject to length restrictions and incur an arbitrary delay.) - To find your phone gateway, try Real Sysadmin Work ================== - [How to fix any computer] Linux/Unix co-op job at Alcatel-Lucent -------------------------------------- From Michael Anderson: > *W14-8139- 77x Service Router 73D* > > Company Name: *Alcatel-Lucent* > > Key Responsibilities / Functions: > > ·Remotely troubleshoot customer network issues on various IP Routing > Products (includes 7750 SR, 7710SR, 7450 ESS, 7950 XRS, 7705 SAR and 7210 > SAS) > > ·Analyze router/switch event logs and alarms, packet captures, connectivity > traces, etc. to isolate issues to a product > > ·Interface with Global Technical Expertise Centers, Customer Account Teams, > other Business Units, for technical consultation and customer support > concerns > > ·Debug complex product installations, resolves complicated product problems > by applying both established procedures and creative alternatives > > ·Enhance the capabilities to learn end to end solution/products of various > customers. > > ·Maintain problem status and problem resolution records via ticketing > system(s) > > ·Prepare reports on problems encountered and methods of resolution applied > ensuring overall system integrity and reliability > > ·Maintain awareness of new features via training and cross train co-workers > > Required Qualifications: (Education, Technical Skills/Knowledge) > > ·Must have excellent communication (verbal and written) skills > > ·Must have the ability to work well in a team environment > > ·Must be able to independently prioritize work > > ·Working knowledge of Linux or Solaris OS in order to parse large amounts > of data effectively > > ·Knowledge of communication protocols (SNMP, TCP/IP) > > Desired Qualifications: (Education, Technical Skills/Knowledge) > > ·Knowledge of mobility related solutions (LTE, Mobile Backhaul, SDN) is an > asset > > ·Familiarity with various test equipment (IXIA, SmartBits, Landslide, etc). > is desirable > > ·Working knowledge of IP Addressing/Sub-netting, Routing Protocols > concepts, IP/MPLS is an asset Take Notes In Class! -------------------- ![Take Notes in Class] -- | Ian! D. Allen - idallen@idallen.ca - Ottawa, Ontario, Canada | Home Page: http://idallen.com/ Contact Improv: http://contactimprov.ca/ | College professor (Free/Libre GNU+Linux) at: http://teaching.idallen.com/ | Defend digital freedom: http://eff.org/ and have fun: http://fools.ca/ [Plain Text] - plain text version of this page in [Pandoc Markdown] format [www.idallen.com]: http://www.idallen.com/ [Unix/Linux system logging, log files, kernel messages]: 580_system_log_files.html [Unix/Linux Processes, Jobs, background, foreground, kill, killall]: 600_processes_and_jobs.html [Delayed and Repeated Scheduled Execution - at, cron, and crontab]: 630_crontab_at_job_scheduler.html [List of Commands You Should Know]: 900_unix_command_list.html [lynda.com]: https://lyceum.algonquincollege.com/Lynda [Unix for Mac OS X Users]: http://wwwlyndacom.rap.ocls.ca/Mac-OS-X-10-6-tutorials/Unix-for-Mac-OS-X-Users/78546-2.html [Permissions]: 500_permissions.html [Umask]: 510_umask.html [Minimal Permissions]: worksheet08.html [CentOS Installation and Configuration]: 000_centos_install.html [CentOS VMware Tools Installation]: 000_centos_vmware_tools.html [Pipes]: 200_redirection.html#examples-of-pipes [Don’t top-post]: http://idallen.com/topposting.html [SMS Gateway List]: http://en.wikipedia.org/wiki/List_of_SMS_gateways [How to fix any computer]: http://theoatmeal.com/blog/fix_computer [Take Notes in Class]: data/remember.jpg "Take Notes in Class" [Plain Text]: week11notes.txt [Pandoc Markdown]: http://johnmacfarlane.net/pandoc/