你好:

     感谢你访问我的 Blog ,本博客只提供博主的技术经验分享,你可以在此做简单的留言和评论,我会抽空回复你;若是要深入交流探讨,请联系QQ:47853253或者加QQ群:12012081


 

锐捷路由-NBR-900G_唯一_ARP列表生成工具

 #Region ;**** 参数创建于 ACNWrapper_GUI ****

#PRE_Icon=..\..\..\tools\高清ICO\themes.ico
#PRE_Res_requestedExecutionLevel=None
#EndRegion ;**** 参数创建于 ACNWrapper_GUI ****
Dim $a="{I:192.168.1."
$b=",M:"
$e="00:00:00:00:00:0"
$ee="00:00:00:00:00:"
$eee="00:00:00:00:"
$eee1="10:00:00:00:0"
$eeee="00:00:00:"
$eeee1="11:00:00:0"
$f=",d:lan,t:only,n:强制保留}"
$ff=":00,d:lan,t:only,n:强制保留}"
$fff=":00:00,d:lan,t:only,n:强制保留}"
$a1="I:IPaddr,M:MACaddr,d:devname,n:name"
$a2="I:IP地址,M:MAC地址,d:接口,t:类型,n:描述"
filewrite("arpsts.cfg",$a1&@crlf)
filewrite("arpsts.cfg",$a2&@crlf)
For $c= 1 To 9
$d=$a&$c&$b&$e&$c&$f
filewrite("arpsts.cfg",$d&@crlf)
Next 
;msgbox(64,"状态","900G,arp表生成成功","")
For $cc= 10 To 99
$d=$a&$cc&$b&$ee&$cc&$f
filewrite("arpsts.cfg",$d&@crlf)
Next
;msgbox(64,"状态","900G,arp表生成成功","")
For $ccc=100 To 109
$ccc1=$ccc-100
$d=$a&$ccc&$b&$eee1&$ccc1&$ff
filewrite("arpsts.cfg",$d&@crlf)
Next
For $ccc=110 To 199
$ccc1=$ccc-100
$d=$a&$ccc&$b&$eee&$ccc1&$ff
filewrite("arpsts.cfg",$d&@crlf)
Next
;msgbox(64,"状态","900G,arp表生成成功","")
For $cccc=200 To 209
$cccc1=$cccc-200
$d=$a&$cccc&$b&$eeee1&$cccc1&$fff
filewrite("arpsts.cfg",$d&@crlf)
Next
For $cccc=210 To 254
$cccc1=$cccc-200
$d=$a&$cccc&$b&$eeee&$cccc1&$fff
filewrite("arpsts.cfg",$d&@crlf)
Next
msgbox(64,"状态","900G,arp表生成成功","")


文章来自: 本站原创
引用通告: 查看所有引用 | 我要引用此文章
Tags:
评论: 0 | 引用: 0 | 查看次数: 209
发表评论
你没有权限发表留言!