CN104202432B - Remote web management system and management method - Google Patents

Remote web management system and management method Download PDF

Info

Publication number
CN104202432B
CN104202432B CN201410506702.7A CN201410506702A CN104202432B CN 104202432 B CN104202432 B CN 104202432B CN 201410506702 A CN201410506702 A CN 201410506702A CN 104202432 B CN104202432 B CN 104202432B
Authority
CN
China
Prior art keywords
web
command line
processing module
http request
request 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
CN201410506702.7A
Other languages
Chinese (zh)
Other versions
CN104202432A (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.)
Shenzhen Chenggu Software Co.,Ltd.
Original Assignee
Shanghai Feixun Data Communication Technology 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 Shanghai Feixun Data Communication Technology Co Ltd filed Critical Shanghai Feixun Data Communication Technology Co Ltd
Priority to CN201410506702.7A priority Critical patent/CN104202432B/en
Publication of CN104202432A publication Critical patent/CN104202432A/en
Application granted granted Critical
Publication of CN104202432B publication Critical patent/CN104202432B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a remote web management system and a management method, wherein the remote web management system comprises: the terminal equipment, carry out the embedded equipment of communication with terminal equipment. A method of remote web management, the method comprising: s1, the user initiates an http request to the embedded device through the terminal device; s2, the web process processing module of the embedded device controls the web process therein, the console process processing module controls the console process therein to receive and process the http request respectively; and S3, the embedded device sends the processed http request to the terminal device. The remote web management method provided by the invention enables a user to input command line data through a web browser of the terminal equipment, and realizes command line login management of the embedded equipment. The problem that in the prior art, the terminal equipment needs to manage the embedded equipment through the remote web by developing a whole set of web service system is avoided; the invention can reduce the development cost and realize the remote web management method at low cost.

Description

