# $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 "end"
    Command "enable"
	Command "terminal length 0"
	Command "高端及数据中心交换机信息收集开始"
	Command "第一部分：软件版本"
	Command "show version detail"
	Command "show version slot"
	Command "show cpld version"
	Command "show vsd all"
	Command "show vsd all"
	Command "等待1秒"
	crt.sleep 1000
	Command "第二部分：软件调试"
	Command "第二部分：软件调试--端口配置--接口配置规范"
	Command "show interfaces counters errors"
	Command "show interfaces status"
	Command "等待2秒"
        crt.sleep 2000
	Command "show interfaces counters summary"
	Command "show interfaces counters rate"
        Command "show poe interfaces status"
        crt.sleep 1000
	Command "第二部分：软件调试--生成树功能-生成树模式"
	Command "show spanning-tree"
	Command "第二部分：软件调试--生成树功能-生成树优先级控制"
	Command "show spanning-tree summary"
	Command "show spanning-tree"
	Command "show spanning-tree counters"
	Command "第二部分：软件调试--生成树功能-生成树优化"
	Command "等待1秒"
        crt.sleep 1000
	Command "第二部分：软件调试--NFPP配置-ARP-Guard"
	Command "show nfpp arp-guard summary"
	Command "show nfpp arp-guard hosts"
	Command "show nfpp arp-guard scan"
	Command "show nfpp log buffer"
	Command "第二部分：软件调试--NFPP配置-DHCP-Guard"
	Command "show nfpp dhcp-guard summary"
	Command "show nfpp dhcp-guard hosts"
        crt.sleep 1000
	Command "第三部分：可靠性实施检查"
	Command "第三部分：可靠性实施检查--VSU--VSL链路"
	Command "show switch virtual link port"
	Command "show switch virtual link"
	Command "show switch virtual"
        Command "show switch virtual role"
	Command "show switch virtual config"
	Command "第三部分：可靠性实施检查--VSU--双主机检测"
	Command "show switch virtual config"
	Command "show switch virtual dual-active summary"
	Command "show switch virtual dual-active bfd"
	Command "第三部分：可靠性实施检查-VSU--跨机箱AP或ECMP"
	Command "show aggregatePort summary"
	Command "第三部分：可靠性实施检查--链路聚合"
	Command "show aggregatePort summary"
	Command "show lacp summary"
	Command "show aggregatePort load-balance"
	Command "show aggregatePort capacity"
	Command "第四部分：硬件缺陷检查--CMII管理板低速EMMC"
        Command "show clock"
        Command "run-system-shell"
	Command "dd if=/dev/zero of=/dev/emmcblk0p7 count=1 bs=16801792"
        Command "time dd if=/dev/zero of=/dev/emmcblk0p7 count=1 bs=16801792"
        Command "cat /tmp/proxy/defout/ssa_process"
	Command "exit"
        Command "show clock"
	Command "第五部分：基本运行状态"
	Command "show power"
	Command "show fan"
	Command "show temperature"
	Command "show cpu"
        Command "show card voltage"
        Command "run-system-shell"
        Command "tipc-config -n"
        Command "ls -l /var/tmp/coredump/"
        Command "cat /tmp/proxy/defout/ssa_process"
        Command "exit"
	Command "等待2秒"
        crt.sleep 2000
	Command "show cpu-protect mboard"			
	Command "等待3秒"
        crt.sleep 3000
	Command "show cpu"
	Command "show cpu-protect mboard"
	Command "等待3秒"
        crt.sleep 3000
	Command "show cpu"
	Command "show cpu-protect mboard"
	Command "show memory"
        Command "show cpu-protect slot 1"
        Command "show cpu-protect slot 2"
        Command "show cpu-protect slot 3"
        Command "show cpu-protect slot 4"
        Command "show cpu-protect slot 5"
        Command "show cpu-protect slot 6"
        Command "show cpu-protect slot 7"
        Command "show cpu-protect slot 8"
        Command "show cpu-protect slot 9"
        Command "show cpu-protect slot 10"
        Command "show cpu-protect slot 11"
        Command "show cpu-protect slot 12"
        Command "show cpu-protect device 2 slot 1"
        Command "show cpu-protect device 2 slot 2"
        Command "show cpu-protect device 2 slot 3"
        Command "show cpu-protect device 2 slot 4"
        Command "show cpu-protect device 2 slot 5"
        Command "show cpu-protect device 2 slot 6"
        Command "show cpu-protect device 2 slot 7"
        Command "show cpu-protect device 2 slot 8"
        Command "show cpu-protect device 2 slot 9"
        Command "show cpu-protect device 2 slot 10"
        Command "show cpu-protect device 2 slot 11"
        Command "show cpu-protect device 2 slot 12"
    	Command "等待1秒"
        crt.sleep 1000
	Command "show memory"
        Command "等待1秒"
        crt.sleep 1000
	Command "show memory"	
	Command "等待3秒"
        crt.sleep 3000
        Command "show cpu"
        Command "等待3秒"
        crt.sleep 3000	
	Command "show exception"
	Command "等待2秒"
        crt.sleep 2000
	Command "show efmp fpa"
	Command "show redundancy states"
	Command "收集扩展信息"
	Command "show ip route"
	Command "等待2秒"
        crt.sleep 2000
	Command "show ip route count"
	Command "show arp detail"
	Command "show arp count"
	Command "show mac-address-table count"
        Command "show ipv6 neighbors"
        Command "show ipv6 neighbors statistics"        
	Command "等待2秒"
        crt.sleep 2000
	Command "show supervlan"
	Command "show direct-vlan"	
	Command "show monitor"		
	Command "show ip dhcp snooping"	
	Command "show ip dhcp binding"
        Command "show ip dhcp server statistics"        
	Command "等待2秒"
        crt.sleep 2000
        Command "show interfaces transceiver"
        Command "show interfaces transceiver diagnosis"
        Command "show int transceiver man"
        Command "等待2秒"
        crt.sleep 2000
        Command "show erps"
        Command "show debugging"
        Command "debug dp display bc misc"
        Command "等待2秒"
        crt.sleep 2000
        Command "show run"
        Command "more config.text"
        Command "show logging"
        Command "show interface status | include up"
        Command "show interf counters errors"
	Command "信息收集结束"
	Command "等待1秒"
        crt.sleep 1000
        Command "terminal length 25"

End Sub  
