4.14 CCIE EI LAB挂了 自动化部分58分 都不知道为什么分这么低
第五部分自动化得分58 我都蒙蔽了 现场lab环境R23进行现象测试 shutdown l10口 然后more /bootflash/guest-share/RCA_Capture.txt文件 可以看到show 命令输出
我的代码如下:
import cli
import sys
int=sys.argv
cmds=['show ip int brief','show ip ospf nei','show ip route','show int '+int,'show log']
with open('/bootflash/guest-share/RCA_Capture.txt','w') as f:
for cmd in cmds:
a=cli.execute(cmd)
f.write(a)
可能我shutdown l10接口后more /bootflash/guest-share/RCA_Capture.txt文件 可以看到show 说明我eem python track app-host 配置块均没问题,难道和我l10接口shutdown后可能是未no shutdown有关 也可能是和我show命令没写完整命令导致的?(题目要求不能使用缩写)但这真会导致只给我58分?python后面那道改错题也做了 现象也出了 最后一题选择题也做了 现在是死都不知道自己怎么死的 {:6_299:} NOTE: do not use abbreviated versions of the CLI commands.
题目要求不能缩写 int 是python内置的整数类型 不能用于设置变量 语法错误 本帖最后由 chashen 于 2025-4-29 15:48 编辑
Use of int as a variable name:
int is a built-in Python type. Using it as a variable name can cause bugs or confusion.
Fix: Rename it to something like interface. {:6_290:}{:6_290:} Thank you 很好,谢谢!
页:
[1]