当前位置: 首页>>代码示例>>Python>>正文


Python Util.run_step_list方法代码示例

本文整理汇总了Python中lib.util.Util.run_step_list方法的典型用法代码示例。如果您正苦于以下问题:Python Util.run_step_list方法的具体用法?Python Util.run_step_list怎么用?Python Util.run_step_list使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在lib.util.Util的用法示例。


在下文中一共展示了Util.run_step_list方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: stop_medusa

# 需要导入模块: from lib.util import Util [as 别名]
# 或者: from lib.util.Util import run_step_list [as 别名]
 def stop_medusa(self):
     file_json_step = Define.PATH_SNIC_JSON_LINUX + "medusa_stop.json"
     Util.run_step_list(self._ssh, file_json_step)
     
 
     
 
     
     
开发者ID:huhe56,项目名称:nj-snic,代码行数:5,代码来源:node_compute.py

示例2: start_medusa

# 需要导入模块: from lib.util import Util [as 别名]
# 或者: from lib.util.Util import run_step_list [as 别名]
 def start_medusa(self, lun_type):
     file_json_step = None
     if lun_type == 1:
         file_json_step = Define.PATH_SNIC_JSON_LINUX + "medusa_start_boot_lun.json"
     elif lun_type == 2:
         file_json_step = Define.PATH_SNIC_JSON_LINUX + "medusa_start_data_lun.json"
     elif lun_type == 3:
         file_json_step = Define.PATH_SNIC_JSON_LINUX + "medusa_start_all_lun.json"
         
     Util.run_step_list(self._ssh, file_json_step)
开发者ID:huhe56,项目名称:nj-snic,代码行数:12,代码来源:node_compute.py

示例3: run_cmd_step

# 需要导入模块: from lib.util import Util [as 别名]
# 或者: from lib.util.Util import run_step_list [as 别名]
 def run_cmd_step(self, file_json_step):
     Util.run_step_list(self._ssh, file_json_step)
开发者ID:huhe56,项目名称:nj-snic,代码行数:4,代码来源:cmc.py

示例4: create_data_file_system

# 需要导入模块: from lib.util import Util [as 别名]
# 或者: from lib.util.Util import run_step_list [as 别名]
 def create_data_file_system(self):
     file_json_step = Define.PATH_SNIC_JSON_LINUX + "create_data_file_system.json"
     Util.run_step_list(self._ssh, file_json_step)
开发者ID:huhe56,项目名称:nj-snic,代码行数:5,代码来源:node_compute.py

示例5: NodeHead

# 需要导入模块: from lib.util import Util [as 别名]
# 或者: from lib.util.Util import run_step_list [as 别名]
import time

from main.define import Define
from lib.util import Util
from lib.node_head import NodeHead
from lib.ucsm import UCSM


if __name__ == '__main__':
    
    download = False
    
    if download:
        head_node = NodeHead(Define.NODE_HEAD_NAME, Define.NODE_DEFAULT_USERNAME)
        file_json_step = Define.PATH_SNIC_JSON_LINUX + "wget_ucsm_firmware.json"   
        Util.run_step_list(head_node.get_ssh(), file_json_step)
    
    ucsm = UCSM(Define.UCSM_HOSTNAME);
    ssh = ucsm.get_ssh()
    
    for i in range(len(Define.IMAGE_LIST)):
        ssh.send_expect_prompt("top")
        ssh.send_expect_prompt("scope firmware")
        ssh.send("download image " + Define.CMD_SCP_IMAGE_LIST[i])
        ssh.expect(Define.PATTERN_PASSWORD)
        ssh.send_expect_prompt(Define.NODE_DEFAULT_PASSWORD)
        ssh.send_expect_prompt("scope download-task " + Define.IMAGE_LIST[i])
        ret = Util.probe_send_expect(ssh, "show", "Downloaded", 60, 10)
        if not ret: exit()    
    
    ssh.send_expect_prompt("top")
开发者ID:huhe56,项目名称:nj-snic,代码行数:33,代码来源:upgrade_firmware_images.py

示例6: UCSM

# 需要导入模块: from lib.util import Util [as 别名]
# 或者: from lib.util.Util import run_step_list [as 别名]
'''
Created on Aug 26, 2014

@author: huhe
'''

from main.define import Define
from lib.util import Util
from lib.ucsm import UCSM


if __name__ == '__main__':
    
    ucsm = UCSM(Define.UCSM_HOSTNAME);
    file_json_step = Define.PATH_SNIC_JSON_UCSM + "basic_setup.json"   
    Util.run_step_list(ucsm.get_ssh(), file_json_step)
    ucsm.exit()
    

    
    
        
开发者ID:huhe56,项目名称:nj-snic,代码行数:19,代码来源:json_basic_setup.py

示例7: create_ipmi_policy

# 需要导入模块: from lib.util import Util [as 别名]
# 或者: from lib.util.Util import run_step_list [as 别名]
def create_ipmi_policy(ucsm_ssh, param):
    file_json_step = Define.PATH_SNIC_JSON_UCSM + "ipmi_policy.json"   
    Util.run_step_list(ucsm_ssh, file_json_step)
开发者ID:huhe56,项目名称:nj-snic,代码行数:5,代码来源:__init__.py


注:本文中的lib.util.Util.run_step_list方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。