GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — python-course/python-for-sysadmin at main · ioggstream/python-course

Expand file tree

/

python-for-sysadmin

/
Copy path

Directory actions

More options

More options

Directory actions

More options

More options

Latest commit

 

History

History
History
/

python-for-sysadmin

/
Copy path

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
data
data
 
 
images
images
 
 
notebooks
notebooks
 
 
scripts
scripts
 
 
slide
slide
 
 
.gitignore
.gitignore
 
 
Dockerfile
Dockerfile
 
 
Makefile
Makefile
 
 
README.md
README.md
 
 
README.setup
README.setup
 
 
docker-compose.yml
docker-compose.yml
 
 
requirements.txt
requirements.txt
 
 
test_prerequisites.py
test_prerequisites.py
 
 
tox.ini
tox.ini
 
 

README.md

Outline

Python for System Administrators

Browse this course with the online notebook viewer!

Setup

See README.setup for detailed instruction on:

- Linux
- Windows
- Mac OS

If you use docker, just run:

# docker-compose up course
# firefox http://localhost:8888

For ansible homework, setup the ssh keys and run:

# docker-compose scale course=1 ansible=2

Playing the course

An easy way to run the course is on Linux with:

#pip install -r requirements.txt    # install dependencies
#nosetests -v                       # check if everything is ok
#jupyter-notebook notebooks/        # ;)

Each notebook is associated to a python file in scripts/.

Outline

  • If you are a novice, consider reading the introductory crash course in ../python-basic/

  • Introducing ipython

    • 01_ipython.ipy
  • Managing files

    • 02_file_management.py
  • Gathering system data

    • 01_system_data_gathering.py
  • Introduction to nosetest

    • 02_nosetests_simple.py
  • Parsing 101

    • 03_parsing_test.py
    • 03_parsing_benchmarks.py
  • Data processing

    • 04_simple_processing.py
    • 04_logging_parsing.py
  • Ansible

    • 05_ansible.py
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.