Remote web management system and management method
Technical Field
The invention relates to a terminal remote management scheme, in particular to a remote web management system and a management method.
Background
Most embedded devices (such as switches, routers, etc.) need to provide remote management, the two most common of which are: firstly, command line login management. And secondly, web login management. The command line login management mode includes telnet and ssh, which both need to run client software to run. Under the web login management mode, the embedded device responds to the request of the user by returning an http page.
With the development of modern technologies, mobile terminals become more and more popular, and remote login of mobile terminals to embedded devices becomes completely feasible. However, in the prior art, the mobile terminal generally has no client programs of telnet and ssh, but has a web browser, so that the mobile terminal can log in to the embedded device by using the web browser. However, most embedded devices support command line login, and do not necessarily support web login, and therefore, implementing a complete set of web services consumes significant development costs.
Disclosure of Invention
The invention aims to provide a remote web management system and a remote web management method, wherein the remote web management system and the remote web management method are characterized in that a terminal device is communicated with an embedded device, the terminal device sends a first http request message with command line request data to the embedded device, the embedded device processes the command line request data in the first http request message, and returns a processing result to the terminal device through a second http request message in a command line data form. The user can input command line data through a web browser of the terminal equipment, and the command line login management of the embedded equipment is realized. The problem that in the prior art, the terminal equipment needs to manage the embedded equipment through the remote web by developing a whole set of web service system is avoided; the invention can reduce the development cost and realize the remote web management method at low cost.
In order to achieve the purpose, the invention is realized by the following technical scheme:
the invention provides a remote web management method, which is characterized by comprising the following steps:
s1, the user initiates an http request to the embedded device through the terminal device;
s2, the web process processing module of the embedded device controls the web process therein, the console process processing module controls the console process therein to receive and process the http request respectively;
and S3, the embedded device sends the processed http request to the terminal device.
Preferably, the step S1 includes the following steps:
a user inputs an IP address and command line request data of the embedded equipment through a web browser of the terminal equipment;
and the terminal equipment encapsulates the IP address and the command line request data into a first http request message and sends the first http request message to the embedded equipment.
Preferably, the step S2 includes the following steps:
s2.1, the web process processing module controls a web process in the web process processing module to receive and process the first http request message, and sends processed command line request data to the console process processing module;
s2.2, the console process processing module controls the console process in the console process processing module to receive and process command line request data sent by the web process processing module, and sends request result data to the web process processing module.
Preferably, said step S2.1 comprises the steps of:
the web process processing module receives a first http request message;
and the web process processing module controls a web process in the web process processing module to analyze the first http request message, acquires command line request data in the first http request message, and sends the command line request data to the console process processing module.
Preferably, said step S2.2 comprises the steps of:
and the console process processing module controls the console process to process the command in the command line request data and sends the processing result as command line request result data to the web process processing module.
Preferably, the step S3 includes the following steps:
the web process processing module acquires command line request result data, takes the command line request result data as command line request data, and encapsulates the command line request result data and other information in the first http request message to form a second http request message;
and the embedded equipment sends the second http request message to the terminal equipment, so that the command line request result of the first http request message is displayed to the terminal equipment.
Preferably, the step S1 further includes the following steps:
and when the terminal equipment communicates with the embedded equipment for the first time, the user only encapsulates the IP address of the embedded equipment into a first http request message.
Preferably, the step S2 further includes the following steps:
when the web process of the web process processing module receives and processes the first http request message of the terminal equipment and when the first http request message is analyzed to have no command line request data, the terminal equipment is judged to be communicated with the embedded equipment for the first time;
the web process processing module takes the sent first communication character as command line request data to the console process processing module;
the console process processing module receives the command line request data, checks the content of the command line request data as a first communication character, and returns information with a command line login webpage as command line request result data to the web process processing module.
Preferably, the step S3 further includes the following steps:
the web process processing module acquires command line request result data, takes information with a command line login webpage as command line request data, and encapsulates the command line request data and other information in the first http request message to form a second http request message;
and the embedded equipment sends the second http request message to the terminal equipment, so that a login webpage with a command line is displayed to the terminal equipment.
The invention also provides a remote web management system, which is characterized by comprising the following components:
a terminal device;
the embedded equipment is communicated with the terminal equipment;
the embedded device is internally provided with a web process processing module and a console process processing module which are connected in sequence; and the terminal equipment is communicated with the web process processing module.
Compared with the prior art, the invention has the following advantages:
the remote web management system and the management method provided by the invention can enable a user to input command line data through a web browser of the terminal equipment, thereby realizing the command line login management of the embedded equipment. The problem that in the prior art, the terminal equipment needs to manage the embedded equipment through the remote web by developing a whole set of web service system is avoided; the invention can reduce the development cost and efficiently realize the remote web management method.
Drawings
Fig. 1 is an overall flowchart of a remote web management method according to the present invention.
Detailed Description
The present invention will now be further described by way of the following detailed description of a preferred embodiment thereof, taken in conjunction with the accompanying drawings.
A remote web management system, the system comprising: a terminal device; the embedded equipment is communicated with the terminal equipment;
the embedded device is internally provided with a web process processing module and a console process processing module which are connected in sequence; the terminal device communicates with the web process processing module.
In the invention, the terminal equipment can adopt a mobile terminal, such as a mobile phone, a tablet personal computer and the like, and can also adopt a desktop computer. The embedded device may employ a router or a switch.
As shown in fig. 1, one embodiment of a remote web management method of the present invention is as follows:
and S1, the user initiates an http request to the embedded device through the terminal device. The step S1 includes the following steps:
the user inputs the IP address and the command line request data of the embedded device through the web browser of the terminal device.
And the terminal equipment encapsulates the IP address and the command line request data into a first http request message and sends the first http request message to the embedded equipment.
In this embodiment, the first http request packet includes: a request line, a request header, and request data; and the user inputs the command line request data into the request data of the first http request message through the web browser of the terminal equipment.
The command line request data in this embodiment includes: and setting command line data of the embedded equipment by the terminal equipment according to actual user requirements, such as port security setting, port mode setting, loop detection setting and the like.
The port security can be set to single user or multi-user, the port mode can be set to Access or Trunk, and the loop detection can be set to be on or off. In this embodiment, the user sets the port security to a single user, the port mode to Access, and the loop detection to off.
In actual use, the setting information of the terminal device is not limited to the above port security setting, port mode setting, and loop detection setting, but may also include other setting information.
S2, the web process processing module of the embedded device controls its internal web process, and the console process processing module controls its internal console process to receive and process the http request. The step S2 includes the following steps:
s2.1, the web process processing module controls a web process in the web process processing module to receive and process the first http request message, and sends processed command line request data to the console process processing module; this step S2.1 comprises the following steps:
a web process of the embedded equipment receives a first http request message;
and the web process processing module controls a web process in the web process processing module to analyze the first http request message, acquires command line request data in the first http request message, and sends the command line request data to the console process processing module.
In this embodiment, the web process extracts command line request data including port security setting, port mode setting, and loop detection setting in the first http request packet, and sends the data including the setting-required information to the console process.
S2.2, the console process processing module controls the console process in the console process processing module to receive and process the command line request data sent by the web process processing module, and sends the request result data to the web process processing module. This step S2.2 comprises the following steps:
and the console process processing module controls the console process to process the command in the command line request data and sends the processing result as command line request result data to the web process processing module.
In this embodiment, when the port security required by the terminal device is set to be a single user, the port mode is set to be Access, and the loop detection is set to be closed, the console process performs processing according to the setting requirement of the terminal device. When the console process can realize that the port security in the first http request message is set as a single user, the port mode is set as Access, and the loop detection cannot be realized and the loop detection is set as closed, the request result data of the returned command line is as follows: the information of successful port security setting, successful port mode setting and failed loop detection setting.
And S3, the embedded device sends the processed http request to the terminal device. The step S3 includes the following steps:
and the web process processing module acquires the command line request result data, takes the command line request result data as command line request data, and encapsulates the command line request result data and the rest information in the first http request message to form a second http request message.
And the embedded equipment sends the second http request message to the terminal equipment, so that the command line request result of the first http request message is displayed to the terminal equipment.
In this embodiment, the information of "successful port security setting, successful port mode setting, and failed loop detection setting" processed by the console process is used as the command line request data, and is encapsulated with the IP address and other information of the embedded device included in the first http request message to form the second http request message.
And sending the second http request message to the terminal device, and displaying that the port security setting is successful, the port mode setting is successful, and the loop detection setting is failed in a web browser of the terminal device.
The second embodiment of the remote web management method of the present invention is as follows:
when the terminal equipment communicates with the embedded equipment for the first time, the user only encapsulates the IP address of the embedded equipment into a first http request message.
And when the web process of the web process processing module receives and processes the first http request message of the terminal equipment and analyzes that no command line request data exists in the first http request message, judging that the terminal equipment is communicated with the embedded equipment for the first time.
And the web process processing module sends the first communication character as command line request data to the console process processing module.
In this embodiment, the web process processing module controls the web process to send a carriage return character as a first communication character to the console process module.
The console process receives the command line request data, and returns information with a command line login webpage as command line request result data to the web process when the content of the command line request data is checked to be the first communication character.
In this embodiment, when the command line request data is checked to be the enter character by the console process, the information command line request result data with the command line login webpage is sent to the web process.
And the web process processing module acquires the command line request result data, takes the information with the command line login webpage as the command line request data, and encapsulates the command line request data and the rest information in the first http request message to form a second http request message.
And the embedded equipment sends the second http request message to the terminal equipment, so that a login webpage with a command line is displayed to the terminal equipment.
In this embodiment, when the terminal device logs in the embedded device for the first time and communicates with the embedded device, the embedded device returns the web login page to the web browser of the terminal device, so that the user can input the setting information into the web login page according to specific needs to perform subsequent communication with the embedded device.
While the present invention has been described in detail with reference to the preferred embodiments, it should be understood that the above description should not be taken as limiting the invention. Various modifications and alterations to this invention will become apparent to those skilled in the art upon reading the foregoing description. Accordingly, the scope of the invention should be determined from the following claims.

