# $language = "VBScript"
# $interface = "1.0"
Sub Command(comm)
	crt.screen.send comm & chr(13)
	crt.screen.WaitForString "#"
End Sub
Sub Command1(comm)
	crt.screen.send comm & chr(13)
	crt.screen.WaitForString ">"
End Sub
Sub Main
crt.Screen.Synchronous = False

 
    Command "enable"
	Command "terminal length 0"
	Command "出口网关信息收集开始"
	Command "第一部分：调试支持模式信息收集"
	Command "debug support"
	Command "exec octeon_fpa_regs"
	Command "exec efmp_dump_buffs"
	Command "show skbuff"
	Command "show exception"
	Command "exit"
	Command "等待2秒"
        crt.sleep 2000
	
	Command "第二部分：系统软件状态信息收集"
	Command "show ver"
	Command "show cpu | exclude 0%     0%     0%"
	Command "show clock" 
	Command "show memory"
	Command "show debugging"
	Command "show interfaces"
        Command "show interface | include no buffer"
        crt.sleep 2000
        Command "show interface | include no buffer"
        crt.sleep 2000
        Command "show interface | include no buffer"
        crt.sleep 2000
        Command "show interface | include no buffer"
        Command "show ip interface brief"
	Command "show logging"
	Command "show tcp connect"
	Command "clear efmp counter"
	Command "show efmp counter"
	Command "show arp"
	Command "等待2秒"
        crt.sleep 2000

	Command "第三部分：系统硬件状态信息收集"
	Command "show sata"
	Command "show slots"
	Command "show environment"
	Command "等待2秒"
        crt.sleep 2000
        
   Command "第四部分：系统业务配置信息收集"
	Command "show run"
	Command "sh run | in flow-pre-mgr"
	Command "show run | in bypass"
	Command "show run | in nat"
	Command "show running-config interface gi0/0"
	Command "show running-config interface gi0/1"
	Command "show running-config interface gi0/2"
	Command "show running-config interface gi0/3"
	Command "show running-config interface gi0/4"
	Command "show running-config interface gi0/5"
	Command "show running-config interface gi0/6"
	Command "show running-config interface gi1/0"
	Command "show running-config interface gi1/1"
	Command "show running-config interface gi1/2"
	Command "show running-config interface gi1/3"
	Command "show running-config interface gi2/0"
	Command "show running-config interface gi2/1"
	Command "show running-config interface gi2/2"
	Command "show running-config interface gi2/3"
	Command "show running-config interface te0/0"
	Command "show running-config interface te0/0"
	Command "show app route statistics"
	Command "show attack history"
        Command "show flow-pre-mgr new-session-limit attack"
        Command "show flow-pre-mgr drop-count"
	Command "show dhcp state"
	Command "show dldp interface"
	Command "show dns-proxy name-server"
	Command "show flow-audit node-info"
	Command "show flow-control"
	Command "show flow-control para"
	Command "show flow-pre-mgr ip-info "       
	crt.sleep 2000 
	Command "show flowrate application global application-group 视频会议"
	Command "show identify-application block"
	Command "show ip fpm statistics"
	Command "show ip fpm counters"
	Command "show mllb config"	
	Command "show multi-ldp interface "
	Command "show subscriber deny"
	Command "show subscriber deny"
	Command "show ip route ospf"
        Command "show ip route"
	Command "等待2秒" 
	crt.sleep 2000

Command "第五部分：其他信息补充收集"
	Command "show efmp counter"
	crt.sleep 2000
	Command "show efmp counter"
	crt.sleep 2000
	Command "show efmp counter"
	Command "#所有功能模块状态show"
	Command "#---- AP端口聚合 ----"
	Command "show aggregatePort summary"
	Command "show aggregatePort load-balance"
	Command "#---- 应用识别 ----"
	Command "show identify-application enable"
	Command "show identify-application version"
	Command "#---- 应用路由 ----"
	Command "show app route statistics"
	Command "show interface-group"
	Command "#---- 内容审计 ----"
	Command "show app-audit config"
	Command "show content-policy-relate policy-view"
	Command "#---- DHCP Server ----"
	Command "show ip dhcp server statistics"
	Command "show ip dhcp binding"
	Command "show ip dhcp conflict"
	Command "show dhcp lease"
	Command "#---- Dialer ----"
	Command "show dialer"
	Command "show pppoe session"
	Command "#---- DNS ----"
	Command "show hosts "
	Command "#---- DNS代理 ----"
	Command "show dns-proxy configure"
	Command "show dns-proxy name-server "
	Command "show dns-proxy statistics"
	Command "#---- REF邻接 ----"
	Command "show ip ref adjacency"	
	Command "#---- 流平台 ---- "
	Command "show ip fpm counters"
	Command "show ip fpm statistics"
	Command "#---- 流量审计 ----"
	Command "show flowrate channel"
	Command "show flowrate global"
	Command "show online statistics global"
	Command "#---- 流量控制 ----"
	Command "show flow-control-policy group"
	Command "show flow-control-policy rule"
	Command "show flow-control para"
	Command "#---- 流会话数预创建限制 ----"
	Command "show flow-pre-mgr rule-info"
	Command "#---- 防火墙 ----"
	Command "show ip inspect all"
	Command "#---- GRE ----"
	Command "show tunnel gre "
	Command "#---- 智能反馈 ----"
	Command "show feedback items"
	Command "#---- IPv6 ----"	
	Command "show ipv6 route "
	Command "show ipv6 interface"
	Command "show ipv6 neighbors"
	Command "#---- Line ----"
	Command "show line console 0"
	Command "show user"
	Command "#---- 多链路负载均衡 ----"
	Command "show mllb config"
	Command "show mllb statistics"
	Command "show over-load-protect configure"
	Command "#---- Memory ----"
	Command "show memory protocols"
	Command "#---- 模式管理 ----"
	Command "show bridge-map"
	Command "show sys-mode"
	Command "#---- Multi-ldp ----"
	Command "show multi-ldp interface"
	Command "#---- OSPF ----"	
	Command "show ip ospf "
	Command "show ip ospf neighbor"
	Command "#---- RIP ----"
	Command "show ip rip"
	Command "#---- Radius ----"
	Command "show radius server"
	Command "show radius parameter"
	Command "show radius vendor-specific"
	Command "#---- RNFP ----"
	Command "show arp-suspect"
	Command "show ef-rnfp all"
	Command "#---- Rlog ----"
	Command "show rlog"
	Command "show rlog-status"
	Command "show rlog-type"
	Command "#---- VPN ----"
	Command "show crypto ipsec sa"
	Command "show crypto isakmp sa"
	Command "show crypto map"
	Command "show vpdn session "
	Command "show sslvpn status"
	Command "#---- SNMP ----"
	Command "show snmp"
	Command "#---- SNTP ----"
	Command "show sntp"
	Command "#---- SSH ----"
	Command "show ssh"
	Command "show ip ssh"
	Command "#---- 文件系统 ----"
	Command "show sata"
	Command "show sd"
	Command "show usb"
	Command "#---- 用户路由 ----"
	Command "show user-route configure"
	Command "#---- VLAN Terminal ----"	
	Command "show vlan-terminal"
	Command "#---- VRRP ----"
	Command "show vrrp"
	Command "#---- Web认证 ----"
	Command "show web-auth global"	
	Command "show web-auth statistics "
	Command "terminal length 25"
	Command "#---信息收集完成---"   

crt.sleep 2000
End Sub  
