CN106254156A - device access method and device - Google Patents
device access method and device Download PDFInfo
- Publication number
- CN106254156A CN106254156A CN201610837706.2A CN201610837706A CN106254156A CN 106254156 A CN106254156 A CN 106254156A CN 201610837706 A CN201610837706 A CN 201610837706A CN 106254156 A CN106254156 A CN 106254156A
- Authority
- CN
- China
- Prior art keywords
- page
- control board
- configuration
- agent process
- request
- 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.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/06—Management of faults, events, alarms or notifications
- H04L41/0654—Management of faults, events, alarms or notifications using network fault recovery
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/02—Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
- H04L67/025—Protocols based on web technology, e.g. hypertext transfer protocol [HTTP] for remote control or remote monitoring of applications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/56—Provisioning of proxy services
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/60—Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer And Data Communications (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The application provides a kind of device access method and device, and described method includes: main control board receives, by the agent process preset, the accessing page request for the slave control board configuration page that remote browser sends;In response to described accessing page request, described agent process is set up first with the Page Service process of described slave control board and is connected;Described agent process connects, by described first, the described Page Service process that described accessing page request is forwarded to;And receive the configuration page data corresponding with described access request that described Page Service process is returned by the first connection;Described configuration page data is back to browser by described agent process, with the configuration page corresponding with described configuration page data in browser display.Application technical scheme can realize the remote access of slave control board configuration information.
Description
Technical field
The application relates to computer network field, particularly relates to device access method and device.
Background technology
In order to ensure the properly functioning of business, it is generally the case that frame type equipment can be operated under dual master control environment.
So-called dual master control environment, i.e. installs two master control borads, respectively with main control board and the work of slave control board in frame type equipment
Operation mode runs.When main control board breaks down, slave control board can be replaced main control board and proceed work.When
When the configuration information of slave control board is inconsistent with the configuration information of this main control board, slave control board is difficult to carry out normally
Work.In this case, the configuration information accessing slave control board just seems most important.
Summary of the invention
In view of this, the application provides a kind of device access method and device, in order to realize remote access frame type equipment
Slave control board.
Specifically, the application is achieved by the following technical solution:
First aspect, the application provides a kind of device access method, and described method is applied to frame type equipment, and described frame sets
For including main control board and one or more slave control board, described method includes:
Main control board is configured for slave control board by what the agent process preset received that remote browser sends
The accessing page request of the page;
Page Service process in response to described accessing page request, described agent process and described slave control board is set up
First connects;
Described agent process connects, by described first, the described Page Service process that described accessing page request is forwarded to;
And receive the configuration page data corresponding with described access request that described Page Service process is returned by the first connection;
Described configuration page data is back to browser by described agent process, with at browser display and described configuration page
The configuration page that face data are corresponding.
Second aspect, the application provides a kind of device access method, and described method is applied to browser, described method bag
Include:
When listening to user for the trigger action of pre-set user option, to the agent process preset of main control board
Send the accessing page request for the slave control board configuration page, to trigger described agent process and described slave control board
Page Service process sets up the first connection, and is sent described access request to described by the first connection by described agent process
Page Service process;
Receive described agent process return sent by described page server process configure with described slave control board
The configuration page data that the page is corresponding;
Show the slave control board configuration page corresponding with described configuration page data.
The third aspect, the application provides a kind of equipment to access device, and described device includes:
Receive unit, for main control board by default agent process receive that remote browser sends for standby
Accessing page request with the master control borad configuration page;
Set up unit, for the page in response to described accessing page request, described agent process and described slave control board
Face service processes sets up the first connection;
Retransmission unit, is forwarded to described for described agent process by described first connection by described accessing page request
Page Service process;And receive the configuration corresponding with described access request that described Page Service process is returned by the first connection
Page data;
Return unit, for described agent process, described configuration page data is back to browser, to show at browser
Show the configuration page corresponding with described configuration page data.
Fourth aspect, the application provides a kind of equipment to access device, and described device includes:
Transmitting element, for when listening to user for the trigger action of pre-set user option, to main control board
The agent process preset sends the accessing page request for the slave control board configuration page, to trigger described agent process and institute
The Page Service process stating slave control board sets up the first connection, and is connected described access by first by described agent process
Request sends to described Page Service process;
Return unit, for receive described agent process return by described page server process send standby with described
With configuration page data corresponding to master control borad configuration page face;
Display unit, for the slave control board configuration page that display is corresponding with described configuration page data.
The embodiment of the present invention proposes a kind of new method accessing equipment, is connect by default agent process at main control board
When receiving the accessing page request configuring the page for slave control board that remote browser sends, based on this default agent process
Set up first with the Page Service process of described slave control board to be connected;The default agent process of described main control board passes through institute
State the first connection and send described access request to the described Page Service process of slave control board;And receive described Page Service and enter
The configuration page data corresponding with described access request that journey is returned by the first connection;Described default agent process is joined described
Put page data and be back to browser, with the configuration page corresponding with described configuration page data in browser display.
Due to the default agent process of the main control board of this frame type equipment can receive browser send for standby
The accessing page request of the master control borad configuration page, it is possible to set up first even with the Page Service process of described slave control board
Connect.This default agent process can receive, by the first connection, the configuration page data that slave control board returns, it is possible to should
Configuration page data is back to remote browser, is checked the configuration information of slave control board by browser for user, so that
User without being checked the configuration information of slave control board by serial ports to scene, but be remotely logged into standby by browser
The configuration page of master control borad, remotely checks or configures the configuration information of slave control board.
Accompanying drawing explanation
Fig. 1 is the flow chart of a kind of device access method shown in the application one exemplary embodiment;
Fig. 2 is the flow chart of a kind of device access method shown in the application one exemplary embodiment;
Fig. 3 is the hardware structure diagram that a kind of equipment shown in the application one exemplary embodiment accesses device place equipment;
Fig. 4 is the hardware configuration that the another kind of equipment shown in the application one exemplary embodiment accesses device place equipment
Figure;
Fig. 5 is the block diagram that a kind of equipment shown in the application one exemplary embodiment accesses device;
Fig. 6 is the block diagram that the another kind of equipment shown in the application one exemplary embodiment accesses device.
Detailed description of the invention
Here will illustrate exemplary embodiment in detail, its example represents in the accompanying drawings.Explained below relates to
During accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawings represents same or analogous key element.Following exemplary embodiment
Described in embodiment do not represent all embodiments consistent with the application.On the contrary, they are only with the most appended
The example of the apparatus and method that some aspects that described in detail in claims, the application are consistent.
It is only merely for describing the purpose of specific embodiment at term used in this application, and is not intended to be limiting the application.
" a kind of ", " described " and " being somebody's turn to do " of singulative used in the application and appended claims is also intended to include majority
Form, unless context clearly shows that other implications.It is also understood that term "and/or" used herein refers to and wraps
Any or all containing one or more projects of listing being associated may combination.
Although should be appreciated that in the application possible employing term first, second, third, etc. to describe various information, but this
A little information should not necessarily be limited by these terms.These terms are only used for same type of information is distinguished from each other out.Such as, without departing from
In the case of the application scope, the first information can also be referred to as the second information, and similarly, the second information can also be referred to as
One information.Depend on linguistic context, word as used in this " if " can be construed to " ... time " or " when ...
Time " or " in response to determining ".
Frame type equipment is the network equipment common in network, it is generally the case that frame type equipment is by framework itself and is inserted in frame
Multiple boards composition on body, described board can include master control borad.
Master control borad on frame type equipment is equivalent to " brain " of frame type equipment, is arranged in the groove position of frame type equipment framework,
It is mainly used in the operation of whole equipment is controlled, manages the configuration distributing of all boards and state shows and unified storage
The configuration file of frame type equipment.Under normal circumstances, frame type equipment includes at least one piece of master control borad, just can normally work.
And along with the high speed development of the Internet, in order to ensure being normally carried out of the business of frame type equipment, in actual applications,
Frame type equipment is typically operated under dual master control environment, in other words, can install two master control borads in frame type equipment, and one
Individual master control borad is as main control board, and another master control borad is as slave control board.Generally, main control board is mainly used
In controlling and safeguarding the properly functioning of whole equipment.And slave control board does not the most process any business, only keep user's configuration
Tong Bu with main control board with dynamic entry.But when the main control board of this frame type equipment breaks down, slave control board can
Work is proceeded with replacement main control board.
But, at main control board during slave control board synchronizes configuration information, owing to main control board is with standby
All above-mentioned synchronizations of possible impact such as certain functional module obstructed with master control borad inner passage or configuration synchronization process goes wrong
Process so that slave control board is inconsistent with the configuration information of main control board.When slave control board replaces main control board to continue
During continuous work, owing to configuration information is inconsistent so that slave control board possibly cannot continue to control the properly functioning of whole equipment,
Cause the interruption of business contact.
Therefore, user confirms that just become the most consistent with the configuration information on main control board of slave control board particularly weighs
Want.
And in actual applications, for confirming that on primary, spare master control borad, configuration information is the most consistent, the mode being usually taken
It is that user needs to arrive the working site of frame type equipment, performs to configure accordingly to check by connecting the serial ports of slave control board
Order, as the configuration information on slave control board is checked in the orders such as show running-config, confirms standby master with this
Configuration information on control plate whether with the accordant configuration information on main control board.When configuration information is inconsistent, user needs
Corresponding configuration order is performed so that the configuration information on primary, spare panel is identical at serial ports.
On the one hand, in actual applications, frame type equipment is the most all placed in machine room, and therefore user cannot accomplish remotely to connect
Connect, it is necessary to entering machine room, carry out configuration order by Serial Port Line and check operation, it is very inconvenient that this makes user operation get up.
On the other hand, when user performs to check configuration order at slave control board serial ports, find that primary, spare panel configures
When there are differences, user needs to perform difference configuration on the serial ports of slave control board so that main control board and standby master control
Accordant configuration information on plate.But, if the configuration order of this difference configuration does not exists or function occurs in this configuration order
Problem, then be likely to occur the configuration information cannot revised on slave control board so that it is the situation consistent with main control board.
Additionally, if standby main control board serial ports is abnormal, such as serial ports is stuck, damage etc., and also resulting in user cannot lead to
Cross slave control board serial ports to perform to check configuration information.
In order to solve the problems referred to above, the embodiment of the present invention proposes a kind of method of remote access equipment, at main control board
When receiving, by default agent process, the accessing page request configuring the page for slave control board that remote browser sends,
Set up first based on this default agent process with the Page Service process of described slave control board to be connected;Described main control board
Preset agent process and connect the described Page Service process described access request of transmission to slave control board by described first;And
Receive the configuration page data corresponding with described access request that described Page Service process is returned by the first connection;Described pre-
If described configuration page data is back to browser by agent process, with corresponding with described configuration page data in browser display
The configuration page.
Due to the default agent process of the main control board of this frame type equipment can receive browser send for standby
The accessing page request of the master control borad configuration page, it is possible to set up first even with the Page Service process of described slave control board
Connect.This default agent process can receive, by the first connection, the configuration page data that slave control board returns, it is possible to should
Configuration page data is back to remote browser, is checked the configuration information of slave control board by browser for user, so that
User without being checked the configuration information of slave control board by serial ports to scene, but be remotely logged into standby by browser
The configuration page of master control borad, remotely checks or configures the configuration information of slave control board.
See the flow chart that Fig. 1, Fig. 1 are a kind of device access methods shown in the application one exemplary embodiment, described
Method is applied to frame type equipment, specifically includes step as described below:
Step 101: main control board by default agent process receive that remote browser sends for standby master
When control plate configures the accessing page request of the page, Page Service process based on this default agent process Yu described slave control board
Set up the first connection;
Step 102: the default agent process of described main control board connects the institute to slave control board by described first
State Page Service process and send described access request;And receive described Page Service process by first connection return with described
The configuration page data that access request is corresponding;
Step 103: described configuration page data is back to browser by described default agent process, with in browser display
The configuration page corresponding with described configuration page data.
The embodiment of the present application is primarily to solve the problems referred to above, it is proposed that a kind of standby master remotely accessing frame type equipment
The method of control plate configuration information.Furthermore, it is understood that user can access the standby master control of frame type equipment on the browser of far-end
The configuration page of plate, and can return, by this configuration page, the configuration information that user needs to check.
When carrying out the access of slave control board of frame type equipment, the mode being typically readily apparent that is that browser is standby with this
Master control borad directly sets up connection, and in other words, user can step in remote browser directly by inputting corresponding URL address
The configuration page of land slave control board, and by operations such as this configuration page carry out that corresponding configuration information is checked.
But, in actual applications, the configuration information that slave control board synchronizes except being received main control board is with dynamic
Outside the operation of state list item, participate in any Business Processing hardly, so during main control board normally works,
The interface of slave control board is in the state of " down ", it is virtually impossible to participate in the work such as Business Processing.Now, pass through as user
After inputting corresponding URL address on browser, the configuration page of main control board may only be logged in, and cannot be corresponding by input
URL address, log in slave control board the configuration page.As can be seen here, directly pass through joining of browser access slave control board
Put the page to be difficulty with in actual applications.
The embodiment of the present application, it is provided that the access mechanism of a kind of new frame type equipment slave control board, by browser
The main control board configuration page on increase the pre-set user option that slave control board accesses, the primary master of frame type equipment
Presetting an agent process (such as proxy_proc process) on control plate, when user triggers this user option, this agent process can
Be connected setting up second by certain designated port (such as port_web port) with browser, it is possible to on slave control board
Page Service process (such as web_proc process) sets up the first connection.
The agent process of main control board can by second connection receive browser transmission for slave control board
The accessing page request of the configuration page, it is possible to connect the page clothes that this access request is forwarded to slave control board by first
Business process.The agent process of main control board will can be received from the Page Service process of slave control board by the first connection
To configuration page data be back to browser.After browser receives this configuration page data, can display to the user that this is joined
Put the page so that user can realize remote access slave control board configuration information by this configuration page.
When realizing, user can input the URL address of the master control configuration page on a web browser, and browser can show master
The page is configured with master control borad.The user the preset choosing accessing slave control board on the main control board configuration page is triggered user
Xiang Hou, browser can monitor the trigger action of this user option.When listening to user and triggering default user option, browse
Device can send the page access for the slave control board configuration page to the designated port of the main control board of frame type equipment please
Ask.
The agent process of main control board can monitor this designated port, sends out when this agent process listens to remote browser
Deliver to described designated port for slave control board configuration the page accessing page request time, this agent process can with browse
The second connection set up by device.
The agent process of main control board can receive this accessing page request by the second connection.Then, this act on behalf of into
Journey can be set up first with the Page Service process on slave control board and be connected.
Above-mentioned access request can be sent to the Page Service process of slave control board by the agent process of main control board.
After Page Service process receives above-mentioned request, can connect by first and return this accessing page request institute to main control board
The configuration page data needed.
After main control board receives above-mentioned configuration page data by first, can be by the second connection to far
End browser forwards this configuration page data.After browser receives this configuration page data, can be based on this configuration page
Data, show this configuration page.
Wherein, the above-mentioned configuration page is equivalent to " menu " page of configuration information, and this configuration page has one or many
Individual config option, each config option has corresponding configuration information, and user can according to demand, " click " configuration choosing
, obtain its required configuration information.
Above-mentioned designated port, has " binding " relation, in other words, browser with the agent process of above-mentioned main control board
Being by this designated port, second set up with the agent process on main control board is connected.Furtherly, browser can be to
This designated port sends for the accessing page request accessing slave control board, and the agent process on main control board can be monitored
This designated port, when having listened to this accessing page request and having passed through, then can set up second and be connected with this browser.
Additionally, the agent process on main control board can be by this designated port and the Page Service on slave control board
The first connection that process is set up, it is also possible to set up first by other ports with process on slave control board and be connected.Here, no
Repeat again.
Connect for first and the second connection is completed by TCP three-way handshake, here repeat no more.
Here, what deserves to be explained is, at the agent process of browser Yu main control board, the agency of main control board enters
The Page Service process of journey and slave control board is set up during being connected, and the way being typically readily apparent that is the company of foundation in advance
Connect, then carrying out the mutual of association requests and request data.If but establish connection in advance, the CPU of equipment it is possible to
Needing to monitor the data interaction in the connection established in real time, when not having data interaction for a long time in this connection, CPU remains a need for
Monitoring, this most greatly wastes the process resource of CPU.
And in the embodiment of the present application, the agent process of main control board uses and first receives accessing page request, resettle
The mode connected.In other words, when user needs the configuration information accessing slave control board, just set up and connect.Further
For, when this agent process listen to above-mentioned designated port receive this accessing page request time, set up second even with browser
Connect, then set up first with above-mentioned Page Service process and be connected.Further, when in the range of certain time, if do not gone out in this connection
During existing data interaction, then this connection can be aging.If needing re-request configuration information, then need to re-establish connection.
Adopt in such a way, can be effectively prevented from occurring connecting that data interaction does not occurs the most for a long time, and CPU is still in monitoring shape
The situation of state.Therefore, it can be effectively improved CPU and process the utilization rate of resource.
In the present embodiment, described agent process receives the configuration for described slave control board that described browser sends
Access request, and connect described configuration access request transmission to described Page Service process by described first;Wherein, described
Configuration access request is triggered for the trigger action of the preset configuration option in the described configuration page by user;Described agent process
Receive the configuration information corresponding with described configuration access request that described Page Service process returns, and described configuration information is returned
It is back to described browser.
When realizing, after user conducts interviews slave control board configuration page data manipulation, browser can show
State the configuration page for slave control board.User can be by corresponding for " clicking on " on the configuration page of slave control board
Config option, trigger corresponding configuration access operation.When browser listens to the trigger action that this config option occurs, clear
Device of looking at can send the configuration visit of the configuration information for slave control board to the agent process of the main control board of frame type equipment
Ask request, in order to access the configuration information on slave control board.
After the agent process of main control board receives this configuration access request, this configuration access request can be transmitted to
The Page Service process of slave control board.After the Page Service process of slave control board receives this configuration access request, permissible
The configuration information asked is returned to the agent process of main control board.
This configuration information can be transmitted to browser by the agent process of main control board so that user can be to standby master
The configuration information of control plate is remotely checked or slave control board is carried out Remote configuration operation.
In order to increase the safety that equipment accesses, in the present embodiment, at the agent process of main control board, receive remote
During the accessing page request configuring the page for slave control board that end browser sends, checking and described accessing page request pair
Whether the login user answered has the access rights of the configuration page of slave control board;Please if it is, respond described page access
Ask.
When realizing, the agent process at main control board passes through designated port, receives the pin that remote browser sends
When slave control board configures the accessing page request of the page, agent process can resolve this accessing page request, it is possible to obtains
Take the login user authority information carried in this accessing page request, and to login user corresponding to this accessing page request whether
The access rights of the configuration page with slave control board are verified.
Time if the verification passes, the agent process of main control board can respond described accessing page request, this act on behalf of into
Described accessing page request can be sent the Page Service process to slave control board by journey;If checking is not passed through, then can be to
Browser returns the information of authentication failed.
Certainly, this state being verified is to have certain persistent period, does not has phase when exceeding this persistent period
When closing operation, then need again to verify.
By above example, receive what remote browser sent at main control board by default agent process
When configuring the accessing page request of the page for slave control board, page based on this default agent process Yu described slave control board
Face service processes sets up the first connection;The default agent process of described main control board connects to standby master control by described first
The described Page Service process of plate sends described access request;And receive what described Page Service process was returned by the first connection
The configuration page data corresponding with described access request;Described configuration page data is back to browse by described default agent process
Device, with the configuration page corresponding with described configuration page data in browser display.
Due to the default agent process of the main control board of this frame type equipment can receive browser send for standby
The accessing page request of the master control borad configuration page, it is possible to set up first even with the Page Service process of described slave control board
Connect.This default agent process can receive, by the first connection, the configuration page data that slave control board returns, it is possible to should
Configuration page data is back to remote browser, is checked the configuration information of slave control board by browser for user, so that
User without being checked the configuration information of slave control board by serial ports to scene, but be remotely logged into standby by browser
The configuration page of master control borad, remotely checks or configures the configuration information of slave control board.
Additionally, login user authority can also be verified by main control board, it is ensured that the safety that equipment accesses.
In sum, the embodiment of the present application is used to be possible not only to realize the slave control board of remote access frame type equipment, also
Can ensure that the safety that frame type equipment accesses.
See the flow chart that Fig. 2, Fig. 2 are a kind of device access methods shown in the application one exemplary embodiment;Described
Method is applied to browser, specifically includes step as described below:
Step 201: when listening to user for the trigger action of pre-set user option, to presetting of main control board
Agent process sends the accessing page request for the slave control board configuration page, standby with described to trigger described agent process
The Page Service process of master control borad sets up the first connection, and described access request is sent out by the first connection by described agent process
Deliver to described Page Service process;
Step 202: receive sent and the described standby master that described agent process returns by described page server process
The configuration page data that control plate configuration page face is corresponding;
Step 203: show the slave control board configuration page corresponding with described configuration page data.
The embodiment of the present application mainly proposes a kind of method of slave control board configuration information remotely accessing frame type equipment.
Furthermore, it is understood that user can access the configuration page of the slave control board of frame type equipment on the browser of far-end, and can lead to
Cross this configuration page and return the configuration information that user needs to check.
When carrying out the access of slave control board of frame type equipment, the mode being typically readily apparent that is that browser is standby with this
Master control borad directly sets up connection, and in other words, user can step in remote browser directly by inputting corresponding URL address
The configuration page of land slave control board, and by operations such as this configuration page carry out that corresponding configuration information is checked.
But, in actual applications, the configuration information that slave control board synchronizes except being received main control board is with dynamic
Outside the operation of state list item, participate in any Business Processing hardly, so during main control board normally works,
The interface of slave control board is in the state of " down ", it is virtually impossible to participate in the work such as Business Processing.Now, pass through as user
After inputting corresponding URL address on browser, the configuration page of main control board may only be logged in, and cannot be corresponding by input
URL address, log in slave control board the configuration page.As can be seen here, directly pass through joining of browser access slave control board
Put the page to be difficulty with in actual applications.
The embodiment of the present application, it is provided that the access mechanism of a kind of new frame type equipment slave control board, by browser
The main control board configuration page on increase the pre-set user option that slave control board accesses, the primary master of frame type equipment
Presetting an agent process (such as proxy_proc process) on control plate, when user triggers this user option, this agent process can
Be connected setting up second by certain designated port (such as port_web port) with browser, it is possible to on slave control board
Page Service process (such as web_proc process) sets up the first connection.
The agent process of main control board can by second connection receive browser transmission for slave control board
The accessing page request of the configuration page, it is possible to connect the page clothes that this access request is forwarded to slave control board by first
Business process.The agent process of main control board will can be received from the Page Service process of slave control board by the first connection
To configuration page data be back to browser.After browser receives this configuration page data, can display to the user that this is joined
Put the page so that user can realize remote access slave control board configuration information by this configuration page.
When realizing, user can input the URL address of the master control configuration page on a web browser, and browser can show master
The page is configured with master control borad.The user the preset choosing accessing slave control board on the main control board configuration page is triggered user
Xiang Hou, browser can monitor the trigger action of this user option.When listening to user and triggering default user option, browse
Device can send the page access for the slave control board configuration page to the designated port of the main control board of frame type equipment please
Ask.
The agent process of main control board can monitor this designated port, sends out when this agent process listens to remote browser
Deliver to described designated port for slave control board configuration the page accessing page request time, this agent process can with browse
The second connection set up by device.
The agent process of main control board can receive this accessing page request by the second connection.Then, this act on behalf of into
Journey can be set up first with the Page Service process on slave control board and be connected.
Above-mentioned access request can be sent to the Page Service process of slave control board by the agent process of main control board.
After Page Service process receives above-mentioned request, can connect by first and return this accessing page request institute to main control board
The configuration page data needed.
After main control board receives above-mentioned configuration page data by first, can be by the second connection to far
End browser forwards this configuration page data.After browser receives this configuration page data, can be based on this configuration page
Data, show this configuration page.
Wherein, the above-mentioned configuration page is equivalent to " menu " page of configuration information, and this configuration page has one or many
Individual config option, each config option has corresponding configuration information, and user " can click on " config option according to demand,
Obtain its required configuration information.
Above-mentioned designated port, has " binding " relation, in other words, browser with the agent process of above-mentioned main control board
Being by this designated port, second set up with the agent process on main control board is connected.Furtherly, browser can be to
This designated port sends for the accessing page request accessing slave control board, and the agent process on main control board can be monitored
This designated port, when having listened to this accessing page request and having passed through, then can set up second and be connected with this browser.
Additionally, the agent process on main control board can be by this designated port and the Page Service on slave control board
The first connection that process is set up, it is also possible to set up first by other ports with process on slave control board and be connected.Here, no
Repeat again.
Connect for first and the second connection is completed by TCP three-way handshake, here repeat no more.
Here, what deserves to be explained is, at the agent process of browser Yu main control board, the agency of main control board enters
The Page Service process of journey and slave control board is set up during being connected, and the way being typically readily apparent that is the company of foundation in advance
Connect, then carrying out the mutual of association requests and request data.If but establish connection in advance, the CPU of equipment it is possible to
Need monitor the data interaction in the connection established in real time, when connection on there is no data interaction for a long time time, CPU remain a need for into
Row is monitored, and this most greatly wastes the process resource of CPU.
And in the embodiment of the present application, the agent process of main control board uses and first receives accessing page request, resettle
The mode connected.In other words, when needing to set up data interaction, resettle connection.When this agent process listens to above-mentioned finger
When fixed end mouth receives this accessing page request, set up second with browser and be connected, then set up with above-mentioned Page Service process
One connects.Further, when there is not data interaction in connection in the range of certain time, this connection can be aging.If needed
Want re-request data, then need to re-establish connection.Adopt in such a way, when can be effectively prevented from occurring connecting the longest
Between data interaction does not occurs, and CPU is still in the situation of listening state.Therefore, it can be effectively improved CPU and process the profit of resource
By rate.
In the present embodiment, when listening to user for the trigger action of pre-set user option, to main control board
Designated port sends the accessing page request for the slave control board configuration page;When described agent process listens to send to institute
When stating the described accessing page request of designated port, set up second with described agent process and be connected;By described second connect to
Described agent process sends the accessing page request for the slave control board configuration page.
When realizing, after user conducts interviews slave control board configuration page data manipulation, browser can show
State the configuration page for slave control board.User can be by corresponding for " clicking on " on the configuration page of slave control board
Config option, trigger corresponding configuration access operation.When browser listens to the trigger action that this config option occurs, clear
Device of looking at can send the configuration visit of the configuration information for slave control board to the agent process of the main control board of frame type equipment
Ask request, in order to access the configuration information on slave control board.
After the agent process of main control board receives this configuration access request, this configuration access request can be transmitted to
The Page Service process of slave control board.After the Page Service process of slave control board receives this configuration access request, permissible
The configuration information asked is returned to the agent process of main control board.
This configuration information can be transmitted to browser by the agent process of main control board so that user can be to standby master
The configuration information of control plate is remotely checked or slave control board is carried out Remote configuration operation.
By above example, when receiving user's access request instruction for the slave control board configuration page,
Browser can send the accessing page request for the slave control board configuration page to the default agent process of main control board,
It is connected so that described default agent process sets up first with the Page Service process of described slave control board, and makes to preset agency
Described access request is sent to described Page Service process by process by the first connection;Receive at described default agent process
After the described Page Service process configuration page data corresponding with described access request by the first connection return, receive described
Preset the configuration page data that agent process returns;Show the configuration page corresponding with described configuration page data.
Due to the default agent process of the main control board of this frame type equipment can receive browser send for standby
The accessing page request of the master control borad configuration page, it is possible to set up first even with the Page Service process of described slave control board
Connect.This default agent process can receive, by the first connection, the configuration page data that slave control board returns, it is possible to should
Configuration page data is back to remote browser, is checked the configuration information of slave control board by browser for user, so that
User without being checked the configuration information of slave control board by serial ports to scene, but be remotely logged into standby by browser
The configuration page of master control borad, remotely checks or configures the configuration information of slave control board.
Corresponding with the embodiment of aforementioned device access method, the equipment that present invention also provides accesses the embodiment of device.
The application equipment accesses the embodiment of device and can apply on frame type equipment and browser.Device embodiment is permissible
Realized by software, it is also possible to realize by the way of hardware or software and hardware combining.As a example by implemented in software, patrol as one
Collect the device in meaning, be that the processor by its place equipment is by computer program instructions corresponding in nonvolatile memory
Read and internal memory runs formation.For hardware view, as it is shown on figure 3, access device place frame for the application equipment
A kind of hardware structure diagram of equipment, as shown in Figure 4, accesses a kind of hardware configuration of device place browser for the application equipment
Figure, in addition to the processor shown in Fig. 3 and Fig. 4, internal memory, network interface and nonvolatile memory, device in embodiment
The actual functional capability that the frame type equipment at place and browser access generally according to this equipment, it is also possible to include other hardware, to this not
Repeat again.
Refer to Fig. 5, Fig. 5 is the block diagram that a kind of equipment shown in the application one exemplary embodiment accesses device, described
Device is applied to frame type equipment, specifically includes:
Receive unit 510, receive, by the agent process preset, the pin that remote browser sends for main control board
Accessing page request to the slave control board configuration page;
Set up unit 520, in response to described accessing page request, described agent process and described slave control board
Page Service process sets up the first connection;
Retransmission unit 530, is forwarded to described accessing page request by described first connection for described agent process
Described Page Service process;And receive described Page Service process by first connection return corresponding with described access request
Configuration page data;
Return unit 540, for described agent process, described configuration page data is back to browser, with at browser
Show the configuration page corresponding with described configuration page data.
In an optional embodiment, described reception unit 510, specifically for the default agency of described main control board
Process monitors designated port;The described page that described browser sends is received when described agent process listens to described designated port
During the access request of face, set up second with described browser and be connected;It is clear that described agent process receives described far-end by the second connection
The described accessing page request that device of looking at sends.
Refer to Fig. 6, Fig. 6 is the block diagram that a kind of equipment shown in the application one exemplary embodiment accesses device, described
Device includes:
Transmitting element 610, for when listening to user for the trigger action of pre-set user option, to main control board
Preset agent process send for slave control board configuration the page accessing page request, with trigger described agent process with
The Page Service process of described slave control board sets up the first connection, and is connected described visit by first by described agent process
The request of asking sends to described Page Service process;
Return unit 620, for receive described agent process return sent by described page server process with institute
State the configuration page data that slave control board configuration page face is corresponding;
Display unit 630, for the slave control board configuration page that display is corresponding with described configuration page data.
In said apparatus, the function of unit and the process that realizes of effect specifically refer to corresponding step in said method
Realize process, do not repeat them here.
For device embodiment, owing to it corresponds essentially to embodiment of the method, so relevant part sees method in fact
The part executing example illustrates.Device embodiment described above is only schematically, wherein said as separating component
The unit illustrated can be or may not be physically separate, and the parts shown as unit can be or can also
It not physical location, i.e. may be located at a place, or can also be distributed on multiple NE.Can be according to reality
Need to select some or all of module therein to realize the purpose of the application scheme.Those of ordinary skill in the art are not paying
In the case of going out creative work, i.e. it is appreciated that and implements.
The foregoing is only the preferred embodiment of the application, not in order to limit the application, all essences in the application
Within god and principle, any modification, equivalent substitution and improvement etc. done, should be included within the scope of the application protection.
Claims (10)
1. a device access method, it is characterised in that described method is applied to frame type equipment, described frame type equipment includes primary
Master control borad and one or more slave control board, described method includes:
Main control board configures the page by what the agent process preset received that remote browser sends for slave control board
Accessing page request;
Page Service process in response to described accessing page request, described agent process and described slave control board sets up first
Connect;
Described agent process connects, by described first, the described Page Service process that described accessing page request is forwarded to;And connect
Receive the configuration page data corresponding with described access request that described Page Service process is returned by the first connection;
Described configuration page data is back to browser by described agent process, with at browser display and described configuration page number
According to the corresponding configuration page.
Method the most according to claim 1, it is characterised in that described main control board is received by the agent process preset
The accessing page request for the slave control board configuration page sent to remote browser, including:
The default agent process of described main control board monitors designated port;
When described agent process listen to remote browser send to described designated port for slave control board configure the page
Accessing page request time, set up second with described remote browser and be connected;Wherein, described accessing page request, by described far
End browser listens to user and triggers for during the trigger action of pre-set user option;
Described agent process receives described accessing page request by the second connection.
Method the most according to claim 1, it is characterised in that described method also includes:
Described agent process receives the configuration access request for described slave control board that described browser sends, and passes through institute
State the first connection to send described configuration access request to described Page Service process;Wherein, described configuration access request by with
Family is triggered for the trigger action of the preset configuration option in the described configuration page;
Described agent process receives the configuration information corresponding with described configuration access request that described Page Service process returns, and
Described configuration information is back to described browser.
Method the most according to claim 1, it is characterised in that described method also includes:
When described agent process receives the accessing page request configuring the page for slave control board that remote browser sends,
Verify whether the login user corresponding with described accessing page request has the access rights of the configuration page of slave control board;As
Fruit is to respond described accessing page request.
5. a device access method, it is characterised in that described method is applied to browser, described method includes:
When listening to user for the trigger action of pre-set user option, send to the agent process preset of main control board
For the accessing page request of the slave control board configuration page, to trigger the page of described agent process and described slave control board
Service processes sets up the first connection, and is sent described access request to the described page by the first connection by described agent process
Service processes;
Receive described agent process return sent by described page server process with described slave control board configure the page
Corresponding configuration page data;
Show the slave control board configuration page corresponding with described configuration page data.
Method the most according to claim 5, it is characterised in that described when listening to user's touching for pre-set user option
When sending out operation, sending the page access for the slave control board configuration page to the agent process preset of main control board please
Ask, including:
When listening to user for the trigger action of pre-set user option, send for standby to the designated port of main control board
Accessing page request with the master control borad configuration page;
When described agent process listens to the described accessing page request sent to described designated port, with described agent process
Set up the second connection;
Connect by described second and send the accessing page request for the slave control board configuration page to described agent process.
Method the most according to claim 5, it is characterised in that described method also includes:
When listening to the trigger action for the preset configuration option in the described configuration page, send pin to described agent process
Configuration access to described slave control board is asked, so that described agent process connects described configuration access by described first
Request is forwarded to described Page Service process;
Connect by described second and receive being joined with described by what described page server process sent of described agent process return
Put the configuration information that access request is corresponding.
8. an equipment accesses device, it is characterised in that described device includes:
Receive unit, for main control board by default agent process receive that remote browser sends for standby master
The accessing page request of the control plate configuration page;
Setting up unit, in response to described accessing page request, described agent process takes with the page of described slave control board
Business process sets up the first connection;
Retransmission unit, is forwarded to the described page by described first connection by described accessing page request for described agent process
Service processes;And receive the configuration page corresponding with described access request that described Page Service process is returned by the first connection
Data;
Return unit, for described agent process, described configuration page data is back to browser, with browser display with
The configuration page that described configuration page data is corresponding.
Device the most according to claim 8, it is characterised in that described reception unit, specifically for described main control board
Default agent process monitor designated port;
When described agent process listen to remote browser send to described designated port for slave control board configure the page
Accessing page request time, set up second with described remote browser and be connected;Wherein, described accessing page request, by described far
End browser listens to user and triggers for during the trigger action of pre-set user option;Described agent process connects by second
Receive described accessing page request.
10. an equipment accesses device, it is characterised in that described device includes:
Transmitting element, for when listening to user for the trigger action of pre-set user option, presetting to main control board
Agent process send for slave control board configuration the page accessing page request, standby with described to trigger described agent process
Set up the first connection by the Page Service process of master control borad, and connected described access request by first by described agent process
Send to described Page Service process;
Return unit, for receiving sent and the described standby master that described agent process returns by described page server process
The configuration page data that control plate configuration page face is corresponding;
Display unit, for the slave control board configuration page that display is corresponding with described configuration page data.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610837706.2A CN106254156B (en) | 2016-09-21 | 2016-09-21 | Equipment access method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610837706.2A CN106254156B (en) | 2016-09-21 | 2016-09-21 | Equipment access method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106254156A true CN106254156A (en) | 2016-12-21 |
CN106254156B CN106254156B (en) | 2020-02-11 |
Family
ID=57599086
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610837706.2A Active CN106254156B (en) | 2016-09-21 | 2016-09-21 | Equipment access method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106254156B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111294219A (en) * | 2018-12-06 | 2020-06-16 | 杭州海康威视系统技术有限公司 | Terminal configuration method and device |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20060031454A1 (en) * | 1996-07-23 | 2006-02-09 | Ewing Carrel W | Network-connected power manager for rebooting remote computer-based appliances |
CN101043368A (en) * | 2006-06-30 | 2007-09-26 | 华为技术有限公司 | Method and system for unifying Web pages |
CN101102219A (en) * | 2007-07-30 | 2008-01-09 | 华为技术有限公司 | Software update system and software update method |
-
2016
- 2016-09-21 CN CN201610837706.2A patent/CN106254156B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20060031454A1 (en) * | 1996-07-23 | 2006-02-09 | Ewing Carrel W | Network-connected power manager for rebooting remote computer-based appliances |
CN101043368A (en) * | 2006-06-30 | 2007-09-26 | 华为技术有限公司 | Method and system for unifying Web pages |
CN101102219A (en) * | 2007-07-30 | 2008-01-09 | 华为技术有限公司 | Software update system and software update method |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111294219A (en) * | 2018-12-06 | 2020-06-16 | 杭州海康威视系统技术有限公司 | Terminal configuration method and device |
Also Published As
Publication number | Publication date |
---|---|
CN106254156B (en) | 2020-02-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
TWI517106B (en) | Method, system and apparatus for activation of a home security, monitoring and automation controller | |
US8990775B2 (en) | Collaborative software debugging in a distributed system with dynamically displayed chat sessions | |
US7962567B1 (en) | Systems and methods for disabling an array port for an enterprise | |
US11392873B2 (en) | Systems and methods for simulating orders and workflows in an order entry and management system to test order scenarios | |
US20120203870A1 (en) | Concurrent Web Based Multi-Task Support For Control Management System | |
EP2917838A2 (en) | Monitoring and control of computer apparatus and virtual machine via a network | |
CN112671907B (en) | Terminal equipment debugging method and device, terminal equipment and storage medium | |
JP5970559B2 (en) | Remote network management system and operation method thereof | |
US20020111999A1 (en) | System and method for remote control of software and an attached device | |
JP2015116757A (en) | Injection molding machine which is operable from network terminal | |
JP2011090512A (en) | Monitoring device, monitoring method, and monitoring program | |
US9392006B2 (en) | Method and apparatus for management and troubleshooting of a processing system | |
US10506051B2 (en) | Remote system monitor | |
US7877646B2 (en) | Method and system for monitoring a computing device | |
CN106254156A (en) | device access method and device | |
US20150304237A1 (en) | Methods and systems for managing access to a location indicated by a link in a remote access system | |
AU2004211267A1 (en) | System and method for self-supporting applications | |
CN109379383B (en) | Virtual private network VPN client and implementation method | |
Hung et al. | Development of an interface C framework for semiconductor e-diagnostics systems | |
KR20190099162A (en) | Hub device with diagnostic function and diagnostic method using the same | |
JP2016200961A (en) | Server failure monitoring system | |
KR100803538B1 (en) | Method of and system for rcovering faults of embedded terminal by remote control | |
JP5244781B2 (en) | Web server and method | |
JPH10107792A (en) | Server monitor | |
JP5433219B2 (en) | Cluster system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information | ||
CB02 | Change of applicant information |
Address after: Binjiang District and Hangzhou city in Zhejiang Province Road 310051 No. 68 in the 6 storey building Applicant after: Hangzhou Dipu Polytron Technologies Inc Address before: Binjiang District and Hangzhou city in Zhejiang Province Road 310051 No. 68 in the 6 storey building Applicant before: Hangzhou Dipu Technology Co., Ltd. |
|
GR01 | Patent grant | ||
GR01 | Patent grant |