86915039 发表于 2025-4-16 09:53:52

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后面那道改错题也做了 现象也出了 最后一题选择题也做了 现在是死都不知道自己怎么死的

thamky 发表于 2025-4-16 13:20:33

{:6_299:}

Leehyoeun1 发表于 2025-4-17 16:22:49

NOTE: do not use abbreviated versions of the CLI commands.
题目要求不能缩写

chashen 发表于 2025-4-29 15:36:53

int 是python内置的整数类型 不能用于设置变量 语法错误

chashen 发表于 2025-4-29 15:38:33

本帖最后由 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.

saadnwz 发表于 2025-5-6 18:06:45

{:6_290:}{:6_290:}

saadnwz 发表于 2025-5-6 18:06:53

Thank you

shangd 发表于 2025-5-6 18:28:43

很好,谢谢!
页: [1]
查看完整版本: 4.14 CCIE EI LAB挂了 自动化部分58分 都不知道为什么分这么低