The invention discloses a detection device and a detection method for the working states of the slot positions of a
machine cabinet to solve the problem that the working states of the slot positions of the
machine cabinet cannot be determined in real time. The detection device comprises a network manager
information management unit, an in-place
information management unit, a
control unit and an executing unit, wherein the network manager
information management unit is used for acquiring the configuration information on the slot positions of the
machine cabinet, storing the configuration information in a way of corresponding to the identifier information ID and searching corresponding configuration information of a slot position to be detected according to the ID of the slot position to be detected; the in-place information
management unit is used for receiving in-place information reported by a receiving card, storing the in-place information in a way of corresponding to the ID of the slot position of the card, and searching corresponding the in-place information according to the ID of the slot position of the card; the
control unit is used for determining the working state of the slot position according to the search results of the network manager information
management unit and the in-place information
management unit; and the executing unit is used for outputting a
signal corresponding to the working state, determined by the
control unit, of the slot position according to the mapping relationship between a preset working state of the slot position and the output
signal.