Claims (6)

1. A method for remote web management, the method comprising the steps of:
s1, the user initiates an http request to the embedded device through the terminal device;
the step S1 further includes the following steps: when the terminal equipment communicates with the embedded equipment for the first time, a user only encapsulates the IP address of the embedded equipment into a first http request message;
s2, the web process processing module of the embedded device controls the web process therein, the console process processing module controls the console process therein to receive and process the http request respectively;
s2.1, the web process processing module controls a web process in the web process processing module to receive and process the first http request message, and sends processed command line request data to the console process processing module;
s2.2, the console process processing module controls the console process in the console process processing module to receive and process command line request data sent by the web process processing module, and sends request result data to the web process processing module;
when the web process of the web process processing module receives and processes the first http request message of the terminal equipment and when the first http request message is analyzed to have no command line request data, the terminal equipment is judged to be communicated with the embedded equipment for the first time;
the web process processing module takes the sent first communication character as command line request data to the console process processing module;
the console process processing module receives the command line request data, checks the content of the command line request data as a first communication character, and returns information with a command line login webpage as command line request result data to the web process processing module;
s3, the embedded device sends the http request after processing to the terminal device;
the web process processing module acquires command line request result data, takes the command line request result data as command line request data, and encapsulates the command line request result data and other information in the first http request message to form a second http request message;
and the embedded equipment sends the second http request message to the terminal equipment, so that the command line request result of the first http request message is displayed to the terminal equipment.
2. The remote web management method according to claim 1, wherein said step S1 includes the steps of:
a user inputs an IP address and command line request data of the embedded equipment through a web browser of the terminal equipment;
and the terminal equipment encapsulates the IP address and the command line request data into a first http request message and sends the first http request message to the embedded equipment.
3. A remote web management method according to claim 1, characterised in that said step S2.1 comprises the steps of:
the web process processing module receives a first http request message;
and the web process processing module controls a web process in the web process processing module to analyze the first http request message, acquires command line request data in the first http request message, and sends the command line request data to the console process processing module.
4. A remote web management method according to claim 3, characterised in that said step S2.2 comprises the steps of:
and the console process processing module controls the console process to process the command in the command line request data and sends the processing result as command line request result data to the web process processing module.
5. The remote web management method according to claim 4, wherein said step S3 further comprises the steps of:
the web process processing module acquires command line request result data, takes information with a command line login webpage as command line request data, and encapsulates the command line request data and other information in the first http request message to form a second http request message;
and the embedded equipment sends the second http request message to the terminal equipment, so that a login webpage with a command line is displayed to the terminal equipment.
6. A remote web management system, the system comprising:
a terminal device;
the embedded equipment is communicated with the terminal equipment;
the embedded device is internally provided with a web process processing module and a console process processing module which are connected in sequence; the terminal equipment is communicated with the web process processing module;
when the terminal equipment communicates with the embedded equipment for the first time, a user only encapsulates the IP address of the embedded equipment into a first http request message;
when the web process of the web process processing module receives and processes the first http request message of the terminal equipment and when the first http request message is analyzed to have no command line request data, the terminal equipment is judged to be communicated with the embedded equipment for the first time;
the web process processing module takes the sent first communication character as command line request data to the console process processing module;
the console process processing module receives the command line request data, checks the content of the command line request data as a first communication character, and returns information with a command line login webpage as command line request result data to the web process processing module;
the web process processing module acquires command line request result data, takes the command line request result data as command line request data, and encapsulates the command line request result data and other information in the first http request message to form a second http request message;
and the embedded equipment sends the second http request message to the terminal equipment, so that the command line request result of the first http request message is displayed to the terminal equipment.
CN201410506702.7A 2014-09-28 2014-09-28 Remote web management system and management method Active CN104202432B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410506702.7A CN104202432B (en) 2014-09-28 2014-09-28 Remote web management system and management method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410506702.7A CN104202432B (en) 2014-09-28 2014-09-28 Remote web management system and management method

