本文整理汇总了Python中lib.util.Util.collect_tech_support方法的典型用法代码示例。如果您正苦于以下问题:Python Util.collect_tech_support方法的具体用法?Python Util.collect_tech_support怎么用?Python Util.collect_tech_support使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类lib.util.Util
的用法示例。
在下文中一共展示了Util.collect_tech_support方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: NodeCompute
# 需要导入模块: from lib.util import Util [as 别名]
# 或者: from lib.util.Util import collect_tech_support [as 别名]
ssh = ucsm.get_ssh()
cmd1 = "show tech-support ucsm detail"
cmd2 = "show tech-support chassis 1 all detail"
cmd4 = "show tech-support fex 2 detail"
cmd5 = "show tech-support fex 3 detail"
cmd11 = "show tech-support server 1 detail"
cmd12 = "show tech-support server 2 detail"
cmd13 = "show tech-support server 3 detail"
cmd14 = "show tech-support server 4 detail"
for cmd in [cmd2]:
Util.collect_tech_support(ssh, cmd)
'''
Util.collect_ucsm_tech_support(ssh)
Util.collect_chassis_tech_support(ssh)
'''
'''
compute_node = NodeCompute("node02", Define.NODE_USERNAME_ROOT, Define.NODE_DEFAULT_PASSWORD)
ssh = compute_node.get_ssh()
Util.collect_usnic_tech_support(ssh)
'''
ssh.exit()