How to get which is switch,or hub,or router in the LAN,and it's work state(work,stop,wrong)?