Publications (2)

Publication Number Publication Date
CN104202432A CN104202432A (en) 2014-12-10
CN104202432B true CN104202432B (en) 2020-01-07

Family

ID=52087657

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410506702.7A Active CN104202432B (en) 2014-09-28 2014-09-28 Remote web management system and management method

Country Status (1)

Country Link
CN (1) CN104202432B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105049217A (en) * 2015-06-17 2015-11-11 上海斐讯数据通信技术有限公司 Method and system for controlling debugging interface of intelligent network equipment
CN105490861A (en) * 2015-12-30 2016-04-13 中国普天信息产业北京通信规划设计院 System and method of management of network management device
CN108881480A (en) * 2018-07-25 2018-11-23 江西山水光电科技股份有限公司 A kind of method that webmastering software is interacted with equipment Telnet under B/S framework

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103116519A (en) * 2011-11-17 2013-05-22 深圳市共进电子股份有限公司 Method of controlling embedded device and WEB embedded system

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103116519A (en) * 2011-11-17 2013-05-22 深圳市共进电子股份有限公司 Method of controlling embedded device and WEB embedded system

Also Published As

Publication number Publication date
CN104202432A (en) 2014-12-10

Similar Documents

Publication Publication Date Title
US10028319B2 (en) Wi-fi connection method and wi-fi connection system for mobile terminal
CN104767775B (en) Web application information push method and system
KR102110698B1 (en) Terminal interconnection method, device and storage medium
CN106330844B (en) Cross-terminal login-free method and device
CN104869043B (en) A kind of method and terminal for establishing VPN connection
US20150289301A1 (en) Terminal matching method, terminal and system
US20140214963A1 (en) Method, server and system for data sharing in social networking service
CN104202432B (en) Remote web management system and management method
CN105744646B (en) A kind of mobile terminal and communication means
CN104270404A (en) Login method and device based on terminal identification
CN102904959A (en) Network accelerating method and gateway
WO2012155994A1 (en) Anonymous signalling
WO2015021873A1 (en) Method, platform server, and system of data pushing
CN105611422A (en) Online live broadcast method based on multi-media list and apparatus thereof
CN104270204A (en) Testing method and testing equipment for wireless communication module
CN105530232B (en) Account login method and device
CN104702564A (en) Tethering user identification method and device
CN106406947B (en) The method and device that prevents system service process from restarting, mobile terminal
CN103561063A (en) Method and terminal for logging onto set top box
CN102932470A (en) Method and system of controlling computer terminal by handheld device
US10375141B2 (en) Method for processing URL and associated server and non-transitory computer readable storage medium
CN107071750B (en) Information transmission method and device, terminal equipment and storage medium
US10425977B2 (en) Wi-Fi connection method and Wi-Fi connection system for mobile terminal
CN107465723B (en) Multi-screen interactive connection method and system, mobile terminal and readable storage medium
CN105933339B (en) A kind of application login method and mobile terminal

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20201125

Address after: Room 10242, No. 260, Jiangshu Road, Xixing street, Binjiang District, Hangzhou City, Zhejiang Province

Patentee after: Hangzhou Jiji Intellectual Property Operation Co., Ltd

Address before: 201620 Shanghai city Songjiang District Sixian Road No. 3666

Patentee before: Phicomm (Shanghai) Co.,Ltd.

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20201209

Address after: Xinlian Creative Park, No.70, Matai street, Hunan Road Street, Gulou District, Nanjing City, Jiangsu Province

Patentee after: Shen Shuangli

Address before: Room 10242, No. 260, Jiangshu Road, Xixing street, Binjiang District, Hangzhou City, Zhejiang Province

Patentee before: Hangzhou Jiji Intellectual Property Operation Co., Ltd

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20210416

Address after: 518000 Baihua community, Guangming Street, Guangming District, Shenzhen City, Guangdong Province 406

Patentee after: Shenzhen Chenggu Software Co.,Ltd.

Address before: Xinlian Creative Park, No.70, Matai street, Hunan Road Street, Gulou District, Nanjing City, Jiangsu Province

Patentee before: Shen Shuangli