hongboy8899 发表于 2008-11-6 10:33:13

求助,能把里面的中文计算机名导出来吗???急

hcb 发表于 2008-11-6 10:40:05

可以
/ip dhcp-s lea export file=1
在file菜单里面 ,把文件 1.src 拖到桌面上就可以了,打开1.src文件看看就是了

hongboy8899 发表于 2008-11-6 10:47:55

不行啊,我早就试过了,没有东西的

hongboy8899 发表于 2008-11-6 10:48:18

# nov/06/2008 10:46:13 by RouterOS 2.9.27
# software id = EGA7-48T
#
/ ip dhcp-server lease

就显示这么点下面没有了

hongboy8899 发表于 2008-11-6 10:50:42

make status后在exp有东西的,但是这样


# nov/06/2008 10:48:11 by RouterOS 2.9.27
# software id = EGA7-48T
#
/ ip dhcp-server lease
add address=192.168.5.11 mac-address=00:21:97:06:FB:26 \
    client-id="1:0:21:97:6:fb:26" server=xzl comment="" disabled=no
add address=192.168.6.50 mac-address=00:0B:DB:A4:4E:6C \
    client-id="1:0:b:db:a4:4e:6c" server=bgl comment="" disabled=no
add address=192.168.7.12 mac-address=00:1E:68:4C:75:58 \
    client-id="1:0:1e:68:4c:75:58" server=jxl comment="" disabled=no
add address=192.168.6.34 mac-address=00:0B:CD:A7:D7:B4 \
    client-id="1:0:b:cd:a7:d7:b4" server=bgl comment="" disabled=no
add address=192.168.6.38 mac-address=00:0B:DB:A4:8F:28 \
    client-id="1:0:b:db:a4:8f:28" server=bgl comment="" disabled=no
add address=192.168.7.32 mac-address=00:0B:CD:A6:D4:C5 \
    client-id="1:0:b:cd:a6:d4:c5" server=jxl comment="" disabled=no
add address=192.168.9.7 mac-address=00:1E:EC:66:3A:69 \
    client-id="1:0:1e:ec:66:3a:69" server=ysl comment="" disabled=no
add address=192.168.10.253 mac-address=00:0B:CD:A7:F1:B3 \

没中文计算机名,根本就没计算机名这项

hcb 发表于 2008-11-6 11:58:36

原来这样啊,没实际测试过,也许这项是动态的,导不出,但办法总是有的,可以用脚本把计算机名复制到注释里面,然后导出就可以了
/ip dhcp-s lea
:set id
:foreach i in=$id do={set $id comment=}
export file=1

hongboy8899 发表于 2008-11-6 13:30:32

好的哦,太感谢了,看来我要好好学习ros的脚本编程,ros的功能确实是很强大

zhjchina 发表于 2008-11-13 10:19:54

回复 7# 的帖子

/ip dhcp-server lease print detail file=lease
页: [1]
查看完整版本: 求助,能把里面的中文计算机名导出来吗???急