找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 2017|回复: 7

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

[复制链接]
发表于 2008-11-6 10:33:13 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?注册

×
未命名.JPG
routeros
发表于 2008-11-6 10:40:05 | 显示全部楼层
可以
/ip dhcp-s lea export file=1
在file菜单里面 ,把文件 1.src 拖到桌面上就可以了,打开1.src文件看看就是了
routeros
回复

使用道具 举报

 楼主| 发表于 2008-11-6 10:47:55 | 显示全部楼层
不行啊,我早就试过了,没有东西的
routeros
回复

使用道具 举报

 楼主| 发表于 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

就显示这么点下面没有了
routeros
回复

使用道具 举报

 楼主| 发表于 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:0BB: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:A77:B4 \
    client-id="1:0:b:cd:a7:d7:b4" server=bgl comment="" disabled=no
add address=192.168.6.38 mac-address=00:0BB: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 \

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

使用道具 举报

发表于 2008-11-6 11:58:36 | 显示全部楼层
原来这样啊,没实际测试过,也许这项是动态的,导不出,但办法总是有的,可以用脚本把计算机名复制到注释里面,然后导出就可以了
/ip dhcp-s lea
:set id [find]
:foreach i in=$id do={set $id comment=[get $i host-name]}
export file=1
routeros
回复

使用道具 举报

 楼主| 发表于 2008-11-6 13:30:32 | 显示全部楼层
好的哦,太感谢了,看来我要好好学习ros的脚本编程,ros的功能确实是很强大
routeros
回复

使用道具 举报

发表于 2008-11-13 10:19:54 | 显示全部楼层

回复 7# 的帖子

/ip dhcp-server lease print detail file=lease
routeros
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|Archiver|手机版|小黑屋|软路由 ( 渝ICP备15001194号-1|渝公网安备 50011602500124号 )

GMT+8, 2024-6-1 16:20 , Processed in 0.082545 second(s), 5 queries , Gzip On, Redis On.

Powered by Discuz! X3.5 Licensed

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表