# $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 ver"
	Command "show version slot"
	Command "show run"
        Command "show clock"
	Command "! Current client's system time is "&Date&" "&Time
	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"
        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 "第四部分：基本运行状态"
	Command "show power"
	Command "show fan"
	Command "show temperature"
	Command "show cpu"
	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 slot 1/1"
        Command "show cpu-protect slot 1/2"
        Command "show cpu-protect slot 1/3"
        Command "show cpu-protect slot 1/4"
        Command "show cpu-protect slot 1/5"
        Command "show cpu-protect slot 1/6"
        Command "show cpu-protect slot 1/7"
        Command "show cpu-protect slot 1/8"
        Command "show cpu-protect slot 1/9"
        Command "show cpu-protect slot 1/10"
        Command "show cpu-protect slot 1/11"
        Command "show cpu-protect slot 1/12"
        Command "show cpu-protect slot 2/1"
        Command "show cpu-protect slot 2/2"
        Command "show cpu-protect slot 2/3"
        Command "show cpu-protect slot 2/4"
        Command "show cpu-protect slot 2/5"
        Command "show cpu-protect slot 2/6"
        Command "show cpu-protect slot 2/7"
        Command "show cpu-protect slot 2/8"
        Command "show cpu-protect slot 2/9"
        Command "show cpu-protect slot 2/10"
        Command "show cpu-protect slot 2/11"
        Command "show cpu-protect slot 2/12"
    	Command "等待1秒"
        crt.sleep 1000
	Command "show memory"
	Command "等待1秒"
        crt.sleep 1000
        Command "more config.text"
        Command "等待1秒"
        crt.sleep 1000
	Command "show memory"	
	Command "等待3秒"
        crt.sleep 3000
        Command "show resource owner all slot M1"
        Command "show resource owner all slot M2"
        Command "show resource owner all slot 1"
        Command "show resource owner all slot 2"
        Command "show resource owner all slot 3"
        Command "show resource owner all slot 4"
        Command "show resource owner all slot 5"
        Command "show resource owner all slot 6"
        Command "show resource owner all slot 7"
        Command "show resource owner all slot 8"
        Command "show resource owner all slot 9"
        Command "show resource owner all slot 10"
        Command "show resource owner all slot 11"
        Command "show resource owner all slot 12"
        Command "show resource owner all slot 1/M1"
        Command "show resource owner all slot 1/M2"
        Command "show resource owner all slot 2/M1"
        Command "show resource owner all slot 2/M2"
        Command "show resource owner all slot 1/1"
        Command "show resource owner all slot 1/2"
        Command "show resource owner all slot 1/3"
        Command "show resource owner all slot 1/4"
        Command "show resource owner all slot 1/5"
        Command "show resource owner all slot 1/6"
        Command "show resource owner all slot 1/7"
        Command "show resource owner all slot 1/8"
        Command "show resource owner all slot 1/9"
        Command "show resource owner all slot 1/10"
        Command "show resource owner all slot 1/11"
        Command "show resource owner all slot 1/12"
        Command "show resource owner all slot 2/1"
        Command "show resource owner all slot 2/2"
        Command "show resource owner all slot 2/3"
        Command "show resource owner all slot 2/4"
        Command "show resource owner all slot 2/5"
        Command "show resource owner all slot 2/6"
        Command "show resource owner all slot 2/7"
        Command "show resource owner all slot 2/8"
        Command "show resource owner all slot 2/9"
        Command "show resource owner all slot 2/10"
        Command "show resource owner all slot 2/11"
        Command "show resource owner all slot 2/12"
        Command "等待3秒"
        crt.sleep 3000	
	Command "debug support"
	Command "show exception"
        Command "show skbuff"
        Command "show queue"
        Command "show tipc nodes"
	Command "exit"
	Command "收集扩展信息"
	Command "show ip route"
	Command "等待2秒"
        crt.sleep 2000
	Command "show ip route count"
	Command "show arp count"
	Command "show mac-address-table count"
        Command "show ipv6 neighbors statistics"        
	Command "等待2秒"
        crt.sleep 2000
	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 "等待2秒"
        crt.sleep 2000
        Command "show debugging"
        Command "等待2秒"
        crt.sleep 2000
        Command "show logging"
	Command "信息收集结束"
	Command "等待1秒"
        crt.sleep 1000
        Command "show redundancy states"
	Command "debug su"
        Command "show checkpoint client"
	Command "exit"
        Command "show vsu lmp vsl-ap mb"
	Command "show vsu lmp vsl-ap member"
        Command "show rrp log"
	Command "show rrp context"
        Command "show dad"
	Command "show dad bfd"
        Command "show dad mad"
	Command "debug su"
        Command "show task"
	Command "show irq"
        Command "show semaphore"
	Command "show queue"
        Command "show timer"
	Command "show eventgroup"
        Command "show memory"
	Command "show pool"
        Command "show skb"
	Command "show user"
        Command "show tcp con"
	Command "debug net"
        Command "tcp"
	Command "exit"
        Command "debug su"
	Command "show task"
        Command "show task"
	Command "show task"
        Command "exit"
	Command "show service"
        Command "show ip ssh"
	Command "show ssh"
        Command "show interface sw_spcb"
	Command "show interface attribute all"
        Command "show mac-address-table aging-time"
	Command "show mac-address-table static"
        Command "show mac-address-table filter"
	Command "show mac-address-table notification "
        Command "show spanning-tree mst configuration"
	Command "show vlan"
        Command "show interfaces switchport"
	Command "show l2protocol-tunnel"
        Command "show registration-table"
	Command "show traffic-redirect"
        Command "show translation-table"
	Command "show interfaces vlan-mapping "
        Command "show interface mac-address-mapping"
	Command "show interface remark"
        Command "show interface dot1q-tunnel"
	Command "show inner-priority-trust"
        Command "show lldp local-information"
	Command "show lldp neighbors"
        Command "show lldp statistics"
	Command "show lldp status"
        Command "show lldp tlv-config "
	Command "show ip route summary"
        Command "show ip route"
	Command "show ipv6 route summary"
        Command "show ipv6 route"
	Command "show mpls forwarding-table"
        Command "show vrf detail"
	Command "show pbr rm"
        Command "show pbr fw"
	Command "show pbr bfd"
        Command "show ip ref adj"
	Command "show pbrv6 rm"
        Command "show pbrv6 fw"
	Command "show ipv6 ref adj"
        Command "show route-map"
	Command "show access-lists"
        Command "show ip policy"
	Command "show pbr rm"
        Command "show pbr fw"
	Command "show ipv6 policy"
        Command "show pbrv6 rm"
	Command "show pbrv6 fw"
        Command "debug su"
	Command "exec show_pbr_node"
        Command "exit"
	Command "show ip dhcp server statics"
        Command "show ip dhcp binding"
	Command "show ip dhcp pool"
        Command "show ip dhcp conflict"
	Command "show ipv6 dhcp binding"
        Command "show ipv6 dhcp pool"
	Command "show ipv6 dhcp server static"
        Command "show memory protocols"
	Command "show ip ospf"
	Command "show ip ospf neighbor"
        Command "show ip ospf border-routers"
	Command "show ip ospf spf"
        Command "show ip ospf route count"
	Command "show ip ospf route"
        Command "show ip ospf database database-summary"
	Command "show ip ospf database"
        Command "show ip route count"
	Command "show ipv6 ospf"
        Command "show ipv6 ospf neighbor"
	Command "show ipv6 ospf interface"
        Command "show ipv6 ospf topology"
	Command "show ipv6 ospf spf"
        Command "show ipv6 ospf route count"
	Command "show ipv6 ospf database database-summary"
        Command "show ipv6 ospf database"
	Command "show ipv6 route summary all"
        Command "show bgp all summary"
	Command "show bgp all neighbors"
        Command "show bgp all"
	Command "show vrrp"
        Command "show vrrp brief"
	Command "show ip ref route"
        Command "show ipv6 dhcp pool"
	Command "show ip ref adj"
        Command "show ip ref"
	Command "show ip ref resolve-list"
	Command "show access-list"
        Command "show access-group"
	Command "sd"
        Command "nfpp drop_cnt all"
	Command "nfpp drop_cnt clear"
        Command "pacl dump summary"
	Command "pacl dump all"        
	Command "dex"
        Command "terminal length 25"

End Sub  
