A kind of server ON/OFF case alarm device, system and method
Technical field
The present invention relates to server security field, in particular to a kind of server ON/OFF case alarm device, system and
Method.
Background technique
Server is most crucial one of the infrastructure of data center, user to the security requirement of server increasingly
It is high.Safety includes the various aspects such as hardware, software, and wherein the safety of hardware aspect is the foundation stone of entire server security.Such as
The safety of fruit hardware aspect cannot ensure or even main component is damaged, then the safety of entire server can not all protect
Card.
One of them important functional characteristic is in terms of server security: when server is opened or closed, server
System wants that ON/OFF case event can be perceived in time, and in the outband management system of server, the i.e. BMC of server
Cabinet is recorded on alarm platform in (Baseboard Management Controller, baseboard management controller) to be opened
Or the event closed, and the administrator or owner of server are notified in time.
Realize above-mentioned security function, when machine box for server is opened or closed, need one it is reliable, durable
Hardware device perceives ON/OFF case event, this is the basis for realizing above-mentioned security function.
As shown in Figure 1, the ON/OFF lid for server at this stage detects hardware device.It touches microswitch a1 and is fixed on machine
On bottom seat a2, and touches microswitch a1 and server master board a4 is connected to by cable a3.Touching microswitch a1 includes one
A vertically disposed armed lever a11 touches microswitch a1 conducting when armed lever a11 is pressed.This arm for touching microswitch
Bar a11, legal usage mode are in vertical direction stress, to switch between through and off.
Due to server chassis cover a5 closure when, can first downwards fasten, then along horizontal direction translate one section away from
From horizontal direction as shown by the arrows in Figure 1 is mobile, can be closed in place.Therefore, when this microswitch a1 that touches is used in
When server ON/OFF boxes detecting device, the chassis cover a5 of server wants closure in place, needs first touch microswitch a1
It presses, then on the basis of touching microswitch a1 and pressing, chassis cover a5 is mobile further along horizontal direction.But on cabinet
Lid a5 is in the horizontal direction to be displaced to the power for touching microswitch a1 application horizontal direction, and the Impact direction that armed lever a11 is pressed
It is vertical direction, therefore during chassis cover a5 closing, it will generate fatal influence to armed lever a11, be very easy to damage
The bad armed lever a11 for touching microswitch a1.Once armed lever a11 is damaged, chassis cover a5 is closed or next chassis cover a5
When opening, server ON/OFF case detection function and alarm function can all fail, and not have the effect of server ON/OFF case alarm.
Summary of the invention
In view of the deficiencies in the prior art, the purpose of the present invention is to provide a kind of alarms of server ON/OFF case to fill
It sets, system and method, avoids touching microswitch stress damage in the horizontal direction, reduce the alarm failure of server ON/OFF case
Risk, improve server ON/OFF case alarm reliability.
To achieve the above objectives, the present invention takes a kind of server ON/OFF case alarm device, comprising:
Microswitch is touched, is installed on the backboard that server is vertically arranged, and the armed lever of slight touch switch is pressed
Direction is horizontal direction;
Press part is installed below the chassis cover of the server;
When the chassis cover is detained, there are spacing for the armed lever of the press part and slight touch switch;
When the chassis cover is closed in place, the press part presses the armed lever, and the slight touch switch quilt
Pressing conducting.
Based on the above technical solution, the slight touch switch is installed on the backboard by welding,
And it is electrically connected with the backplane controller of the backboard.
Based on the above technical solution, the slight touch switch further includes ontology and contact, described armed lever one end
Connect the ontology;The contact is installed on the ontology, and between the armed lever and ontology;When the armed lever is described
When press part is pressed, the contact, slight touch switch conducting are contacted and compressed.
Based on the above technical solution, one end of the not connected ontology of the armed lever is arc-shaped, and outer arc is convex to institute
State press part.
Based on the above technical solution, the part that the press part is contacted with the armed lever is plane.
The present invention also provides a kind of server ON/OFF case warning systems, including backplane controller, unpack alarm device and base
Microswitch one end of touching of board management controller BMC, the unpacking alarm device connect the input of the backplane controller/defeated
Outlet, and corresponding input/output voltage is pulled upward to by resistance, touch the other end connection electric wire ground terminal of microswitch
GND, the backplane controller are connected by data channel with the BMC, and the input/output terminal detection of backplane controller is slight
The on/off state of touch switch, and it is reported to the BMC.
Based on the above technical solution, the backplane controller is complex programmable logic device (CPLD) or monolithic
Machine.
Based on the above technical solution, the data channel between the backplane controller and BMC is that system administration is total
Line SMBus.
The present invention also provides a kind of server ON/OFF case alarm methods, comprising:
When the chassis cover of server is closed, the armed lever of microswitch is touched in the press part pressing for touching microswitch, gently
Micro-touch moves switch conduction, and the input/output terminal of backplane controller detects low level, is reported to the BMC;
When the chassis cover of server is opened, the press part for touching microswitch leaves the armed lever of microswitch, slightly
Touch switch disconnects, and the input/output terminal of backplane controller detects high level, is reported to the BMC;
The BMC generates server ON/OFF when the input/output terminal of backplane controller detects that level changes
Case alarm.
Based on the above technical solution, what the input/output terminal that the BMC actively obtains backplane controller detected
Level state is only monitored when level state remains unchanged.
The beneficial effects of the present invention are:
1, it in the present invention, touches microswitch and is mounted on the backboard that server is vertically arranged, the arm of slight touch switch
It is that horizontal direction is mounted on the press part of chassis cover with cabinet when chassis cover moves horizontally closure that bar, which presses direction,
Upper cover translation, finally presses semaphore, presses slight touch switch, micro-touch moves switch conduction.When chassis cover moves horizontally opening
When, press part leaves armed lever, and armed lever is restored to original position, and slight touch switch disconnects.Due to the armed lever of slight touch switch
Impact direction is identical as chassis cover translation direction, therefore the ON/OFF of chassis cover will not impact armed lever, prevents from touching
The damage of microswitch reduces the risk of server ON/OFF case alarm failure.
2, slight touch switch is installed on backboard by welding, and is electrically connected with the backplane controller of backboard,
Do not use conducting wire to connect, save the material cost of the part cable and plug connector, at the same also eliminate install the part cable and
The production and processing cost of plug connector.
3, slight touch switch carries out on/off by the way of contact and armed lever contact, and contact is smaller, therefore incudes more
It is sensitive.Also, armed lever be not connected with ontology one end be it is arc-shaped, be convex to press part, by press part press when have certain bullet
Property, it is not easy to it damages.In addition, the part that press part is contacted with armed lever is plane, increase contact area, it is easier to armed lever pair
Standard, pressing dynamics are more uniform.
4, when the chassis cover of server is closed, slight touch switch is connected by pressing, the input/output of backplane controller
End (end I/O) detects low level " 0 ";When the chassis cover of server is opened, armed lever is restored to original position, and slight touch is opened
Shutdown is opened, and the end I/O of backplane controller detects high level " 1 ".The level that the end I/O of backplane controller can will test reports
To BMC, BMC can also monitor the level on the end I/O of backplane controller automatically, to guarantee that BMC can recognize slightly in real time
The on/off state of touch switch.
5, when the level that the end I/O of backplane controller detects changes, variation is reported to BMC in time, is guaranteed
BMC generates the timeliness of server ON/OFF case alarm, improves efficiency, and increases the reliability of server ON/OFF case alarm.
Detailed description of the invention
Fig. 1 is the pass lid hardware schematic of server at this stage in background technique;
Fig. 2 is the schematic diagram after the installation of first embodiment of the invention server ON/OFF case alarm device;
Fig. 3 is the structural schematic diagram that microswitch is touched in present invention switch alarm device;
Fig. 4 is server ON/OFF case warning system schematic diagram of the present invention.
Background technique appended drawing reference:
Touch microswitch a1, armed lever a11, chassis base a2, cable a3, server master board a4, chassis cover a5.
Specific embodiment appended drawing reference:
Touch microswitch 1, armed lever 11, ontology 12, contact 13, press part 2, backboard 3, chassis cover 4.
Specific embodiment
Invention is further described in detail with reference to the accompanying drawings and embodiments.
First embodiment
As shown in Fig. 2, server ON/OFF case alarm device in the present embodiment, including microswitch 1 and press part 2 are touched,
Touching microswitch 1 further includes armed lever 11.It touches microswitch 1 to be installed on the backboard 3 being vertically arranged in server, and slight
It is horizontal direction that the armed lever 11 of touch switch 1, which presses direction, and press part 2 is installed on 4 lower section of chassis cover of server.
When chassis cover 4 is detained, there are one section of spacing between press part 2 and the armed lever 11 of slight touch switch 1, the two is mutual
It does not contact.
When chassis cover 4 is closed in place, press part 2 is contacted with armed lever 11, and presses semaphore 11, slight touch switch 1
It is pressed and is connected.
It is needed since server product is mostly inevitable using backboard 3, backboard 3 is generally used for realizing that server is deposited
Storage, is usually vertically arranged in the cabinet of server.Backboard 3 in view of server is vertical direction installation, with server machine
The direction that promotes is vertical when box cover 4 is closed, therefore when server machine box cover 4 is advanced into closing, drives press part 2 is horizontal to move
Dynamic and contact armed lever 11, until armed lever 11 is pressed, slight touch switch 1 is connected.Force side of the press part 2 to armed lever 11 in this way
It is identical to the Impact direction pressed with armed lever 11, it avoids touching the stress damage in the horizontal direction of microswitch 1, server ON/OFF
Therefore case alarm will not fail.
Second embodiment
The present embodiment is based on first embodiment, specifically, slight touch switch 1 is installed on backboard 3 by welding,
And it is electrically connected with the backplane controller of backboard 3.It is not only stronger by the way of welding, conducting wire connection can also be removed from,
The material cost of the part cable and plug connector is saved, while also eliminating the production and processing for installing the part cable and plug connector
Cost.
3rd embodiment
On the basis of first embodiment, in the present embodiment, as shown in figure 3, slight touch switch 1 further includes 12 He of ontology
Contact 13.The ontology 12 of slight touch switch 1 is welded on backboard 3, and is electrically connected with the backplane controller of backboard 3.Slightly
11 one end of armed lever of touch switch 1 is connected to ontology 12, and the other end forms free end, and contact 13 is mounted on ontology 12, and position
Between armed lever 11 and ontology 12.
Under normal circumstances, armed lever 11 and contact 13 do not contact, and slight touch switch 1 is in an off state.When 11 quilt of armed lever
It is mobile towards ontology 12 when press part 2 is pressed, and contacted with contact 13, and compress contact 13, and then slight touch switch 1 is led
It is logical.When press part 2 leaves armed lever 11, the external force that armed lever 11 is subject to disappears, and armed lever 11 can be restored to original position, leave contact
13, slight touch switch 1 disconnects.
Preferably, the free end of armed lever 11 can be to be arc-shaped, and outer arc is convex to press part 2, and armed lever 11 is outer when stress
Arc contacts at first with press part 2, has certain elasticity, it is not easy to damage.
Press part 2 can be any shape, generally use columnar ironware.Preferably, press part 2 is contacted with armed lever 11
Part uses plane, in this way increase contact area, it is easier to be aligned with armed lever, the pressing dynamics that armed lever 11 is experienced are more uniform.
Fourth embodiment
On the basis of any one above-mentioned server ON/OFF case alarm device, as shown in figure 4, the present embodiment protection clothes
Be engaged in device ON/OFF case warning system, including backplane controller, unpacking alarm device and BMC.The fine motion of touching of unpacking alarm device is opened
The end I/O of one end connection backplane controller is closed, and the corresponding I/O voltage of the used I/O of backplane controller is pulled upward to by resistance,
Touch other end connection electric wire ground terminal (GND) of microswitch.
Backplane controller is connected with the BMC by data channel and transmits information, also, the end I/O of backplane controller
The on/off state of slight touch switch is detected, specifically, the end I/O of backplane controller judges by detecting the height of level
The on/off of slight touch switch.On/off state is reported to BMC by the end I/O of backplane controller.When slight touch switch it is logical/
When disconnected state changes, the alarm platform that BMC includes by it shows the alarm of ON/OFF case.
5th embodiment
On the basis of fourth embodiment, in the present embodiment, backplane controller is CPLD (Complex Programmable
Logic Device, Complex Programmable Logic Devices) or single-chip microcontroller, in other embodiments, backplane controller is also possible to it
His programmable device.Data channel between backplane controller and BMC can use SMBus (System Management
Bus, System Management Bus).
Sixth embodiment
The present embodiment is a kind of server ON/OFF case alarm method based on system in fourth embodiment, is specifically included:
When the chassis cover of server is closed, the armed lever of microswitch is touched in the press part pressing for touching microswitch, gently
Micro- touch switch is pressed, and then is connected.At this point, the end I/O of backplane controller detects low level " 0 ", and by low level " 0 "
It is reported to BMC
When the chassis cover of server is opened, the press part for touching microswitch leaves the armed lever for touching microswitch, arm
Bar is restored to original position, and slight touch switch disconnects.At this point, the end I/O of backplane controller detects high level " 1 ", and will
High level " 1 " is reported to BMC.
The level state that BMC is reported according to backplane controller is monitored the on/off state of slight touch switch,
In the case that level state remains unchanged, BMC is not processed;When level changes, BMC generates server ON/OFF case and accuses
It is alert, and showed by alerting platform.
7th embodiment
The present embodiment on the basis of sixth embodiment, may be used also by the level state that BMC is reported in addition to receiving backplane controller
To pass through the end I/O of SMBus bus access backplane controller, the on/off of level state or slight touch switch can be passed through
State, in order to be monitored.In the case that the level state of monitoring remains unchanged, BMC is not processed;When the level of monitoring
When state changes, BMC can produce the alarm of server ON/OFF case.
But this monitoring is the level state for obtaining the end I/O of a backplane controller at regular intervals, such as often
It was obtained every 1 second primary.In order to guarantee that BMC generates the timeliness of server ON/OFF case alarm, when the end I/O of backplane controller is examined
When measuring the variation that high level " 1 " and low level " 0 " occurs, show that server is undergoing the thing unpacked or closed after unpacking
Part, at this point, the Alert signal that backplane controller can drag down SMBus bus carrys out active reporting can generate in time to BMC, BMC
The alarm of ON/OFF case, and showed by alerting platform.
It should be understood by those skilled in the art that, embodiments herein can provide as method, system or computer program
Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the application
Apply the form of example.Moreover, it wherein includes the computer of computer usable program code that the application, which can be used in one or more,
The computer program implemented in usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) produces
The form of product.
The above is only the embodiment of the present invention, are not intended to restrict the invention, all in the spirit and principles in the present invention
Within, any modification, equivalent substitution, improvement and etc. done, be all contained in apply pending scope of the presently claimed invention it
It is interior.That is, the present invention is not limited to the above-described embodiments, for those skilled in the art, not
Under the premise of being detached from the principle of the invention, several improvements and modifications can also be made, these improvements and modifications are also considered as of the invention
Within protection scope.The content being not described in detail in this specification belongs to existing skill well known to professional and technical personnel in the field
Art.