Summary of the invention
In view of this, the present invention provides a kind of exchange method and device to solve the problem that in kvm system, user cannot link up.
Specifically, the present invention is achieved through the following technical solutions:
The present invention provides a kind of exchange method, and described method is applied to baseboard management controller BMC, and described method includes:
Subscriber's main station for current operation keyboard, video, mouse KVM creates user list;
When the message that any user main frame received in described user list sends, described message is issued to the subscriber's main station in described user list.
Further, described method also includes:
When the message receiving subscriber's main station transmission is operational order, create judge's list for described operational order, including the subscriber's main station judging this operational order;
Create judge's message for described operational order, described judge's message is sent the subscriber's main station to described judge's list;
Judge's instruction according to the subscriber's main station feedback receiving judge's message, processes described operational order.
Further, described basis receives judge's instruction of the subscriber's main station feedback of judge's message, and described operational order is processed, including:
Receive judge's instruction that the subscriber's main station in judge's list feeds back, according to judge's Instruction Statistics judge's result;
Search the operation limit grade that described operational order is corresponding and default judge's strategy that described operation limit grade is corresponding;
Judge, according to described judge's strategy, the result that described judge's result is corresponding, according to described result, described operational order is processed.
Further, described judge's instruction according to subscriber's main station feedback, described operational order is processed, also includes:
If judge's instruction of the subscriber's main station feedback not received in Preset Time in described judge's list, then process described operational order according to the default strategy that processes.
Further, described method also includes:
The message that described user list and the subscriber's main station that receives send is sent to the subscriber's main station in described user list, controls user list and message described in the KVM interface display of subscriber's main station.
Based on identical design, the present invention also provides for a kind of interactive device, and described device is applied to baseboard management controller BMC, and described device includes:
Unit is set up in list, creates user list for the subscriber's main station for current operation keyboard, video, mouse KVM;
Message issues unit, during for the message of any user main frame transmission in receiving described user list, described message is issued to the subscriber's main station in described user list.
Further, described device also includes:
Instruction reception unit, for receive subscriber's main station send message be operational order time, for described operational order create judge list, including judge this operational order subscriber's main station;
Message creating unit, for creating judge's message for described operational order, sends the subscriber's main station to described judge's list by described judge's message;
Operation processing unit, for the judge's instruction according to the subscriber's main station feedback receiving judge's message, processes described operational order.
Further, described operation processing unit, specifically for receiving judge's instruction of the subscriber's main station feedback in judge's list, according to judge's Instruction Statistics judge's result;Search the operation limit grade that described operational order is corresponding and default judge's strategy that described operation limit grade is corresponding;Judge, according to described judge's strategy, the result that described judge's result is corresponding, according to described result, described operational order is processed.
Further, described operation processing unit, during judge's instruction of the subscriber's main station being additionally operable to not receive in described judge's list in Preset Time feedback, process described operational order according to the default strategy that processes.
Further, described device also includes:
Display control unit, for the message that described user list and the subscriber's main station that receives send is sent to the subscriber's main station in described user list, controls user list and message described in the KVM interface display of subscriber's main station.
As can be seen here, the present invention can pass through to create user list for the subscriber's main station of current operation KVM;When the message that any user main frame received in user list sends, described message is issued to the subscriber's main station in described user list.Therefore the present invention can make user obtain the message that other users send, it is possible to operation is carried out ruling, such that it is able to the negative effect effectively solving that each user-to-user information is obstructed and producing during each user operation, raising Consumer's Experience.
Detailed description of the invention
Therefore existing kvm system for providing the channel of communication for information between each user of being operated, cannot cause what operation server has been carried out by the user A of the operation KVM user B that cannot understand operation KVM, therefore cannot the operation between user be differentiated.When the operation of user B has with the operation of user A and to conflict, user A is operated may result in the operation failure of user A in unwitting situation, thus affecting Consumer's Experience.
In order to solve prior art Problems existing, the present invention provides a kind of exchange method and device, it is possible to create user list by the subscriber's main station for current operation KVM;When the message that any user main frame received in user list sends, described message is issued to the subscriber's main station in described user list.Therefore the present invention can make user obtain the message that other users send, it is possible to operation is carried out ruling, such that it is able to the negative effect effectively solving that each user-to-user information is obstructed and producing during each user operation, raising Consumer's Experience.
Refer to Fig. 1, be the process chart of a kind of exchange method in a kind of illustrative embodiments of the present invention, wherein the method is applied to BMC, and described method includes:
Step 101, for current operation KVM subscriber's main station create user list;
In the present embodiment, when two and above user use same station server by kvm system, the BMC in this server can record the subscriber's main station of current operation KVM, and is that the subscriber's main station of current operation KVM creates user list.
In the optional embodiment of the present invention, owing to each subscriber's main station can set up session with this server respectively, therefore BMC can be identified by recording conversation and distinguish different user main frame, other differentiating methods can also be used in actual applications to carry out the differentiation of subscriber's main station, do not limit herein.
Step 102, when the message that any user main frame that receives in described user list sends, described message is issued to the subscriber's main station in described user list.
Owing to allowing user to send message in KVM interface, therefore when the message that the BMC any user main frame received in described user list sends at KVM interface, BMC can obtain and store this message, and stores the subscriber's main station sending this message.Then described message can be issued to the subscriber's main station in described user list by BMC, so that wherein certain user can receive the message that other users send, it is achieved user is mutual.In optional embodiment of the present invention, described message can be issued to all subscriber's main stations in described user list by BMC, so that each user can receive the message that other users send, it is achieved user is mutual.
In optional embodiment of the present invention, IPMI (IntelligentPlatformManagementInterface can be passed through in the KVM interface of subscriber's main station, intelligent platform management interface) order receive the BMC message issued, can also realize by other means, not limit herein.
In optional embodiment of the present invention, when the message that BMC receives subscriber's main station transmission is operational order, it is possible to creating judge's list for described operational order, this judge's list includes the subscriber's main station judging this operational order.Afterwards, BMC can be that described operational order creates judge's message, described judge's message is sent the subscriber's main station to described judge's list, judge's message can include the options such as agreement, refusal, neutrality, and user can feed back respective judge instruction by kvm system to BMC according to the judge's message received;Described operational order is processed by judge's instruction that then BMC feeds back according to subscriber's main station.As, agree to that the subscriber's main station of this operational order have received judge's instruction, judge's instruction of feedback can be agree to;The subscriber's main station disagreeing this operational order have received judge's instruction, and judge's instruction of feedback can be refusal;If this operational order being sat on the fence, or it doesn't matter, or without significantly agreeing to or refusal tendency, judge's instruction of feedback can be do not judge or the information such as neutrality;As, for the promoter of operational order, if being not easy to feed back the tendency of oneself, it is possible to feedback does not judge or neutral.After the subscriber's main station receiving decision instruction has fed back respective judge's instruction, the result of BMC statistics judge's instruction, and according to statistical result, described operational order is processed.
For example, BMC can process according to preset strategy, for instance when most users main frame is agreed to, performs this operational order;Or all subscriber's main station performs this operational order when agreeing to;Or some subscriber's main station performs this operational order when agreeing to, etc..User can set strategy according to the actual requirements, does not limit herein.
Or, judge's message can also be sent to the promoter of operational order by BMC, and allows this promoter to carry out terminating operation, and therefore promoter before this operational order is not judged, can terminate this operational order.
Preferably, the judge's list created for described operational order includes the subscriber's main station allowing to judge this operational order.The subscriber's main station allowing to judge this operational order herein can be in other subscriber's main stations except the subscriber's main station sending operational order in user list.This embodiment of the present invention ensure that this operational order is not judged by the promoter of operational order, thereby may be ensured that the fairness of judge and reasonability.Or, further, associative operation instruction is sat on the fence, or it doesn't matter, or without the subscriber's main station significantly agreed to or refusal is inclined to, be not included in the described subscriber's main station allowing to judge this operational order.Which simplifies the process of statistics judge's instruction results.
Compared to original KVM, the present invention can be operated by instruction judge's mechanism, it is achieved user operation mutual, is prevented effectively from the operation adverse effect on server of different user and the impact on other users;And the present invention carries out information communication without third party's media of communication, it is achieved the non-intrusive interaction of KVM user.
In optional embodiment of the present invention, BMC is upper can arrange different operation limit grades for different operational orders in advance, and the operation generally operating the more high correspondence of limit grade is more important.For example, owing to the operation of other users is affected relatively big by reboot operation, then the operation limit grade of this reboot operation could be arranged to senior;The operation of user is affected relatively small by change limiting operation, then the operation limit grade of this change limiting operation could be arranged to middle rank;And change the data manipulation operation on user and affect relatively smaller, then the operation limit grade of this change data manipulation could be arranged to rudimentary;Concrete method to set up user can determine according to actually used situation, does not limit herein.It addition, the operation limit grade that the present invention can also be different arranges different judge's strategies, for instance, the operational order impact being senior due to operation limit grade is bigger, it is therefore desirable to the agreement of all subscriber's main stations in judge's list could perform this operational order;And for operating the operational order that limit grade is middle rank, it is possible to operational order is performed when most users is agreed to;And be rudimentary operational order for operation limit grade, it is possible to the execution operational order when a few users is agreed to.
After BMC receives judge's instruction of the subscriber's main station feedback in judge's list, it is possible to according to judge's Instruction Statistics judge's result, namely calculate the sum of the judge's instruction received;Further according to the operation limit grade pre-set, search operation limit grade corresponding to described operational order and default judge's strategy corresponding to described operation limit grade;Judge, according to described judge's strategy, the result that described judge's result is corresponding, according to described result, described operational order is processed.
For example, when user to carry out reboot operation, reboot operation instruction is sent to BMC, BMC and does not first perform this operational order by user A, but sets up judge's list for this operational order, and judge's list includes all subscriber's main stations in user list except user A;And issuing judge's message to the subscriber's main station in judge's list, other users can reply permission or refusal after receiving judge's message.After user feedback allows instruction, this judge's list of this subscriber's main station can will be deleted, or this subscriber's main station is increased and specifies labelling, such as labelling " 0 " is refusal instruction, labelling " 1 " is for allowing instruction, further according to specifying labelling to carry out judge's result statistics, calculate the quantity allowing instruction and/or the quantity of refusal instruction.Owing to this instruction of restarting is operate the operational order that limit grade is senior, then only judge whole users in list all to allow, when namely all the session identification of subscriber's main stations is all deleted, just can perform reboot operation, if there being user to refuse to perform, then this reboot operation is then prohibited;If user does not respond in time, have countdown 30 seconds (being not specifically limited) and give tacit consent to permission afterwards or forbid performing this reboot operation.Above-mentioned embodiment is merely illustrative, and does not limit in practical application.
By operational order being operated the division of limit grade, it is possible to strengthen the reasonability to operational order judge, and improve the execution efficiency of judge's efficiency and operational order.
Additionally, in optional embodiment of the present invention, BMC can after sending judge's message, open timer, when timer arrives judge's instruction of the Preset Time BMC subscriber's main station not receiving in described judge's list yet feedback, BMC then can process described operational order according to the default strategy that processes, for instance allows perform this operational order or forbid performing this operational order.Therefore it is long that the operational order that can avoid the user caused because waiting judge's instruction performs time delay, thus improving operation treatment effeciency, promotes Consumer's Experience.
In optional embodiment of the present invention, the message of subscriber's main station can be informed to other subscriber's main stations by multiple channel by BMC, for instance by modes such as voice message, screen show, is also required to the kvm system on subscriber's main station simultaneously and supports above-mentioned prompting mode.Preferably, the message that described user list and the subscriber's main station received send can be sent to the subscriber's main station in described user list by BMC, controls user list and message described in the KVM interface display of subscriber's main station.Thus this system can intuitively show the user list of currently used KVM on the basis of KVM function, and user can be made there being interactional operation to carry out ruling, it is also possible to carry out information communication simultaneously.
Referring to Fig. 2, this interface is kvm system interface 20, and the lower right corner at interface is information interactive window 21 provided by the invention.This window includes user list UserList211, interaction area 212 and information input area 213, and user list 211 includes the name list of current operation user, for instance User1, User2, User3, User4, User5;Interaction area 212 is for showing message and judge's message of the BMC subscriber's main station issued, and each message can show the title of sender;Such as, the message that User5 sends is shown as " User5:hello, everyone ", and each user is it can be seen that this message;And the judge's message shown for the User1 operational order sent is " User1:wanttoreboot ", user User1 can't see this judge's message, and other users can pass through " OK " and " STOP " button judged below message and feed back judge's instruction.Information input area 213 can carry out message input, it is possible to clicks " transmission " button and carries out message transmission.When information interactive window 20 need not be shown, it is possible to by shortcut or click the button that minimizes in this window upper right corner and reduce, it is also possible to when needs use, this information interactive window is reduced.This figure is only a kind of exemplary interfaces in embodiment of the present invention, does not limit in practical application.
Based on identical design, the present invention also provides for a kind of interactive device, and this device can be realized by software, it is also possible to is realized by the mode of hardware or software and hardware combining.Implemented in software for example, the interactive device of the present invention, as the device on a logical meaning, is run after computer program instructions corresponding in memorizer is read by the CPU by its place device to form.
Refer to Fig. 3 and Fig. 4, be a kind of interactive device 400 in a kind of illustrative embodiments of the present invention, described device is applied to BMC, and the basic running environment of this device includes CPU, memorizer and other hardware, and from logic level, this device 500 includes:
Unit 401 is set up in list, creates user list for the subscriber's main station for current operation KVM;
Message issues unit 402, during for the message of any user main frame transmission in receiving described user list, described message is issued to the subscriber's main station in described user list.
Optionally, described device 400 also includes:
Instruction reception unit 403, for receive subscriber's main station send message be operational order time, for described operational order create judge list, including judge this operational order subscriber's main station;
Message creating unit 404, for creating judge's message for described operational order, sends the subscriber's main station to described judge's list by described judge's message;
Operation processing unit 405, for the judge's instruction according to the subscriber's main station feedback receiving judge's message, processes described operational order.
Optionally, described operation processing unit 405, specifically for receiving judge's instruction of the subscriber's main station feedback in judge's list, according to judge's Instruction Statistics judge's result;Search the operation limit grade that described operational order is corresponding and default judge's strategy that described operation limit grade is corresponding;Judge, according to described judge's strategy, the result that described judge's result is corresponding, according to described result, described operational order is processed.
Optionally, described operation processing unit 405, during judge's instruction of the subscriber's main station being additionally operable to not receive in described judge's list in Preset Time feedback, process described operational order according to the default strategy that processes.
Optionally, described device 400 also includes:
Display control unit 406, for the message that described user list and the subscriber's main station that receives send is sent to the subscriber's main station in described user list, controls user list and message described in the KVM interface display of subscriber's main station.
As can be seen here, the present invention can pass through to create user list for the subscriber's main station of current operation KVM;When the message that any user main frame received in user list sends, described message is issued to the subscriber's main station in described user list.Therefore the present invention can make user obtain the message that other users send, it is possible to operation is carried out ruling, such that it is able to the negative effect effectively solving that each user-to-user information is obstructed and producing during each user operation, raising Consumer's Experience.
What in said apparatus, the function of unit and the process that realizes of effect specifically referred in said method corresponding step realizes process, does not repeat them here.
For device embodiment, owing to it corresponds essentially to embodiment of the method, so relevant part illustrates referring to the part of embodiment of the method.Device embodiment described above is merely schematic, the wherein said unit illustrated as separating component can be or may not be physically separate, the parts shown as unit can be or may not be physical location, namely may be located at a place, or can also be distributed on multiple NE.Some or all of module therein can be selected according to the actual needs to realize the purpose of the application scheme.Those of ordinary skill in the art, when not paying creative work, are namely appreciated that and implement.
The foregoing is only presently preferred embodiments of the present invention, not in order to limit the present invention, all within the spirit and principles in the present invention, any amendment of making, equivalent replacement, improvement etc., should be included within the scope of protection of the invention.