CN102571953B - Remote management method and device thereof - Google Patents

Remote management method and device thereof Download PDF

Info

Publication number
CN102571953B
CN102571953B CN201110461823.0A CN201110461823A CN102571953B CN 102571953 B CN102571953 B CN 102571953B CN 201110461823 A CN201110461823 A CN 201110461823A CN 102571953 B CN102571953 B CN 102571953B
Authority
CN
China
Prior art keywords
controlled server
cmd
long
management device
message
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201110461823.0A
Other languages
Chinese (zh)
Other versions
CN102571953A (en
Inventor
卓越
刘一力
魏贵阳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Aten International Co Ltd
Original Assignee
Aten International Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Aten International Co Ltd filed Critical Aten International Co Ltd
Publication of CN102571953A publication Critical patent/CN102571953A/en
Application granted granted Critical
Publication of CN102571953B publication Critical patent/CN102571953B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention provides a remote management method and a remote management device using the same. The remote management method comprises the following steps: receiving a remote operation instruction from a user computer, and generating an operation command corresponding to a character operation interface program of a controlled server according to the remote operation instruction; using remote login protocol to send operation command to the controlled server to operate the controlled server and make its text operation interface program generate remote operation response correspondingly; and receiving the remote operation response from the controlled server by using a remote login protocol, executing a result acquisition program to acquire an operation result message from the remote operation response, and displaying the execution result of the remote operation instruction by using the user end computer through the graphical operation interface program. The invention makes the user computer interact with the character operation interface program of the controlled server by the connection of the remote login protocol through the steps to operate the controlled server, and retrieves the operation result from the operation response of the controlled server and displays the operation result by the graphic operation interface.

Description

Method for remote management and device thereof
Technical field
The present invention is about a kind of method for remote management and use the long-distance management device of this method for remote management; Particularly, method for remote management of the present invention makes user computer can utilize the long-range connection of agreement and the text operation interface routine of controlled server logined to carry out interaction with operation controlled server, and from the operation of controlled server is responded, captures its operating result and shown by a graphic operation interface.
Background technology
Network-type multi-computer switch (IP-based Keyboard-Video-Mouse Switch, IKVM Switch) be a kind of multi-computer switch with network interface, user computer is connected to and controlled computer with network by its network interface, and the user of user computer can be controlled one or many controlled computer by long-range by keyboard, screen and mouse.Except general PC, controlled computer can be also the device that such as server computer etc. can provide servo function.
No matter be the server computer of mail server, database server, archives service device or other types, be that with the difference of PC maximum they all must provide service to multiple user computers or other devices, therefore often need processing example to wait the operation that need to consume a large amount of calculation resources as batch (batch) operates.This generic operation must be completed with corresponding steps flow chart depending on the difference of COS conventionally, and often also must input different parameters for the different step in flow process.Now, compared to the text operation interface that can apply mechanically the modes such as procedure script and carry out batch operation, graphical user interface (Graphical User Interface, GUI), although be widely used in PC because of the simplification of its graphical operation, it is just relatively more inconvenient in the time that processing batch operation etc. need to consume the operation of a large amount of calculation resources.
Therefore,, even there is the server computer that graphical user interface is provided, also many meetings are additionally to provide the mode of text operation interface to make up the deficiency of graphical user interface in the time processing a large amount of operation.Command line interface (the Command Line Interface that aforementioned text operation interface can be general indication, CLI) program, the for example COMMAND.COM in Bourne shell or the dos operating system in Unix operating system, it is to be executed in server and as the communication interface between user and the operating system of bottom, user can use server computer is operated.For the user of network-type multi-computer switch, because being utilizes the user computer of near-end to operate long-range controlled server, therefore generally can adopt the network communication such as telnet or Secure Shell (SSH) to reach an agreement on to set up being connected between the text operation interface routine of controlled server, use controlled server is operated.
But different servers has its different text operation interface separately, and dissimilar text operation interface often possesses multi-form instruction, and therefore user must be familiar with respectively just operating.
Figure 1A is the schematic diagram being connected that legacy user holds computer and server end computer.In general, as shown in Figure 1A, user computer 100 is connected with a server end computer 200 by a network W1.Figure 1B is the user computer shown in Figure 1A and the schematic diagram of the method for remote management being connected of server end computer.As shown in Figure 1A and Figure 1B, in the time operating by program, for example, between user computer and server end computer, set up the channel C of SSH agreement 1(channel) under the situation with the command operating of the formula of replying, as long as X standby time (idle time) of user computer is no more than SSH, the time-out time T (timeout) allowing that reach an agreement on just can not publish and can continue with instruction I, this server to be operated by serviced device once logining after L (login), server end computer 200 and can be with a response R response user computer 100.In Figure 1B, standby time, the length of X was that server end computer is received certain operational order I of user computer and the time interval of receiving subsequently another operational order I.As shown in Figure 1B, when SSH channel C 1with SSH channel C 2between last operation instruction I after server end computer is collected, server end computer is not received other any operational order I from user computer in the time range of time-out time T, therefore user computer can be published by serviced device end computer.In the case, standby time, X exceeded time-out time T as shown in Figure 1B, made user computer must again login controlled server and could continue controlled server to transmit new operational order I.But most of server end computer is not supported aforementioned multichannel (multi channel) mechanism that can carry out continuously multiple command operatings after once logining, therefore often must set up other SSH passage for each instruction.Now command operating of every execution will set up passage connect and the step such as login in expend the much time, seem and do not carry out very much benefit.In addition, adopt the mode of procedure operation also must write corresponding procedure code for individual other text operation interface.
In addition, in the time using shell (shell) program of the pure words interface in server end computer to carry out command operating, carry out the mode of command operating compared to the aforementioned passage with SSH agreement, all shell programs all can once connect and login after carry out continuously multiple command operatings, until time-out time arrives.But, can automatically perform by program compared to aforementioned manner, the shell program of pure words interface generally needs user in person before user computer, to carry out interaction with the shell program of server end computer, and operate in responding and determine the execution result of command operating by being shown in pure words in user computer, and cannot automatically carry out by program the differentiation of instruction input and instruction execution result.
Summary of the invention
The long-distance management device that an object of the present invention is to provide a kind of method for remote management and uses this method for remote management.Compared to prior art, user computer carries out interaction with operation controlled server by the long-range connection of agreement and the text operation interface routine of controlled server logined, and operate and in response, captured its operating result and shown by graphic operation interface by the pure words of controlled server.After a long-range connection of logining agreement is established, even if exceeded the time that controlled server allows standby time, user computer still can be used and continue controlled server to operate, and needn't set up new connection for indivedual operations, therefore has preferably operation and carries out benefit.
The long-distance management device that another object of the present invention is to provide a kind of method for remote management and use this method for remote management.Compared to prior art, the invention enables user computer can utilize the text operation interface of graphic operation interface and controlled server to carry out interaction with operation controlled server, and on user computer, show its operating result by graphic operation interface in patterned mode.
The long-distance management device that another object of the present invention is to provide a kind of method for remote management and uses this method for remote management, compared to prior art, the present invention can provide corresponding operational order template for different types of text operation interface routine, uses and produces corresponding operational order.
The invention provides a kind of method for remote management, this method for remote management comprises the following step: receive remote operation instruction from user side computer, and produce according to this operational order corresponding to the text operation interface routine of a controlled server; Use long-range login agreement operational order is sent to this controlled server, make its text operation interface routine can use operation this controlled server and produce accordingly remote operation respond; Use long-range logining to reach an agreement on from controlled server receiving remote operation response, and execution result capturing program use from remote operation respond in capture operating result message, make user computer can obtain according to this execution result of remote operation instruction, and shown by graphic operation interface routine.
The invention provides a kind of long-distance management device, this long-distance management device comprises memory cell, order generation unit and result acquisition unit.Memory cell stores remote operational order and remote operation are responded, and wherein remote operation instruction is received from user computer, and remote operation is responded and is received from controlled server.Order generation unit produces the operational order corresponding to the text operation interface routine of controlled server according to remote operation instruction, and use long-range login agreement operational order is sent to controlled server, use operation controlled server and make its text operation interface routine produce accordingly remote operation respond.Result acquisition unit uses long-range logining to reach an agreement on from controlled server receiving remote operation response, identifying after the CMD (command prompt) that meets the communications protocol between user computer and controlled server, execution result capturing program use from remote operation respond in screening in operating result message, make long-distance management device can obtain according to this execution result of remote operation instruction (not comprising CMD), and user computer can be shown by graphic operation interface routine.
Method for remote management of the present invention and the long-distance management device that uses this method for remote management can utilize user computer by above-mentioned steps and framework and long-rangely login the connection of agreement and the text operation interface routine of controlled server carries out interaction and controlled server is operated, identify CMD, and and then responded by the operation of controlled server in capture its operating result and shown by graphic operation interface.
Brief description of the drawings
Figure 1A is the schematic diagram of traditional method for remote management;
Figure 1B is the schematic diagram being connected of user computer and server end computer in method for remote management shown in Figure 1A;
Fig. 2 A is long-distance management device of the present invention and the schematic diagram being connected of controlled server and user computer;
Fig. 2 B is the schematic diagram of long-distance management device;
Fig. 2 C is the schematic diagram of an embodiment of the interaction mode between long-distance management device of the present invention and user computer and controlled server;
Fig. 2 D is the schematic diagram of the embodiment that is connected with controlled server of the maintenance of method for remote management of the present invention;
Fig. 2 E is the schematic diagram of an embodiment of the text operation interface routine input operation order to controlled server
Fig. 2 F is the schematic diagram of an embodiment of the shown form of the Windows application of user computer;
Fig. 2 G is the schematic diagram of an embodiment of method for remote management of the present invention;
Fig. 3 A is the schematic diagram of an embodiment of the program () to (three) of method for remote management of the present invention;
Fig. 3 B is the schematic diagram of an embodiment of the program (four) of method for remote management of the present invention;
Fig. 4 A is the schematic diagram of an embodiment of the program () in method for remote management of the present invention;
Fig. 4 B is the schematic diagram of an embodiment of the program (two) in method for remote management of the present invention;
Fig. 4 C is the schematic diagram of an embodiment of the program (three) in method for remote management of the present invention; And
Fig. 4 D is the schematic diagram of an embodiment of the program (four) in method for remote management of the present invention.
[main element symbol description]
10 memory cell
20 order generation units
30 result acquisition units
100 user computers
101 long-distance management devices
110 graphic operation interface routines
200 controlled computers
210 text operation interface routines
500 operational order result messages
501 first CMDs
502 second CMDs
Embodiment
The invention provides a kind of method for remote management and use the long-distance management device of this method for remote management.In a preferred embodiment, method for remote management of the present invention is used in network-type multi-computer switch, and long-distance management device of the present invention is network-type multi-computer switch.But in other embodiments, method for remote management of the present invention can be used in the long-distance management device of other types, long-distance management device of the present invention can be the multi-computer switch of other types or the remote computer management devices of other types.
Fig. 2 A is that user computer is by the schematic diagram of the controlled server connected mode of long-distance management device of the present invention and server end.As shown in Figure 2 A, by network W 1the user computer 100 that is connected to long-distance management device 101 one end can be used and pass through network W 2one or more controlled server 200 that is connected in long-distance management device 101 other ends produces interaction, and then controlled server 200 is operated.This user computer 100 also can manage and set long-distance management device 101.The KN4140 that the hardware structure of this long-distance management device 101 can be provided by Taiwan Hongzheng Automation Science-Technology Co., Ltd etc. has the long-range multi-computer switch of network interface to be realized.
Fig. 2 B is the schematic diagram of an embodiment of long-distance management device of the present invention; Fig. 2 C is the schematic diagram of an embodiment of long-distance management device shown in Fig. 2 B and user computer and controlled server interaction.As shown in Fig. 2 B and Fig. 2 C, this long-distance management device 101 comprises memory cell 10, order generation unit 20 and result acquisition unit 30.In a preferred embodiment, this long-distance management device is a network-type multi-computer switch; But in other embodiments, can be the multi-computer switch of other types.This long-distance management device 101 can make user computer 100 be coupled to one or many controlled server 200, make user computer 100 can mat itself and controlled server 200 produce interactively, and then by long-range, one or many controlled server 200 is operated.In a preferred embodiment, one end of this long-distance management device 101 is by network W 1be connected with user computer 100.Network W 1be preferably world-wide web, but network W 1also can be the Local Area Networks such as Ethernet (Ethernet).The other end of long-distance management device 101, by one or more network W2, is connected with one or more controlled servers 200 individually.Network W 2be preferably the Local Area Networks such as Ethernet, but network W 2also can be world-wide web or other any lines that can contact directly with controlled server 200.In the present embodiment, user computer 100 is for having the PC of the inputs such as keyboard, screen and mouse, output device, and 200 of controlled servers are server computer; But in other embodiments, user computer 100 can be the electronic installation of other types with controlled server 200.
As shown in Fig. 2 B and Fig. 2 C, the memory cell 10 of long-distance management device 101 can stores remote operational order I 1and RS is responded in remote operation 1, wherein remote operation instruction I 1be received from user computer 100, RS is responded in remote operation 1be received from controlled server 200.Order generation unit 20 and result acquisition unit 30 are connected with memory cell 10 respectively, to obtain remote operation instruction I from memory cell 10 1and RS is responded in remote operation 1.Order generation unit 20 is according to remote operation instruction I 1produce the operational order IS corresponding to the text operation interface routine 210 of controlled server 200 1, and login agreement by operational order IS according to long-range 1be sent to controlled server 200, use operation controlled server 200 and make its text operation interface routine 210 produce accordingly remote operation and respond RS 1.Text operation interface routine 210 is preferably command line interface program, is executed in controlled server 200 and as the communication interface between user and the operating system of bottom.Owing to often having different operational orders in the identical different literals operation-interface program 210 that operates in different controlled servers 200, therefore long-distance management device 101 must produce corresponding operational order for different text operation interface routines 210.
The text operation interface routine 210 of the controlled server 200 as shown in Fig. 2 B and Fig. 2 C, in a preferred embodiment, text operation interface routine 210 is a command line interface program (for example Bourne shell in aforesaid Unix operating system), user can be used server computer is operated.In the identical different literals operation-interface program 210 that operates in different controlled servers 200, often have different operational orders.With the example that is operating as of requester network interface configuration, what the Bourne shell of aforementioned Unix operating system was corresponding is " ifconfig " instruction, what the COMMAND.COM of aforementioned dos operating system was corresponding is " ipconfig " instruction, and therefore long-distance management device must produce corresponding operational order for different text operation interface routines 210.Operational order comprises the part such as command name and parameter (as the embodiment of Fig. 2 E, " show " is command name, and " server names " is parameter) conventionally.In a preferred embodiment, can provide corresponding operational order template for different types of text operation interface routine, operational order template provides corresponding between remote operation instruction and operational order, can use remote operation instruction is converted to corresponding operational order.
Fig. 2 D is depicted as the schematic diagram of user computer of the present invention and the method for remote management of controlled server under the annexation of Fig. 2 B.Compared to the traditional method for remote management shown in Figure 1B, in the embodiment shown in Fig. 2 D, further comprise the long-distance management device of this case, be arranged between user computer and controlled server.As shown in Fig. 2 C and Fig. 2 D, in a preferred embodiment, (the SSH channel C as shown in Fig. 2 D after long-distance management device 101 is set up a long-range connection of logining agreement 1), can such as, maintain the effective status that is connected between long-distance management device 101 and controlled server 200 (avoid because of standby time long automatically published by controlled server 200) by continuing the controlled server to send the modes such as the test operation order that content is empty (dummy) instruction (content for input (enter) symbol or there is simple query function and can not produce controlled server the operational order of materially affect), make long-distance management device 101 can remain on the state of logining to controlled server 200, so user computer 100 just can be used and continues or discontinuously controlled server 200 operated, and do not need repeatedly this controlled server 200 to be carried out and logined (even if having exceeded the time-out that controlled server 200 allows the standby time of user computer 100).For example, hold in computer 100 and server end computer 200 contact methods the legacy user shown in Figure 1A, in sending between command operating 3 and command operating 4, in the time that standby time, X exceeded the time-out time T of server end computer, server end computer can be published user computer automatically, so user computer can lose being connected between server end computer.In comparison, long-distance management device 101 shown in Fig. 2 D can optionally or regularly transmit false command (double-lined arrow as shown in Figure 2 D) constantly to controlled server 200, be connected (controlled server 200 can not be published) with controlled server 200 for user computer 100 maintenances.User computer 100 can not make because exceeding the time-out time T of controlled server 200 standby time of user computer the Joint failure (automatically being published by controlled server 200 because standby time is overtime) of itself and controlled server 200.Due to as long as exceed time-out time T and will lose the connection in controlled server standby time one, therefore the time interval of the regular transmission false command of long-distance management device 101 is preferably the time-out time T that is less than controlled server 200.So, even after idle a period of time, user computer 100 is not still required to be indivedual operations and again carries out the program of logining (to set up new connection), therefore the user of user computer 100 can feel to have preferably operation execution benefit.
Fig. 2 E is the schematic diagram to obtaining an embodiment who responds after the text operation interface routine input operation order of controlled server.As shown in Figure 2 E, in the present embodiment, the operational order " show server names " of input makes text operation interface routine show accordingly Servers-all and the relevant information thereof in cutter point server (Blade Server) system in its remote operation is responded after the CMD " OA-001E0BD5A7DF > ", and in last column once again display command prompt again input new operational order for user.Operational order comprises the part such as command name (" show " of the present embodiment) and parameter (" the server names " of the present embodiment) conventionally.In a preferred embodiment, long-distance management device can provide different operational order templates for different types of text operation interface routine, and operational order template provides remote operation instruction I 1with operational order IS 1between correspondence, can use remote operation instruction I 1be converted to corresponding operational order IS 1.In addition,, in a preferred embodiment, long-range to login agreement can be SSH or Telnet network communication agreement; But in other embodiments, can adopt other anyly to there is long-range network communication agreement of logining function.Long-rangely login agreement connection to controlled server 200 is provided, can use with the text operation interface routine 210 of controlled server 200 and carry out interaction and operate controlled server 200 to transmit alternately the mode of the data such as character.Operational order utilizes this to connect to send.In addition, in a preferred embodiment, when long-distance management device is set up after a long-range connection of logining agreement, can by regularly controlled server 200 is sent the modes such as the operational order that content is false command (such as content is incoming symbol or has simple query function and can not produce to controlled server the operational order of materially affect) maintain connection effectively, and can being used, user computer 100 continues controlled server 200 to operate, and needn't set up new connection and then avoid repeating the program of logining for indivedual operations, therefore there is preferably operation and carry out benefit.
In a preferred embodiment, user computer produces remote operation instruction I with graphic operation interface routine 1.Graphic operation interface routine can be the Windows application being executed in the operating system of user computer.Windows application shows corresponding form in the screen of user computer, makes user can utilize the equipment such as keyboard and mouse the operation such as to key in, click to form, and then produces corresponding remote operation instruction IS 1.This graphic operation interface routine can be that user computer is used for the part of functions of the hypervisor of managing long-distance management device or server.
Fig. 2 F is the schematic diagram of an embodiment of the shown form of Windows application of user computer.As shown in Figure 2 F, in the time corresponding to the option of " HP " server in blade server system and clicked, the messages such as its server name (Name), power supply status (Power Status), temperature information and information of voltage can obtain and respond and then show from server according to aforesaid way.
Fig. 2 G is the schematic diagram of an embodiment of method for remote management of the present invention.As shown in Figure 2 G, in the middle of step 105, first identify the CMD (command prompt) of the text operation interface routine of controlled server.In the middle of step 110, long-distance management device receives a remote operation instruction from user side computer, and produces according to this operational order corresponding to the text operation interface routine of a controlled server.In a preferred embodiment, user computer system supplies user to input this remote operation instruction with a graphic operation interface routine.This graphic operation interface routine can be a certain Windows application being executed in the operating system of user computer.This Windows application shows corresponding form (as the embodiment of Fig. 2 F) in the screen of user computer, make a user can utilize the equipment such as its keyboard and mouse the operation such as to key in, click to form, and then produce corresponding remote operation instruction.After the step of above-mentioned recognition command prompt is specified in collocation Fig. 3 A and Fig. 3 B.
Still refer to Fig. 2 G, in the middle of step 120, be sent to this controlled server by meeting the long-range operational order of logining agreement, operate this controlled server and produce accordingly remote operation via its text operation interface routine and respond.In a preferred embodiment, long-rangely login agreement and can be SSH or Telnet network communication agreement; But in other embodiments, can adopt any other kind to there is long-range network communication agreement of logining function.Long-rangely login agreement connection to controlled server is provided, make long-distance management device carry out interaction and to operate controlled server in the mode of transmitting alternately the data such as character with the text operation interface routine of controlled server.Operational order utilizes this to connect to send.
In step 120 as shown in Figure 2 G, text operation interface routine carries out the I/O of operational order in the mode of pure words, and it can do corresponding interaction according to the operational order receiving and operating system, and then the software/hardware of controlled server is operated.In addition, text operation interface routine can produce corresponding response (being that remote operation is responded) for each operational order, and its content can comprise the message such as result or the success or not of operation execution that controlled server is operated.
In the middle of step 130, long-distance management device is logined agreement and is received this remote operation and respond with long-range, and execution result capturing program is used in this remote operation is responded and is captured operating result message, make user computer can obtain according to this execution result of remote operation instruction, and shown by its graphic operation interface routine.Owing to also comprising other messages (as the embodiment of Fig. 2 E) such as such as CMD (command prompt) in remote operation response except operating result, therefore CMD must be got rid of to the execution result that just can obtain remote operation instruction.In a preferred embodiment, the present invention system utilizes CMD from remote operation is responded, to define the execution result of remote operation instruction.
In a preferred embodiment, long-distance management device can receive a remote operation instruction from user side computer, and produces according to this (being converted to) operational order corresponding to the text operation interface routine of a controlled server.In this embodiment, user computer produces this remote operation instruction with a graphic operation interface routine.This graphic operation interface routine can be a certain Windows application being executed in the operating system of user computer.This Windows application shows corresponding form (as the embodiment of Fig. 2 F) in the screen of user computer, make a user can utilize the equipment such as its keyboard and mouse the operation such as to key in, click to form, and then produce corresponding remote operation instruction.Long-distance management device can, the operational order result message of the text operation interface routine from controlled server, after treatment, reach user computer and show that this operational order result message is on graphic operation interface.Fig. 4 A and Fig. 4 D are the step of recognition command prompt in the present invention and an embodiment of the method that pure words message is converted to diagram message.Conversion method comprises four programs, is respectively program (), program (two), program (three) and program (four).Below will be explained respectively for these four programs.
Fig. 3 A and Fig. 3 B are depicted as the schematic diagram of recognition command prompt in method for remote management of the present invention.In a preferred embodiment, method for remote management of the present invention can be divided into four large programs.As shown in Figure 3A, program (one) comprises order generation unit transmission one first instruction with long-distance management device, for example login instruction (Login), and after one section of Preset Time, the first last column message (for example last column word string) responded receiving from controlled server is for example deposited in, to one first buffer (being positioned at memory cell) in long-distance management device.Program (two) comprises with order generation unit transmission one second instruction in long-distance management device, a for example false command (enter), and after identical Preset Time, the second last column message (for example last column word string) responded receiving from controlled server is deposited in to one second buffer of the memory cell in long-distance management device.The operating result message 500 of program () is a line or the multirow response result from controlled server, because now responding the possibility of result is received or is not yet all received by long-distance management device by long-distance management device, so now responding last column of result may, for other messages (being called the first CMD 501) of CMD or non-genus CMD, therefore must further be judged.In like manner, last column of the operating result message 500 of program (two) is to be regarded as the second CMD 502.Program (three) comprises by the result acquisition unit a word used in person's names of long-distance management device gets the first CMD 501 and the second CMD 502 in the first buffer and the second buffer, and judge that whether the first CMD 501 is identical with the second CMD, if the result judging is identical, the first CMD 501 or the second CMD 502 are CMD real in user computer and controlled server communications protocol used; If the result judging is not for identical, represent that aforesaid Preset Time falls short of, long-distance management device is captured and is compared in the time not yet really receiving last column message of responding result, go out real CMD (because not yet receiving the word string of last column) so go back None-identified, after therefore aforesaid Preset Time must being extended again repetitive routine () and program (two) to identify real CMD.Program (four) comprises the first temporary interior operating result message 500 that captures memory cell by result acquisition unit 30, and filter out the information of operating result message 500 according to the CMD identifying in program (three), make user computer graphic mode show operating result message 500.
After the 3rd instruction is sent, login the remote operation that receives from controlled server 200 of agreement and respond according to long-range, can use in remote operation is responded and capture operating result message 500 by result acquisition unit 30 execution result capturing program, the execution result of remote operation instruction can be screened by long-distance management device, and further make user computer to be shown by its graphic operation interface routine (as Fig. 2 F).In other embodiments, remote operation is responded and can be received by other functional units in long-distance management device.The remote operation receiving from controlled server is responded and is stored in memory cell 10.In a preferred embodiment, be to utilize CMD from remote operation is responded, to define the execution result of remote operation instruction.
Fig. 4 A is depicted as the schematic diagram of program () flow process of said procedure.As shown in Figure 4 A, in the present embodiment, program (one) comprise: step 140 is to login controlled server by long-distance management device.Step 141 starts waits for timing.Step 142 receives and logins message from controlled server.Step 143 judges waits for whether timing has exceeded the scheduled wait time.If being judged as YES of step 143, step 144 is responded the remote operation that receives from controlled server the memory cell depositing in in long-distance management device; If being judged as NO of step 143, gets back to step 142.The scheduled wait time can be adjusted according to the data transmission bauds between long-distance management device and controlled server or network condition compared with good in long-distance management device, in the time that data transmission bauds is slower, predetermined time-out time can be increased accordingly, in the time that data transmission bauds is very fast, predetermined time-out time can be shortened accordingly.In the present embodiment, the scheduled wait time was set as for 1 second.If wait for, timing not yet exceedes the scheduled wait time, and now logining message may also not finish receiving, and therefore gets back to step 142 and continues to receive and login message (logining the response that rear server is passed back) from controlled server.If wait for, timing has exceeded the scheduled wait time, and step 144 will receive and login message and deposit the memory cell in long-distance management device in, for example the first buffer from controlled server in scheduled wait time range.
Fig. 4 B is depicted as the schematic diagram of the flow process of aforementioned program (two).Step 145 starts waits for timing.Step 146 sends test command to controlled server, and operation controlled server also makes the text operation interface routine of controlled server produce accordingly test response message.Test command is the one of aforementioned operation order, is the false command for setting the second new CMD.In the present embodiment, test command is that content is the operational order of incoming symbol (enter); But in other embodiments, can be that such as querying server title etc. only has simple query function and can not produce to controlled server the operational order of materially affect.Step 147 receives test response message from controlled server.Step 148 judges waits for whether timing has exceeded the scheduled wait time.As previously mentioned, the scheduled wait time is adjusted according to the data transmission bauds between long-distance management device and controlled server compared with good.In the present embodiment, the scheduled wait time was set as for 1 second.If wait for timing not yet exceed the scheduled wait time, now testing response message may also not finish receiving, therefore get back to step 147 and continue from controlled server receive test response message.If wait for, timing has exceeded the scheduled wait time, and the remote operation result message that step 149 receives from controlled server deposits the second buffer of the memory cell in long-distance management device in.
Fig. 4 C is depicted as the schematic diagram of the flow process of aforementioned program (three).Step 150 comprises by the result acquisition unit in long-distance management device, the first CMD in the first buffer in memory cell and the second buffer and the second CMD are done to one relatively, to judge that whether the first CMD is identical with the second CMD.This step is to identify the CMD (command prompt) whether the first CMD uses for the text operation interface routine of controlled server.
Generally speaking, text operation interface routine is executing after an order and can use the new operational order (" 0A-001E0BD5A7DF > " as shown in the CMD of Fig. 2 E) of input at CMD of last column appearance of test response message, and therefore last column of the present embodiment acquisition test response message is verified the correctness of the first CMD.In addition, generally speaking different text operation interface routines has different default CMDs, " C: > " symbol of " $ " symbol of such as Unix operating system or dos operating system etc., therefore in other embodiments, can judge by program () and program (two) the default CMD that the text operation interface routine of controlled server uses for different text operation interface routines.
For example using, under the environment of long-distance management device (a network-type multi-computer switch), may have multiple users to exist, the CMD that text operation interface routine uses may be because the situation that a certain user's change etc. are former thereby generation is different from another user's default CMD.Therefore, the invention provides the function of the first new CMD of acquisition, and get back to abovementioned steps 120 after the second new CMD of acquisition, compare with the second new CMD to capture the first new CMD, so find out current the used CMD of text operation interface routine and use from remote operation respond define operating result message (must first remove CMD).
In the program shown in Fig. 4 C (three), if the first CMD is not identical with the second CMD, represent that the operating result message that is received from controlled server fails for example, to complete reception in the time range of the default scheduled wait of long-distance management device time (1 second), so last column word string of the operating result message that long-distance management device receives not is CMD real in controlled server.In the time that the first CMD and the second CMD are not identical, perform step 152.Step 152 comprises the wait timing (for example 30 seconds) that extends long-distance management device, and the step 140 of rebound program () is logined this controlled server again.
Fig. 4 D is depicted as the schematic diagram of the flow process of program (four).After aforementioned program (three) has been confirmed the character identical with the character of the second CMD (having identified real CMD) of the first CMD, program (four) meeting is the operating result message in memory cell acquisition first is temporary by the result acquisition unit in long-distance management device, and is shown in the display unit of user computer by graphic operation interface routine.As shown in Figure 4 D, step 153 is by result acquisition unit, and the first buffer in memory cell captures operating result message.Step 154 is according to the first CMD, judges or filters out the object information part of wanting to be shown in graphic operation interface in operating result message.Generally speaking, operating result display section that message is wanted is the information between former and later two CMDs wherein.As shown in Figure 2 E, wherein wanting to be shown on the graphic operation interface in Fig. 2 F is the information between CMD above and CMD below.In preferred embodiment, the function that judgement is wanted to be shown on graphic operation interface is to be provided by the result acquisition unit of long-distance management device.But, also can be realized by other unit of long-distance management device in other embodiments.
In sum, method for remote management of the present invention comprises: step 140 is to login controlled server by long-distance management device.Step 141 is to start to wait for timing.Step 142 is to receive and login message from controlled server.Step 143 is to judge to wait for whether timing has exceeded the scheduled wait time.Step 144 is that the remote operation result message receiving from controlled server is deposited in to the memory cell in long-distance management device.Step 145 is to start to wait for timing.Step 146 is that controlled server is sent to test command (false command), makes the text operation interface routine of controlled server can use this test command operation controlled server, to produce accordingly test response message.Step 147 receives test response message from controlled server.Step 148 is to judge to wait for whether timing has exceeded the scheduled wait time.Step 149 is that the remote operation result message receiving from controlled server is for example deposited in, in the memory cell (the second buffer) in long-distance management device.Step 150 is by the result acquisition unit in long-distance management device, and the first CMD and the second CMD in the first buffer in Memory cell and the second buffer are done to one relatively.Step 151 is to judge that whether the first CMD is identical with the second CMD.Step 152 is that the wait timing of setting long-distance management device is 30 seconds.Step 153 is the first temporary acquisition operating result message in memory cell by result acquisition unit.Step 154, according to the character of the first CMD, is wanted to be shown in the result message part of pattern operation-interface in decision operation result message.
Method for remote management of the present invention can utilize user computer and long-rangely logins the connection of agreement to the text operation interface routine transmit operation order of controlled server, use operation controlled server, and from responding, the remote operation of controlled server captures operating result message by execution result capturing program, make user computer can obtain according to this execution result of remote operation instruction, and shown by graphic operation interface routine.
Long-distance management device of the present invention can utilize user computer by said structure and long-rangely logins the connection of agreement to the text operation interface routine transmit operation order of controlled server, use operation controlled server, and from responding, the remote operation of controlled server captures operating result message by execution result capturing program, make user computer can obtain according to this execution result of remote operation instruction, and shown by graphic operation interface routine.
The present invention is described by above-mentioned related embodiment, but above-described embodiment is only for implementing example of the present invention.Must be pointed out that, the embodiment having disclosed does not limit the scope of the invention.On the contrary, being contained in the spirit of claim and the amendment of scope and equalization arranges and is all contained in scope of the present invention.

Claims (11)

1. a method for remote management, for a long-distance management device, a user computer is coupled to a controlled server by this long-distance management device, make this user computer produce interactive via this long-distance management device and this controlled server, and then this controlled server is operated, the method at least comprises the following step:
(a) this user computer receives a remote operation instruction certainly, and produces at least one operational order corresponding to a text operation interface routine of this controlled server according to this remote operation instruction;
(b) use one long-rangely to login agreement this operational order is sent to this controlled server, make this text operation interface routine of this controlled server can use this operational order to operate this controlled server and produce accordingly at least one remote operation and respond; And
(c) long-rangely login agreement and receive this remote operation from this controlled server and respond with this, and carry out a result capturing program and use in this remote operation is responded and capture an operating result message, make this user computer obtain the execution result of this remote operation instruction and to be presented at user computer by a graphic operation interface routine according to this operating result message; Wherein step step (c) comprises:
(c1) long-rangely login agreement and receive this remote operation from this controlled server and respond with this, and from this remote operation is responded, capture last column using as one first CMD;
(c2) judge that whether this first CMD is identical with one second CMD; And
If this first CMD is identical with this second CMD,
(c3) this remote operation beyond this first CMD is responded and is defined as this operating result message, make this user side obtain the execution result of this remote operation instruction and to be shown by this graphic operation interface routine according to this operating result message;
If this first CMD is different from this second CMD,
(c4) again login this controlled server, and carry out one second CMD capturing program, to capture this new second CMD, then get back to step (b).
2. the method for claim 1, is characterized in that, step (b) more comprises startup one overtime timing, and step (c4) comprises the following step:
(c41) judge whether this overtime timing has exceeded a predetermined time-out time, wherein this predetermined time-out time can be according to the data transmission bauds between this long-distance management device and this controlled server or network condition and is adjusted; And
If this overtime timing not yet exceedes this predetermined time-out time,
(c42) continue to receive this remote operation from this controlled server and respond, and this remote operation captures this new first CMD in responding certainly, then gets back to step (c2);
If this overtime timing has exceeded this predetermined time-out time,
(c43) carry out this second CMD capturing program, then get back to step (b).
3. the method for claim 1, is characterized in that, this text operation interface routine of this controlled server shows and login message after this long-distance management device is logined this controlled server, and this second CMD capturing program comprises the following step:
(d1) start one and wait for timing;
(d2) this controlled server receives this and logins message certainly;
(d3) judge whether this wait timing has exceeded the scheduled wait time;
If this wait timing not yet exceedes this scheduled wait time, get back to step (d2);
If this wait timing has exceeded this scheduled wait time,
(d4) this second CMD is set as to the character in this last column of logining message;
(d5) start another and wait for timing;
(d6) this controlled server is sent to a test command, make this text operation interface routine of this controlled server can use this test command to operate this controlled server, to produce accordingly at least one test response message;
(d7) this controlled server receives this test response message certainly;
(d8) judge whether this another wait timing has exceeded another scheduled wait time;
If this another wait timing not yet exceedes this another scheduled wait time, get back to step (d7);
If this another wait timing has exceeded this another scheduled wait time,
(d9) judge that this second CMD is whether identical with the character in last column of this test response message; And
If the character in last column of this second CMD and this test response message is different,
(d10) again login this controlled server, then get back to step (d1).
4. the method for claim 1, is characterized in that, this is long-range login in the colony that agreement is made up of Secure Shell (SSH) and Telnet selected.
5. the method for claim 1, it is characterized in that, this is long-range logins to reach an agreement on set up a connection between this long-distance management device and this controlled server, this long-distance management device continues this controlled server to send this operational order to keep the state of logining to this controlled server, and wherein this operational order comprises a false command.
6. a long-distance management device, one user computer is coupled to a controlled server, this user computer can be produced via this long-distance management device and this controlled server interactive, and then this controlled server is operated, this long-distance management device at least comprises:
One memory cell, stores at least one remote operation instruction and at least one remote operation and responds, and wherein this remote operation instruction is received from this user side, and this remote operation is responded and is received from this controlled server;
One order generation unit, produce at least one operational order corresponding to a text operation interface routine of this controlled server according to this remote operation instruction, and use one long-rangely to login agreement this operational order is sent to this controlled server, make this text operation interface routine of this controlled server can use this operational order to operate this controlled server and produce accordingly this remote operation and respond; And
One result acquisition unit, use this long-rangely to login agreement and receive this remote operation from this controlled server and respond, and carry out a result capturing program and use in this remote operation is responded and capture an operating result message, make this user side obtain the execution result of this remote operation instruction and to be shown by a graphic operation interface routine according to this operating result message;
Wherein this result capturing program more comprises the following step:
From responding, this remote operation captures one first CMD;
Judge that whether this first CMD is identical with one second CMD; And
If this first CMD is identical with this second CMD,
This remote operation beyond this first CMD is responded and is defined as this operating result message, make this user side obtain the execution result of this remote operation instruction and to be shown by this graphic operation interface routine according to this operating result message;
If this first CMD is different from this second CMD,
Again login this controlled server, and carry out one second CMD capturing program, to capture this new second CMD, then again this operational order is sent to this controlled server.
7. long-distance management device as claimed in claim 6, is characterized in that, this order generation unit starts an overtime timing after producing this operational order, and the step of carrying out this second CMD capturing program comprises:
Judge whether this overtime timing has exceeded a predetermined time-out time, and wherein this predetermined time-out time is adjusted according to the data transmission bauds between this long-distance management device and this controlled server;
If this overtime timing not yet exceedes this predetermined time-out time,
Continue to receive this remote operation from this controlled server and respond, and capture this new first CMD from this remote operation is responded, then get back to the step that judges that whether this first CMD is identical with this second CMD;
If this overtime timing has exceeded this predetermined time-out time,
Carry out this second CMD capturing program, then again this operational order is sent to this controlled server.
8. long-distance management device as claimed in claim 6, it is characterized in that, this text operation interface routine of this controlled server shows and logins message after this long-distance management device is logined this controlled server, and this second CMD capturing program comprises the following step:
Start one and wait for timing;
Receive this from this controlled server and login message;
Judge whether this wait timing has exceeded the scheduled wait time;
If this wait timing not yet exceedes this scheduled wait time, get back to receiving this and login the step of message;
If this wait timing has exceeded this scheduled wait time,
This second CMD is set as to the character in this last column of logining message;
Start another and wait for timing;
This controlled server is sent to a test command, make this text operation interface routine of this controlled server can use this test command to operate this controlled server, to produce accordingly at least one test response message;
Receive this test response message from this controlled server;
Judge whether this another wait timing has exceeded another scheduled wait time;
If this another wait timing not yet exceedes this another scheduled wait time, get back to the step that receives this test response message;
If this another wait timing has exceeded this another scheduled wait time,
Judge that this second CMD is whether identical with the word string in last column of this test response message; And
If the word string in last column of this second CMD and this test response message is different,
Again login this controlled server, then get back to the step that this second CMD is set as to the character in this last column of logining message.
9. long-distance management device as claimed in claim 6, is characterized in that, this is long-range login in family's body that agreement is made up of Secure Shell and Telnet selected.
10. long-distance management device as claimed in claim 6, it is characterized in that, this is long-range logins to reach an agreement on set up a connection between this long-distance management device and this controlled server, and this long-distance management device regularly sends this operational order to this controlled server, and wherein this operational order comprises a false command.
11. 1 kinds of method for remote management, for a long-distance management device, a user computer is coupled to a controlled server by this long-distance management device, make this user computer produce interactive with a communications protocol and this controlled server via this long-distance management device, and then this controlled server is operated, the method at least comprises the following step:
By this long-distance management device, this controlled server is sent to one first instruction;
After one section of Preset Time, this controlled server is stored in response to first last column message of responding in this first instruction;
By this long-distance management device, this controlled server is sent to one second instruction;
After this Preset Time, this controlled server is stored in response to second last column message of responding in this second instruction;
Relatively whether this first last column message of responding is identical with this second last column message of responding;
If the result of this comparison is identical, using this first last column message of responding or this second last column message of responding as the CMD of this communications protocol;
Via this long-distance management device, this is sent to one the 3rd instruction by this user computer;
Filter out this controlled server in response to the response producing in the 3rd instruction according to this CMD; And with this long-distance management device, this response is converted to a figure and is shown on this user computer.
CN201110461823.0A 2010-12-31 2011-12-27 Remote management method and device thereof Active CN102571953B (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
TW099147358A TWI537743B (en) 2010-12-31 2010-12-31 Remote management method and the apparatus thereof
TW099147358 2010-12-31

Publications (2)

Publication Number Publication Date
CN102571953A CN102571953A (en) 2012-07-11
CN102571953B true CN102571953B (en) 2014-09-10

Family

ID=46416413

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110461823.0A Active CN102571953B (en) 2010-12-31 2011-12-27 Remote management method and device thereof

Country Status (2)

Country Link
CN (1) CN102571953B (en)
TW (1) TWI537743B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI504197B (en) * 2012-07-03 2015-10-11 Aten Int Co Ltd Remote management method and remote management device thereof
CN104346237A (en) * 2013-08-05 2015-02-11 宏达国际电子股份有限公司 Cloud backup method and electronic communication device
TWI594129B (en) * 2014-03-26 2017-08-01 宏正自動科技股份有限公司 Method for establishing a management list
US10817191B2 (en) * 2017-03-13 2020-10-27 Western Digital Technologies, Inc. Storage system and method for thermal throttling via command arbitration

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100458695C (en) * 2006-04-25 2009-02-04 英业达股份有限公司 Automatic total remote controlling method
US20070282964A1 (en) * 2006-06-06 2007-12-06 International Business Machines Corporation Method and apparatus for processing remote shell commands
CN101135966A (en) * 2006-11-24 2008-03-05 中兴通讯股份有限公司 Graphical interfaces development method and system based on command lines

Also Published As

Publication number Publication date
TW201227333A (en) 2012-07-01
TWI537743B (en) 2016-06-11
CN102571953A (en) 2012-07-11

Similar Documents

Publication Publication Date Title
CN109889551B (en) Method for accessing intelligent hardware to Internet of things cloud platform
CN106657370B (en) Data transmission method and device
TWI584619B (en) Network aggregator
US7133908B1 (en) Metrics and status presentation system and method using persistent template-driven web objects
CN109118347A (en) A kind of automation collaboration method and system
US20120110576A1 (en) Resource sharing system and method thereof
CN101714930A (en) Method and system for realizing network monitoring
CN108845798A (en) A kind of visualization big data task cradle and processing method
JP2008519327A (en) Network management appliance
CN102571953B (en) Remote management method and device thereof
CN101212428A (en) Home gateway applied in digital home system
CN103546343A (en) Network flow display method and system for network flow analyzing systems
CN102523103A (en) Industrial monitoring network data collection node
CN102271052A (en) Network system, network management device and gateway device
CN103905597B (en) A kind of method and system of computer control managing VoIP phones
US20210034338A1 (en) Communications Enablement Platform, System, and Method
CN1697399A (en) Monitored control system for network based on general information model
CN103384246B (en) Safety supervision system login assistant method
CN101499031A (en) Software bug feedback system and method
CN101155174A (en) Remote subscriber interface service implementing method based on common protocol
CN109445922A (en) Task processing method and device, electronic equipment and storage medium
CN109218444A (en) A kind of wireless digital image delivering system based on Android
CN103179102B (en) A kind of desktop virtual method, equipment and system
US20050125492A1 (en) Integrated network element management system and method
CN106488269A (en) System and method to television equipment control is realized based on third-party application platform

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant