服务器和网络大师-节日快乐


今天不只是星期五。 今天是七月的最后一个星期五-这意味着系统管理员日! 在这个喜庆的星期五,系统管理员不要沐浴在喷泉里,不要在服务器机房里走动,也不要在市场营销人员追赶双绞线。 这些服务器和脚本工作人员始终在工作岗位上,保护用户的安宁和老板的神经-这样,有些人单击网站和1C模式,而其他人则不必计算停机造成的损失。 我们要对系统管理员的顺利,不间断的工作表示诚挚的“谢谢”,并为他们的健康而喝杯茶! 今天,我们将讨论本周我们公司的系统管理员或Unix工程师的典型日子。

#!/usr/bin/env python import time import os if (time.strftime("%H:%M")) == "09:30": os.system("!") print(" ,  ,  .   —  :    ,      ") elif (time.strftime("%H:%M")) == "10:00": os.system('  ,     ') elif (time.strftime("%H:%M")) == "11:00": os.system('!    -') print(",     -,   ,       ,     .     ,   .") elif (time.strftime("%H:%M")) == "11:15": os.system(' /  ,    -  !') print("  ,    —    ,  .   ,    ,      ,    .     —    :   ,  ,    ") elif (time.strftime("%H:%M")) == "12:30": os.system(' ;    ') print("  , -   ,    – Hadoop, Tarantool, Nginx,   , healthcheck-, ,      -, , ,  (,             !),     ,    stage-,    .    !     ,    ,  , .") elif (time.strftime("%H:%M")) == "13:15": os.system('!') print("        , ,     .             .") elif (time.strftime("%H:%M")) == "13:50": os.system('   ') print("     —     , ,  -. !     ,       .") elif (time.strftime("%H:%M")) == "15:15": os.system('  ,    ') #  ,    . elif (time.strftime("%H:%M")) == "16:07": os.system('    !') print("-, ,   -   .  ,  .        .") elif (time.strftime("%H:%M")) == "16:15": os.system('!  ') elif (time.strftime("%H:%M")) == "16:45": os.system('  ') #  , ,     ,  . elif (time.strftime("%H:%M")) == "17:15": os.system('Cloud time!') print(' Docker, Kubernetes  .     ,  ,    iops-,        " ",  , ,   ssd') elif (time.strftime("%H:%M")) == "18:03": os.system("   ?") #        ! if (time.strftime("%w")) == "1": os.system('  ,           ') print("    ,    .     .         ,   , .   ,  -   ") elif (time.strftime("%w")) == "2": os.system('!     ') print(" . ,   ,  ,    .         .   ,   ,    ") elif (time.strftime("%w")) == "3": os.system('      !') #     —   -    elif (time.strftime("%w")) == "4": os.system('capacity planning') print("    TestLab, ,     — CPU, RAM, HDD/SSD/NVMe      .") elif (time.strftime("%w")) == "5": os.system('!') print("  !     ! !") Man python, man linux, man bash, man man 

Source: https://habr.com/ru/post/zh-CN418331/


All Articles