CN106301902A - A kind of remote network management method based on B/S framework and system - Google Patents
A kind of remote network management method based on B/S framework and system Download PDFInfo
- Publication number
- CN106301902A CN106301902A CN201610647630.7A CN201610647630A CN106301902A CN 106301902 A CN106301902 A CN 106301902A CN 201610647630 A CN201610647630 A CN 201610647630A CN 106301902 A CN106301902 A CN 106301902A
- Authority
- CN
- China
- Prior art keywords
- network
- configuration information
- network configuration
- operational order
- information operational
- 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.)
- Pending
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/02—Standardisation; Integration
- H04L41/0246—Exchanging or transporting network management information using the Internet; Embedding network management web servers in network elements; Web-services-based protocols
- H04L41/0253—Exchanging or transporting network management information using the Internet; Embedding network management web servers in network elements; Web-services-based protocols using browsers or web-pages for accessing management information
Abstract
The invention discloses a kind of remote network management method based on B/S framework, based on web page server, including: receive the network configuration information operational order that browser client sends;According to described network configuration information operational order, call NetworkManager and manage instrument, respond described network configuration information operational order by described management instrument, and response results is returned described browser client;Invention additionally discloses a kind of remote network management system to include: browser client, web page server;Visible, in the present embodiment, user can inquire about at far-end and manage the network configuration information of server by browser client, JSON data format transmission network configuration information by agreement, make user pass through browser client and just can obtain and manage the network information of operating system, it is achieved the most convenient network is managed.
Description
Technical field
The present invention relates to computer network field, more particularly, it relates to a kind of Remote Management of Network based on B/S framework
Method and system.
Background technology
At present, system maintenance is an important process of operation maintenance personnel, and the stable operation for service plays most important
Effect.And network management is the pith in system maintenance, it is related to connectedness and the stability of service of network, has
Effect property.From the point of view of Unix/Linux server, traditional network management is carried out by shell-command row, the most right
Operation maintenance personnel has certain technology requirement, on the other hand timely and effective can not check network state intuitively.
Therefore, the most convenient network is managed, is those skilled in the art's problems of needing to solve.
Summary of the invention
It is an object of the invention to provide a kind of remote network management method based on B/S framework and system, to realize having
Imitate and convenient network is managed.
For achieving the above object, following technical scheme is embodiments provided:
A kind of remote network management method based on B/S framework, based on web page server, including:
Receive the network configuration information operational order that browser client sends;
According to described network configuration information operational order, call NetworkManager and manage instrument, by described management
Instrument responds described network configuration information operational order, and response results returns described browser client.
Wherein, the network configuration information operational order that described reception browser client sends, including:
If described network configuration information operational order is network configuration query statement, then by net described in GET interface
Network configuration querying instructs.
Wherein, according to described network configuration information operational order, call NetworkManager and manage instrument, by described
Management instrument responds described network configuration information operational order, and response results returns described browser client, including:
If described network configuration information operational order is network configuration query statement, then by managing described in dbus interface interchange
Science and engineering has, and obtains the network configuration information of operating system, and returns described browser client with JSON form.
Wherein, the network configuration information operational order that described reception browser client sends, including:
If described network configuration information operational order is network configuration amendment instruction, then by net described in PUT interface
Network configuration querying instructs.
Wherein, according to described network configuration information operational order, call NetworkManager and manage instrument, by described
Management instrument responds described network configuration information operational order, and response results returns described browser client, including:
If described network configuration information operational order is network configuration amendment instruction, then by managing described in dbus interface interchange
Science and engineering has, and is write the amendment data that the amendment instruction of described network configuration is carried to operating system by described management instrument, and
Result is returned to described browser client with JSON form.
Wherein, the network configuration information operational order that described reception browser client sends, including:
If described network configuration information operational order is network adds instruction, then added by network described in POST interface
Add instruction.
Wherein, according to described network configuration information operational order, call NetworkManager and manage instrument, by described
Management instrument responds described network configuration information operational order, and response results returns described browser client, including:
Instruction is added, then by managing work described in dbus interface interchange if described network configuration information operational order is network
Tool, adds, by described network, the link information write operation system that instruction is carried by described management instrument, and with JSON form
Result is returned to described browser client.
Wherein, the network configuration information operational order that described reception browser client sends, including:
If described network configuration information operational order is network deletes instruction, then by network described in DELETE interface
Delete instruction.
Wherein, according to described network configuration information operational order, call NetworkManager and manage instrument, by described
Management instrument responds described network configuration information operational order, and response results returns described browser client, including:
Instruction is deleted, then by managing work described in dbus interface interchange if described network configuration information operational order is network
Tool, is deleted deleting the network information corresponding to instruction in operating system with described network by described management instrument, and with JSON
Form returns result to described browser client.
A kind of remote network management system based on B/S framework, including: browser client, web page server;
Described web page server includes:
Receiver module, for receiving the network configuration information operational order that described browser client sends;
Perform module, for according to described network configuration information operational order, call NetworkManager and manage instrument,
Respond described network configuration information operational order by described management instrument, and response results is returned described browser clients
End.
By above scheme, a kind of based on B/S framework the remote network management method that the embodiment of the present invention provides,
Based on web page server, including: receive the network configuration information operational order that browser client sends;Join according to described network
Confidence breath operational order, calls NetworkManager and manages instrument, responds described network configuration by described management instrument and believes
Breath operational order, and response results is returned described browser client;Invention additionally discloses a kind of remote network management system
Including: browser client, web page server;Visible, in the present embodiment, user can pass through browser client at far-end
Inquire about and manage the network configuration information of server, by the JSON data format transmission network configuration information of agreement, make user
Just can obtain and manage the network information of operating system by browser client, it is achieved the most convenient network is managed
Reason.
Accompanying drawing explanation
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing
In having technology to describe, the required accompanying drawing used is briefly described, it should be apparent that, the accompanying drawing in describing below is only this
Some embodiments of invention, for those of ordinary skill in the art, on the premise of not paying creative work, it is also possible to
Other accompanying drawing is obtained according to these accompanying drawings.
Fig. 1 is a kind of remote network management method schematic flow sheet based on B/S framework disclosed in the embodiment of the present invention;
Fig. 2 is the embodiment of the present invention disclosed inquiry network configuration information schematic diagram;
Fig. 3 is the embodiment of the present invention disclosed amendment network configuration schematic diagram;
Fig. 4 is that the embodiment of the present invention is disclosed adds network connection diagram;
Fig. 5 is that the embodiment of the present invention is disclosed deletes network connection diagram;
Fig. 6 is a kind of remote network management system structured flowchart based on B/S framework disclosed in the embodiment of the present invention.
Detailed description of the invention
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Describe, it is clear that described embodiment is only a part of embodiment of the present invention rather than whole embodiments wholely.Based on
Embodiment in the present invention, it is every other that those of ordinary skill in the art are obtained under not making creative work premise
Embodiment, broadly falls into the scope of protection of the invention.
The embodiment of the invention discloses a kind of remote network management method based on B/S framework and system, to realize effectively
Convenient network is managed.
Seeing Fig. 1, a kind of based on B/S framework the remote network management method that the embodiment of the present invention provides, based on webpage
Server, including:
The network configuration information operational order that S101, reception browser client send;
Concrete, in this programme, before receiving the network configuration information operational order that browser client sends, also wrap
Include: obtaining the checking information of user's input, after a successful authentication, the network configuration information operation just receiving user's transmission refers to
Order.
S102, according to described network configuration information operational order, call NetworkManager manage instrument, by described
Management instrument responds described network configuration information operational order, and response results returns described browser client.
In the present embodiment, use B/S framework, set up web server web page server on the server, as browsing
Middle-agent mutual between device client and operating system.Native system provides subscription authentication function, and web server webpage takes
Business device externally provides RestAPI interface, and user passes through browser access RestAPI interface after logging in, and server responds request,
Managing instrument by the NetworkManager of dbus interface interchange operating system, the network state information obtaining operating system returns
Back to browser;When needs are revised or arrange network, user passes through the RestAPI interface that browser access is corresponding, server
After response, go to configure network by the NetworkManager of dbus interface interchange operating system.
Visible, in this programme, it is allowed to user inquires about and manage the network configuration letter of server at far-end by browser
Breath, front and back end is by the JSON data format transmission network configuration information of agreement, and the REST interface that rear end uses design good comes
The network-management tool of call operation system realizes the inquiry to network configuration and management, and each request operation corresponding one
Individual interface interchange, corresponding interface goes the network-management tool of call operation system to realize the inquiry to network configuration and management.
Concrete, server end in the present embodiment, based on the NetworkManager python storehouse increased income and
Django framework, operation that abstract package goes out the REST interfaces such as GET, POST, PUT, DELETE, the most corresponding " additions and deletions change look into ".Clear
Device of looking at calls GET method when server obtains the network information;POST and PUT method is called during the browser amendment network information;
Browser calls DELETE method when deleting the network information, and data transmission in front and back end uses JSON form.
Based on technique scheme, if described network configuration information operational order is network configuration query statement, then pass through
Network configuration query statement described in GET interface.
Wherein, according to described network configuration information operational order, call NetworkManager and manage instrument, by described
Management instrument responds described network configuration information operational order, and response results returns described browser client, including:
If described network configuration information operational order is network configuration query statement, then by managing described in dbus interface interchange
Science and engineering has, and obtains the network configuration information of operating system, and returns described browser client with JSON form.
Concrete, see Fig. 2, if network configuration information operational order is network configuration query statement, then inquiry network is joined
During confidence breath, user initiates inquiry request by the browser of the machine to the host address of server, after GET method call
Platform services, and background service program obtains the network configuration information of operating system by dbus interface, then returns with JSON form
To user, present in a browser.
Based on technique scheme, if described network configuration information operational order is network configuration amendment instruction, then pass through
Network configuration query statement described in PUT interface.
Wherein, according to described network configuration information operational order, call NetworkManager and manage instrument, by described
Management instrument responds described network configuration information operational order, and response results returns described browser client, including:
If described network configuration information operational order is network configuration amendment instruction, then by managing described in dbus interface interchange
Science and engineering has, and is write the amendment data that the amendment instruction of described network configuration is carried to operating system by described management instrument, and
Result is returned to described browser client with JSON form.
Concrete, see Fig. 3, if network configuration information operational order is network configuration amendment instruction, then amendment network is joined
During confidence breath, need to revise the configuration informations such as the IP address of network, gateway address, dns address.User chooses the net needing amendment
Network connects, and enters and connects the configuration page, after revising the configuration informations such as IP address as required, is carried to backstage by PUT method
Intersection number evidence, the service routine on backstage then calls dbus interface and is updated in operating system by network configuration information, and to described clear
Device client of looking at returns the most successfully modified result.
Based on technique scheme, if described network configuration information operational order is network adds instruction, then pass through POST
Network described in interface adds instruction.
Wherein, according to described network configuration information operational order, call NetworkManager and manage instrument, by described
Management instrument responds described network configuration information operational order, and response results returns described browser client, including:
Instruction is added, then by managing work described in dbus interface interchange if described network configuration information operational order is network
Tool, adds, by described network, the link information write operation system that instruction is carried by described management instrument, and with JSON form
Result is returned to described browser client.
Concrete, see Fig. 4, add instruction if network configuration information operational order is network, then adding network connection
Time, user inputs the network connection information needing to add, submits data by POST method to backstage, and the service routine on backstage is then
Call dbus interface by network connection information write operation system, and return to described browser client and whether add successfully
Result.
Based on technique scheme, if described network configuration information operational order is network deletes instruction, then pass through
Network described in DELETE interface deletes instruction.
Wherein, according to described network configuration information operational order, call NetworkManager and manage instrument, by described
Management instrument responds described network configuration information operational order, and response results returns described browser client, including:
Instruction is deleted, then by managing work described in dbus interface interchange if described network configuration information operational order is network
Tool, is deleted deleting the network information corresponding to instruction in operating system with described network by described management instrument, and with JSON
Form returns result to described browser client.
Concrete, general server there are multiple network equipment (network interface card), a network interface card often have some networks to connect.Net
Network equipment has oneself unique implementor name, network connect also have oneself unique No. ID.Implementor name and No. ID are management network letters
The basis of breath, when amendment network configuration information, amendment network state and deletion network when connecting with implementor name and No. ID are just
Mark.
Concrete, see Fig. 5, delete instruction if network configuration information operational order is network, then deleting network connection
Time, user inputs the network connection information needing to delete, and submits data, the service routine on backstage to backstage by DELETE method
Then call dbus interface to be deleted from operating system by this network connection information, and whether delete to the return of described browser client
Except successful result.
The remote network management system provided the embodiment of the present invention below is introduced, telecommunication network pipe described below
Reason system can be cross-referenced with above-described remote network management system.
See Fig. 6, a kind of based on B/S framework the remote network management system that the embodiment of the present invention provides, including: browse
Device client 100, web page server 200;
Described web page server 200 includes:
Receiver module 201, for receiving the network configuration information operational order that described browser client sends;
Perform module 202, for according to described network configuration information operational order, call NetworkManager and manage work
Tool, responds described network configuration information operational order by described management instrument, and response results returns described browser visitor
Family end.
A kind of based on B/S framework the remote network management method that the embodiment of the present invention provides, based on web page server, bag
Include: receive the network configuration information operational order that browser client sends;According to described network configuration information operational order, adjust
Manage instrument with NetworkManager, respond described network configuration information operational order by described management instrument, and will ring
Result should return described browser client;Invention additionally discloses a kind of remote network management system to include: browser client,
Web page server;Visible, in the present embodiment, user can be inquired about by browser client at far-end and manage server
Network configuration information, by the JSON data format transmission network configuration information of agreement, makes user just pass through browser client
Can obtain and manage the network information of operating system, it is achieved the most convenient network is managed.
In this specification, each embodiment uses the mode gone forward one by one to describe, and what each embodiment stressed is and other
The difference of embodiment, between each embodiment, identical similar portion sees mutually.
Described above to the disclosed embodiments, makes professional and technical personnel in the field be capable of or uses the present invention.
Multiple amendment to these embodiments will be apparent from for those skilled in the art, as defined herein
General Principle can realize without departing from the spirit or scope of the present invention in other embodiments.Therefore, the present invention
It is not intended to be limited to the embodiments shown herein, and is to fit to and principles disclosed herein and features of novelty phase one
The widest scope caused.
Claims (10)
1. a remote network management method based on B/S framework, it is characterised in that based on web page server, including:
Receive the network configuration information operational order that browser client sends;
According to described network configuration information operational order, call NetworkManager and manage instrument, by described management instrument
Respond described network configuration information operational order, and response results is returned described browser client.
Remote network management method based on B/S framework the most according to claim 1, it is characterised in that described reception is clear
The network configuration information operational order that device client of looking at sends, including:
If described network configuration information operational order is network configuration query statement, then joined by network described in GET interface
Put query statement.
Remote network management method based on B/S framework the most according to claim 2, it is characterised in that according to described net
Network configuration information operational order, calls NetworkManager and manages instrument, responds described network by described management instrument and joins
Confidence breath operational order, and response results is returned described browser client, including:
If described network configuration information operational order is network configuration query statement, then by managing work described in dbus interface interchange
Tool, obtains the network configuration information of operating system, and returns described browser client with JSON form.
Remote network management method based on B/S framework the most according to claim 1, it is characterised in that described reception is clear
The network configuration information operational order that device client of looking at sends, including:
If described network configuration information operational order is network configuration amendment instruction, then joined by network described in PUT interface
Put query statement.
Remote network management method based on B/S framework the most according to claim 4, it is characterised in that according to described net
Network configuration information operational order, calls NetworkManager and manages instrument, responds described network by described management instrument and joins
Confidence breath operational order, and response results is returned described browser client, including:
If described network configuration information operational order is network configuration amendment instruction, then by managing work described in dbus interface interchange
The amendment data that the amendment instruction of described network configuration is carried are write to operating system by tool by described management instrument, and with
JSON form returns result to described browser client.
Remote network management method based on B/S framework the most according to claim 1, it is characterised in that described reception is clear
The network configuration information operational order that device client of looking at sends, including:
Add instruction if described network configuration information operational order is network, then added by network described in POST interface and refer to
Order.
Remote network management method based on B/S framework the most according to claim 6, it is characterised in that according to described net
Network configuration information operational order, calls NetworkManager and manages instrument, responds described network by described management instrument and joins
Confidence breath operational order, and response results is returned described browser client, including:
Add instruction if described network configuration information operational order is network, then by managing instrument described in dbus interface interchange,
By described management instrument, described network is added the link information write operation system that instruction is carried, and with JSON form to institute
State browser client and return result.
Remote network management method based on B/S framework the most according to claim 1, it is characterised in that described reception is clear
The network configuration information operational order that device client of looking at sends, including:
If described network configuration information operational order is network deletes instruction, then deleted by network described in DELETE interface
Instruction.
Remote network management method based on B/S framework the most according to claim 8, it is characterised in that according to described net
Network configuration information operational order, calls NetworkManager and manages instrument, responds described network by described management instrument and joins
Confidence breath operational order, and response results is returned described browser client, including:
Delete instruction if described network configuration information operational order is network, then by managing instrument described in dbus interface interchange,
Deleted operating system is deleted the network information corresponding to instruction with described network by described management instrument, and with JSON form
Result is returned to described browser client.
10. a remote network management system based on B/S framework, it is characterised in that including: browser client, webpage takes
Business device;
Described web page server includes:
Receiver module, for receiving the network configuration information operational order that described browser client sends;
Perform module, for according to described network configuration information operational order, call NetworkManager and manage instrument, pass through
Described management instrument responds described network configuration information operational order, and response results returns described browser client.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610647630.7A CN106301902A (en) | 2016-08-09 | 2016-08-09 | A kind of remote network management method based on B/S framework and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610647630.7A CN106301902A (en) | 2016-08-09 | 2016-08-09 | A kind of remote network management method based on B/S framework and system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106301902A true CN106301902A (en) | 2017-01-04 |
Family
ID=57666966
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610647630.7A Pending CN106301902A (en) | 2016-08-09 | 2016-08-09 | A kind of remote network management method based on B/S framework and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106301902A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113067735A (en) * | 2021-03-31 | 2021-07-02 | 北京睿芯高通量科技有限公司 | Method, system and device for remotely configuring server network |
CN113396559A (en) * | 2018-11-27 | 2021-09-14 | 区块链联合香港有限公司 | Information configuration method and device, electronic equipment, storage medium and program product |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1638358A (en) * | 2003-12-29 | 2005-07-13 | 诺基亚公司 | Method and system for unified session control of multiple management servers on network appliances |
CN102201939A (en) * | 2011-06-23 | 2011-09-28 | 华南理工大学 | Home-gateway-based network management realization method |
CN102790693A (en) * | 2011-05-19 | 2012-11-21 | 中兴通讯股份有限公司 | Network configuration management method and device |
CN103428023A (en) * | 2012-05-25 | 2013-12-04 | 中兴通讯股份有限公司 | Operation configuration method and device |
US8713165B2 (en) * | 2011-03-03 | 2014-04-29 | Salesforce.Com, Inc. | Method and system for providing status of a machine |
CN104468388A (en) * | 2014-11-04 | 2015-03-25 | 浪潮电子信息产业股份有限公司 | Method for testing load balancing of network card based on Linux system |
-
2016
- 2016-08-09 CN CN201610647630.7A patent/CN106301902A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1638358A (en) * | 2003-12-29 | 2005-07-13 | 诺基亚公司 | Method and system for unified session control of multiple management servers on network appliances |
US8713165B2 (en) * | 2011-03-03 | 2014-04-29 | Salesforce.Com, Inc. | Method and system for providing status of a machine |
CN102790693A (en) * | 2011-05-19 | 2012-11-21 | 中兴通讯股份有限公司 | Network configuration management method and device |
CN102201939A (en) * | 2011-06-23 | 2011-09-28 | 华南理工大学 | Home-gateway-based network management realization method |
CN103428023A (en) * | 2012-05-25 | 2013-12-04 | 中兴通讯股份有限公司 | Operation configuration method and device |
CN104468388A (en) * | 2014-11-04 | 2015-03-25 | 浪潮电子信息产业股份有限公司 | Method for testing load balancing of network card based on Linux system |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113396559A (en) * | 2018-11-27 | 2021-09-14 | 区块链联合香港有限公司 | Information configuration method and device, electronic equipment, storage medium and program product |
CN113396559B (en) * | 2018-11-27 | 2024-04-16 | 香港星辰科技有限公司 | Information configuration method and device, electronic equipment, storage medium and program product |
CN113067735A (en) * | 2021-03-31 | 2021-07-02 | 北京睿芯高通量科技有限公司 | Method, system and device for remotely configuring server network |
CN113067735B (en) * | 2021-03-31 | 2022-10-11 | 北京睿芯高通量科技有限公司 | Method, system and device for remotely configuring server network |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108809732B (en) | Software defined metropolitan area network control system | |
US10958735B2 (en) | Client connection method and system | |
CN107276775A (en) | A kind of enterprise group sets up cube method and device | |
CN102567026B (en) | Mobile solution constructing system and Mobile solution construction method | |
CN107947977B (en) | A kind of configuration method of interchanger, device, electronic equipment and storage medium | |
CN102769709B (en) | A kind of for providing the method and apparatus of service contact information to user | |
CN107911483A (en) | A kind of information transferring method and device | |
CN104811371A (en) | Brand-new instant messaging system | |
CN103780467B (en) | communication connection method, communication device and communication system | |
CN107948309A (en) | A kind of integrated management method and system of the server resource based on Restful API | |
CN109241384A (en) | A kind of method for visualizing and device of scientific research information | |
CN107026871A (en) | A kind of Web vulnerability scanning methods based on cloud computing | |
CN105635050A (en) | Data interaction method and system | |
CN105791073B (en) | The method and apparatus of service deployment in a kind of virtualization network | |
CN102196027A (en) | System and method for implementing mobile cloud service | |
CN106339267A (en) | Object query method and server side | |
CN101808051A (en) | Application integration gateway and control method thereof | |
CN107665237A (en) | Data structure sorter, the distribution subscription system of unstructured data and method | |
CN106301902A (en) | A kind of remote network management method based on B/S framework and system | |
WO2015123990A1 (en) | Page push method, device, server and system | |
CN102281302A (en) | resource access processing method and system | |
CN108647077A (en) | File management method and device | |
US20200228593A1 (en) | Coordinating an Action between Devices | |
CN105721398B (en) | The method and device of data access | |
CN110839044A (en) | Cloud key SaaS autonomous AIoT control system and method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20170104 |