CN111245898B - Network equipment online method, device, server and storage medium - Google Patents

Network equipment online method, device, server and storage medium Download PDF

Info

Publication number
CN111245898B
CN111245898B CN201911403405.9A CN201911403405A CN111245898B CN 111245898 B CN111245898 B CN 111245898B CN 201911403405 A CN201911403405 A CN 201911403405A CN 111245898 B CN111245898 B CN 111245898B
Authority
CN
China
Prior art keywords
network
network equipment
configuration file
online
information
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
CN201911403405.9A
Other languages
Chinese (zh)
Other versions
CN111245898A (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.)
China Construction Bank Corp
Original Assignee
China Construction Bank Corp
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 China Construction Bank Corp filed Critical China Construction Bank Corp
Priority to CN201911403405.9A priority Critical patent/CN111245898B/en
Publication of CN111245898A publication Critical patent/CN111245898A/en
Application granted granted Critical
Publication of CN111245898B publication Critical patent/CN111245898B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/54Presence management, e.g. monitoring or registration for receipt of user log-on information, or the connection status of the users
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0876Aspects of the degree of configuration automation
    • H04L41/0886Fully automatic configuration
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0893Assignment of logical groups to network elements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/2866Architectures; Arrangements
    • H04L67/30Profiles
    • H04L67/303Terminal profiles

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Automation & Control Theory (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses a network equipment online method, a network equipment online device, a server and a storage medium, wherein the network equipment online method comprises the following steps: determining a target network area according to a selection instruction of the network area; determining at least one network device corresponding to a target network area; acquiring equipment information of network equipment; generating a configuration file of the network equipment according to the equipment information of the network equipment; receiving an online request sent by network equipment, wherein the online request comprises an equipment identifier of the network equipment; determining a target configuration file corresponding to the network equipment according to the equipment identifier; acquiring an online script file of target network equipment and storage address information of the configuration file of the target network equipment according to the configuration file of the target dynamic address allocation protocol; and returning the storage address information to the network equipment so that the network equipment acquires the corresponding file according to the storage address information to complete loading and online. The invention improves the online efficiency and success rate of the network equipment.

Description

Network equipment online method, device, server and storage medium
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a network device online method, an apparatus, a server, and a storage medium.
Background
With the rapid development of cloud computing, the network scale of a data center also increases rapidly, and the number of network devices such as switches in the data center reaches the scale of tens of thousands or even hundreds of thousands. The traditional manual operation network equipment needs to manually distribute equipment positions when getting on the line, the equipment interconnection wiring table, manually upgrade versions and loading configuration debugging, the line is finally changed, the whole process is not only complicated, the operation and maintenance roles are multiple, information circulation is easy to omit, the communication cost is high, the field implementation period of a machine room is long, manual implementation is easy to make mistakes, the efficiency is low, the requirement of the cloud computing era cannot be met when the traditional manual operation network equipment gets on the line, and a more efficient and reliable technical scheme for realizing the network equipment getting on the line is urgently needed.
Disclosure of Invention
In order to solve the problems in the prior art, embodiments of the present invention provide a network device online method, apparatus, server, and storage medium. The technical scheme is as follows:
in one aspect, a network device online method is provided, where the method includes:
determining a target network area according to a selection instruction of the network area;
determining at least one network device corresponding to the target network area;
acquiring equipment information of the at least one network equipment;
generating a configuration file corresponding to the network equipment according to the equipment information of each network equipment in the at least one network equipment; the configuration file at least comprises a dynamic address allocation protocol configuration file, a network equipment on-line script file and a network equipment configuration file; the dynamic address allocation protocol configuration file comprises storage address information of the online script file of the network equipment and storage address information of the configuration file of the network equipment;
receiving an online request sent by the at least one network device, wherein the online request comprises a device identifier of the network device; determining a target configuration file corresponding to the network equipment according to the equipment identification;
acquiring storage address information of an online script file of target network equipment and storage address information of a configuration file of the target network equipment according to a configuration file of a target dynamic address allocation protocol;
and returning the storage address information to the network equipment, so that the network equipment acquires the target network equipment online script according to the storage address information of the target network equipment online script file, and loading the target network equipment configuration file according to the storage address information of the target network equipment configuration file for online operation when the target network equipment online script is operated.
Optionally, the method further includes:
receiving input device information of the at least one network device;
establishing a mapping relation between the target network area and the equipment information;
correspondingly, the determining at least one network device corresponding to the target network area includes:
and determining at least one network device corresponding to the target network area according to the mapping relation.
Optionally, the method further includes:
determining the loading progress of the configuration file of the target network equipment;
generating a visual progress component according to the loading progress;
and displaying the visualized progress component.
Optionally, the device information at least includes device manufacturer information, a device serial number, device port information, an interconnection mode of the device port, and device version information.
In another aspect, an apparatus for getting on a network device is provided, where the apparatus includes:
the first determining module is used for determining a target network area according to a selection instruction of the network area;
a second determining module, configured to determine at least one network device corresponding to the target network area;
a first obtaining module, configured to obtain device information of the at least one network device;
the configuration file generation module is used for generating a configuration file corresponding to the network equipment according to the equipment information of each network equipment in the at least one network equipment; the configuration file at least comprises a dynamic address allocation protocol configuration file, a network equipment on-line script file and a network equipment configuration file; the dynamic address allocation protocol configuration file comprises storage address information of the online script file of the network equipment and storage address information of the configuration file of the network equipment;
a first receiving module, configured to receive an online request sent by the at least one network device, where the online request includes a device identifier of the network device; determining a target configuration file corresponding to the network equipment according to the equipment identification;
the second acquisition module is used for acquiring the storage address information of the on-line script file of the target network equipment and the storage address information of the configuration file of the target network equipment according to the configuration file of the target dynamic address allocation protocol;
and the return module is used for returning the storage address information to the network equipment so that the network equipment acquires the target network equipment online script according to the storage address information of the target network equipment online script file, and loads the target network equipment configuration file according to the storage address information of the target network equipment configuration file for online operation when the target network equipment online script is operated.
Optionally, the apparatus further comprises:
a second receiving module, configured to receive input device information of the at least one network device;
and the relationship establishing module is used for establishing a mapping relationship between the target network area and the equipment information.
Optionally, the apparatus further comprises:
a third determining module, configured to determine a loading progress of the target network device configuration file;
the progress component generation module is used for generating a visualized progress component according to the loading progress;
and the display module is used for displaying the visual progress assembly.
In another aspect, a server is provided, which includes a processor and a memory, where at least one instruction or at least one program is stored in the memory, and the at least one instruction or the at least one program is loaded and executed by the processor to implement the above network device online method.
In another aspect, a computer-readable storage medium is provided, in which at least one instruction or at least one program is stored, and the at least one instruction or the at least one program is loaded and executed by a processor to implement the network device online method as described above.
The embodiment of the invention determines a target network area according to a selection instruction of the network area, determines at least one network device corresponding to the target network area, acquires the device information of the at least one network device, automatically generates a configuration file corresponding to the corresponding network device according to the device information of each network device, determines the target configuration file according to the device identifier of the network device in an online request when the online request sent by the at least one network device is received, acquires the storage address information of the corresponding file according to the target configuration file and returns the storage address information to the network device, so that the corresponding network device can acquire the corresponding file according to the returned storage address information and load and run the file, thereby manually writing the configuration file when the network device is online is not needed, the network device is completely configured to automatically deploy online, and the difference among different network device manufacturers can be shielded, the method not only improves the efficiency and the success rate of the network equipment online, but also supports hundreds of network equipment online in batch, greatly shortens the implementation period, and is very suitable for the batch online scene of the network equipment in the data center.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a flowchart illustrating an online method of a network device according to an embodiment of the present invention;
fig. 2 is a flowchart illustrating another network device online method according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of an online device of a network device according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of an online device on another network device according to an embodiment of the present invention;
fig. 5 is a block diagram of a hardware structure of a server according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be obtained by a person skilled in the art without any inventive step based on the embodiments of the present invention, are within the scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or server that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Referring to fig. 1, it is a schematic flow chart showing a network device online method according to an embodiment of the present invention, where the network device online method may be applied to a network device online apparatus according to an embodiment of the present invention, the network device online apparatus may be configured in a server, and the server may include an independently operating server, or a distributed server, or a server cluster composed of multiple servers.
It is noted that the present specification provides the method steps as described in the examples or flowcharts, but may include more or less steps based on routine or non-inventive labor. The order of steps recited in the embodiments is merely one manner of performing the steps in a multitude of orders and does not represent the only order of execution. In actual system or product execution, sequential execution or parallel execution (e.g., parallel processor or multi-threaded environment) may be possible according to the embodiments or methods shown in the figures. Specifically, as shown in fig. 1, the method may include:
s101, determining a target network area according to a selection instruction of the network area.
The target network area is the network area selected by the user. In this embodiment, the network area may be set by presetting a coverage area of each network area.
S103, determining at least one network device corresponding to the target network area.
In this embodiment of the present description, before the network device is online, a mapping relationship between a network area and device information of the network device may be established, so that at least one network device corresponding to a target network device may be determined according to a target mapping relationship corresponding to the target network area. It should be noted that the network device in the embodiment of the present specification may include, but is not limited to, a switch device.
Specifically, the establishing of the mapping relationship may include:
(1) receiving input device information of the at least one network device. In this embodiment of the present description, a user may enter device information of network devices belonging to the same network area in advance, where the device information at least includes device manufacturer information, a device serial number, device port information, an interconnection mode of a device port, and device version information. For example, in a specific implementation, a user may flexibly customize a network area, and select information such as vendor information, a switch model, a switch port, a port interconnection mode, a virtualization mode, and a switch version of a switch belonging to the network area from a provided interactive interface. The Switch virtualization means that two or more switches are virtualized into one Switch, and currently, Switch virtualization methods include vss (virtual Switching hypervisor), IRF (Intelligent resource Framework2), css (cluster Switch system), vsu (virtual Switching unit), and the like.
(2) And establishing a mapping relation between the target network area and the equipment information.
The target network area is the network area selected by the user, and a mapping relation between the network area selected by the user and the device information of the network device belonging to the network area is established.
S105, acquiring the equipment information of the at least one network equipment.
In an embodiment of this specification, the acquired device information at least includes device manufacturer information, a device serial number, device port information, an interconnection mode of the device port, and device version information.
S107, generating a configuration file corresponding to the network equipment according to the equipment information of each network equipment in the at least one network equipment.
The configuration files at least comprise a dynamic address allocation protocol configuration file, a network equipment on-line script file and a network equipment configuration file; the dynamic address allocation protocol configuration file comprises the storage address information of the online script file of the network equipment and the storage address information of the configuration file of the network equipment.
It is understood that the automatically generated configuration file may also include other types of files as needed, for example, the automatically generated configuration file may also include a device interconnection wiring table, SOM (security Operation Management System) admission information, NAS (Network Management System) admission information, NMS (Network Automation System) admission information, and the like.
In this embodiment, the online script file of the network device is generally a Python script file, and is a script file that can be automatically executed after the network device, such as a switch, is powered on.
The Dynamic Host Configuration Protocol (DHCP) Configuration file may include a DHCP address pool, a default gateway, DNS (Domain Name System) information, an option value specified by a network device vendor, a storage path of a network device online script file, and storage address information of the network device Configuration file.
The network device configuration file is an initial configuration file loaded when the network device is online, and may include but is not limited to basic configuration, security configuration, interface configuration, management configuration, routing configuration and other information.
The interconnection wiring table of equipment can supply the wiring constructor to download and look over, according to the wiring construction of wiring table. The SOM/NAS/NMS manages the parameters required by the systems such as the docking bastion machine, the network automation tool, the network management and the like, and after the system is online, each system can directly manage and collect the equipment information of the network equipment.
In this embodiment, in order to quickly and accurately find a configuration file of each network device during subsequent automatic online, when the configuration file is stored, a device identifier of the corresponding network device may be included in a name of the configuration file, where the device identifier is used to uniquely identify one network device, and the device identifier may be an Electronic Serial Number (Electronic Serial Number, ESN) of the network device, which is also called ESN code specified by the federal communications commission in the united states of america, and a parameter unique to each mobile device (for example, a mobile phone, a smart phone, a tablet computer, and the like) uniquely identifies one mobile station device, and the length of the mobile station device is 32 bits. It is understood that the device identifier may not be limited to the above-mentioned electronic serial number, but may also include other information capable of uniquely identifying the network device, such as a Media Access Control (MAC) address.
S109, receiving an online request sent by the at least one network device, wherein the online request comprises a device identifier of the network device; and determining a target configuration file corresponding to the network equipment according to the equipment identifier.
In this embodiment of the present specification, a file type corresponding to a target configuration file is consistent with a file type of the foregoing configuration file, and may include a target dynamic address allocation protocol configuration file, a target Network device online script file, a target Network device configuration file, a target device interconnection wiring table, target SOM (security Operation Management System) nanotube information, target NAS (Network Management System ) nanotube information, and target NMS (Network Automation System) nanotube information.
In practical application, after the network device is powered on and wired in the machine room, the network device starts to automatically get on line when being started, and sends an on-line request to the server, wherein the on-line request carries the device identifier of the network device.
S111, according to the target dynamic address allocation protocol configuration file, obtaining the storage address information of the online script file of the target network equipment and the storage address information of the configuration file of the target network equipment.
In this embodiment of the present description, after determining a target dynamic address allocation protocol configuration file matched with a device identifier in an online request, the target dynamic address allocation protocol configuration file may be read to obtain storage address information of an online script file of a target network device and storage address information of the target network device configuration file.
S113, returning the storage address information to the network device, so that the network device obtains the target network device online script according to the storage address information of the target network device online script file after being restarted, and loading the target network device configuration file for online according to the storage address information of the target network device configuration file when the target network device online script is operated.
In this embodiment, the server may further provide a File Transfer service based on a File Transfer Protocol, and the network device downloads the online script File and the configuration File of the target network device through the File Transfer service, where the File Transfer Protocol may include, but is not limited to, TFTP (Trivial File Transfer Protocol), FTP (File Transfer Protocol), HTTP (HyperText Transfer Protocol), and the like.
Taking a network device as an example of a switch, the automatic opening function may include a DHCP service, the switch may broadcast and send a DHCP request message on a management network port and an ethernet interface in sequence (where the interface request sequence is, in order, management network port- > high bandwidth ethernet interface- > low bandwidth ethernet interface), the request may carry a serial number of the switch, the DHCP service may obtain information such as a storage address of an opening Python script file, a management IP address, a default gateway, and a storage address of a switch configuration file in a configuration file after determining the corresponding DHCP configuration file according to the serial number of the switch, and generate a DHCP response message according to the obtained information, and return the DHCP response message to the corresponding switch.
The switch receives the DHCP response message, analyzes the message to obtain the information carried in the message, at least comprises the storage address information of the open Python script file and the storage address of the switch configuration file, downloads the corresponding open Python script file according to the storage address information of the open Python script file, automatically operates the open Python script file, downloads the corresponding switch configuration file from the server according to the storage address information of the switch configuration file, and loads the switch configuration file for automatic online after the switch is restarted.
It can be understood that when the target network configuration file is downloaded from the server according to the storage address information of the target network device configuration file, the corresponding upgrade version file, patch file, etc. can also be downloaded according to the requirement. Corresponding version files, patch files and the like can be loaded after the switch is restarted.
In order to improve the online efficiency of the network device and avoid the online failure from going to the field connection device of the machine room to check the failure reason, as an optional implementation manner, as shown in fig. 2, the method may further include:
s115, determining the loading progress of the target network device configuration file.
In this embodiment of the present description, the server may further obtain a loading progress of the target network device configuration file in the network device in real time, for example, the switch may upload the loading progress to the server in real time during loading.
And S117, generating a visual progress component according to the loading progress.
In an embodiment of the present specification, after obtaining the corresponding loading progress, the server may generate a visual progress component corresponding to the network device, where the progress component may include a loading progress of the configuration file of the corresponding target network device on the network device. For example, the progress component may be a progress bar that includes a slider that represents progress through the moved position of the slider, and may also generate a percentage of progress at various positions of the slider. It can be appreciated that when multiple network devices are online simultaneously, a progress component corresponding to each network device can be generated.
And S119, displaying the visual progress assembly.
It can be understood that, when there are a plurality of visual progress components corresponding to the network devices on line, the device identifiers of the network devices corresponding to the components can be displayed simultaneously when the visual progress components are displayed, so that the user can view the on-line or opening progress of each network device in real time.
It can be seen from the above technical solutions of the embodiments of the present invention that, in the embodiments of the present invention, a target network area is determined according to a selection instruction for the network area, at least one network device corresponding to the target network area is determined, device information of the at least one network device is obtained, a configuration file corresponding to a corresponding network device is automatically generated according to the device information of each network device, when an online request sent by the at least one network device is received, the target configuration file is determined according to a device identifier of the network device in the online request, storage address information of the corresponding file is obtained according to the target configuration file and is returned to the network device, and then the corresponding network device can obtain the corresponding file according to the returned storage address information and load the corresponding file to complete online operation, so that there is no need to manually write the configuration file when online, the network device is completely deployed online automatically with zero configuration, the method can support heterogeneous scenes of multiple manufacturers, shield the difference between different network equipment manufacturers, improve the online efficiency and success rate of the network equipment, support hundreds of network equipment to be online in batch simultaneously, greatly shorten the implementation period, and is very suitable for the batch online scene of the network equipment in the data center.
In addition, the embodiment of the invention can also check the zero configuration starting progress of the network equipment in real time, thereby avoiding the problem of low efficiency caused by the reason that the field connection equipment needs to rush to a machine room for checking failure due to the failure of starting.
Corresponding to the network device online methods provided in the foregoing embodiments, embodiments of the present invention further provide a network device online apparatus, and since the network device online apparatus provided in the embodiments of the present invention corresponds to the network device online methods provided in the foregoing embodiments, the foregoing embodiments of the network device online method are also applicable to the network device online apparatus provided in this embodiment, and detailed description is not repeated in this embodiment.
Referring to fig. 3, it is a schematic structural diagram of an online apparatus of a network device according to an embodiment of the present invention, where the apparatus has a function of implementing the online method of the network device in the foregoing method embodiment, and the function may be implemented by hardware or by hardware executing corresponding software. As shown in fig. 3, the apparatus may include:
a first determining module 310, configured to determine a target network area according to a selection instruction for the network area;
a second determining module 320, configured to determine at least one network device corresponding to the target network area;
a first obtaining module 330, configured to obtain device information of the at least one network device; the device information may include at least device vendor information, a device serial number, device port information, an interconnection mode of the device port, and device version information.
A configuration file generating module 340, configured to generate a configuration file corresponding to the network device according to the device information of each network device in the at least one network device; the configuration files at least comprise dynamic address allocation protocol configuration files, network equipment on-line script files and network equipment configuration files; the dynamic address allocation protocol configuration file comprises storage address information of the online script file of the network equipment and storage address information of the configuration file of the network equipment;
a first receiving module 350, configured to receive an online request sent by the at least one network device, where the online request includes a device identifier of the network device; determining a target configuration file corresponding to the network equipment according to the equipment identification;
a second obtaining module 360, configured to obtain, according to the target dynamic address allocation protocol configuration file, storage address information of the online script file of the target network device and storage address information of the configuration file of the target network device;
a returning module 370, configured to return the storage address information to the network device, so that the network device obtains the target network device online script according to the storage address information of the target network device online script file, and loads the target network device configuration file according to the storage address information of the target network device configuration file for online when the target network device online script is run.
As an optional implementation, the apparatus may further include:
a second receiving module, configured to receive input device information of the at least one network device;
and the relationship establishing module is used for establishing a mapping relationship between the target network area and the equipment information.
As another optional implementation, as shown in fig. 4, the structure diagram of another online apparatus on a network device may further include:
a third determining module 410, configured to determine a loading progress of the target network device configuration file;
the progress component generation module 420 is used for generating a visualization progress component according to the loading progress;
a display module 430, configured to display the visualized progress component.
It should be noted that, when the apparatus provided in the foregoing embodiment implements the functions thereof, only the division of the functional modules is illustrated, and in practical applications, the functions may be distributed by different functional modules according to needs, that is, the internal structure of the apparatus may be divided into different functional modules to implement all or part of the functions described above. For example, the online apparatus of the network device may include an automatic generation configuration module and an automatic online module, where the automatic generation configuration module may be configured to implement the functions of the first determining module 310, the second determining module 320, the first obtaining module 330, and the configuration file generating module 340; the automated bring-up module may be used to implement the functionality of the first receiving module 350, the second obtaining module 360, and the return module 370 described above.
The network equipment on-line device of the embodiment of the invention does not need to manually compile configuration files when on-line, the network equipment is fully automatically deployed on-line, the difference between different network equipment manufacturers can be shielded, the network equipment on-line efficiency and success rate are improved, hundreds of network equipment are supported to be on-line simultaneously in batch, the implementation period is greatly shortened, and the network equipment on-line device is very suitable for the batch on-line scene of network equipment in a data center.
In addition, the embodiment of the invention can also check the zero configuration starting progress of the network equipment in real time, thereby avoiding the problem of low efficiency caused by the reason that the field connection equipment needs to rush to a machine room for checking failure due to the failure of starting.
An embodiment of the present invention provides a server, where the server includes a processor and a memory, where the memory stores at least one instruction or at least one program, and the at least one instruction or the at least one program is loaded and executed by the processor to implement the network device online method provided in the foregoing method embodiment.
The memory may be used to store software programs and modules, and the processor may execute various functional applications and bring network devices online by running the software programs and modules stored in the memory. The memory can mainly comprise a program storage area and a data storage area, wherein the program storage area can store an operating system, application programs needed by functions and the like; the storage data area may store data created according to use of the apparatus, and the like. Further, the memory may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, the memory may also include a memory controller to provide the processor access to the memory.
The method provided by the embodiment of the invention can be executed in a computer terminal, a server or a similar operation device. Taking an example of the server running on the server, fig. 5 is a hardware structure block diagram of the server running an online method of a network device according to an embodiment of the present invention, as shown in fig. 5, the server 500 may have a relatively large difference due to different configurations or performances, and may include one or more Central Processing Units (CPUs) 510 (the processors 510 may include but are not limited to Processing devices such as a microprocessor MCU or a programmable logic device FPGA), a memory 530 for storing data, and one or more storage media 520 (e.g., one or more mass storage devices) for storing applications 523 or data 522. Memory 530 and storage medium 520 may be, among other things, transient storage or persistent storage. The program stored on the storage medium 520 may include one or more modules, each of which may include a series of instruction operations for the server. Still further, the central processor 510 may be configured to communicate with the storage medium 520 to execute a series of instruction operations in the storage medium 520 on the server 500. The server 500 may also include one or more power supplies 560, one or more wired or wireless network interfaces 550, one or more input-output interfaces 540, and/or one or more operating systems 521, such as Windows Server, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, and the like.
The input/output interface 540 may be used to receive or transmit data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of the server 500. In one example, the input/output Interface 540 includes a Network adapter (NIC) that can be connected to other Network devices through a base station to communicate with the internet. In one example, the input/output interface 540 can be a Radio Frequency (RF) module, which is used for communicating with the internet in a wireless manner.
It will be understood by those skilled in the art that the structure shown in fig. 5 is only an illustration and is not intended to limit the structure of the electronic device. For example, server 500 may also include more or fewer components than shown in FIG. 5, or have a different configuration than shown in FIG. 5.
Embodiments of the present invention also provide a computer-readable storage medium, where the storage medium may be disposed in a server to store at least one instruction or at least one program for implementing an online method of a network device, where the at least one instruction or the at least one program is loaded and executed by the processor to implement the online method of a network device provided in the foregoing method embodiments.
Optionally, in this embodiment, the storage medium may include, but is not limited to: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
It should be noted that: the precedence order of the above embodiments of the present invention is only for description, and does not represent the merits of the embodiments. And that specific embodiments have been described above. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims can be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing may also be possible or may be advantageous.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the apparatus embodiment, since it is substantially similar to the method embodiment, the description is relatively simple, and reference may be made to the partial description of the method embodiment for relevant points.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.

Claims (8)

1. A network device online method, the method comprising:
determining a target network area according to a selection instruction of the network area;
determining at least one network device corresponding to the target network area;
acquiring equipment information of the at least one network equipment;
generating a configuration file corresponding to the network equipment according to the equipment information of each network equipment in the at least one network equipment; the configuration file at least comprises a dynamic address allocation protocol configuration file, a network equipment on-line script file and a network equipment configuration file; the dynamic address allocation protocol configuration file comprises storage address information of the online script file of the network equipment and storage address information of the configuration file of the network equipment;
receiving an online request sent by the at least one network device, wherein the online request comprises a device identifier of the network device; determining a target configuration file corresponding to the network equipment according to the equipment identification;
acquiring storage address information of an online script file of target network equipment and storage address information of a configuration file of the target network equipment according to a configuration file of a target dynamic address allocation protocol;
returning the storage address information to the network equipment to enable the network equipment to obtain the target network equipment online script according to the storage address information of the target network equipment online script file, and loading the target network equipment configuration file according to the storage address information of the target network equipment configuration file for online operation when the target network equipment online script is operated;
determining the loading progress of the configuration file of the target network equipment;
generating a visual progress component according to the loading progress;
and displaying the visualized progress component.
2. The network device online method of claim 1, further comprising:
receiving input device information of the at least one network device;
establishing a mapping relation between the target network area and the equipment information;
correspondingly, the determining at least one network device corresponding to the target network area includes:
and determining at least one network device corresponding to the target network area according to the mapping relation.
3. The network device on-line method according to claim 1, wherein the device information at least includes device vendor information, device serial number, device port information, interconnection mode of the device port, and device version information.
4. An apparatus for providing network device connectivity, the apparatus comprising:
the first determining module is used for determining a target network area according to a selection instruction of the network area;
a second determining module, configured to determine at least one network device corresponding to the target network area;
a first obtaining module, configured to obtain device information of the at least one network device;
the configuration file generation module is used for generating a configuration file corresponding to the network equipment according to the equipment information of each network equipment in the at least one network equipment; the configuration file at least comprises a dynamic address allocation protocol configuration file, a network equipment on-line script file and a network equipment configuration file; the dynamic address allocation protocol configuration file comprises storage address information of the online script file of the network equipment and storage address information of the configuration file of the network equipment;
a first receiving module, configured to receive an online request sent by the at least one network device, where the online request includes a device identifier of the network device; determining a target configuration file corresponding to the network equipment according to the equipment identification;
the second acquisition module is used for acquiring the storage address information of the on-line script file of the target network equipment and the storage address information of the configuration file of the target network equipment according to the configuration file of the target dynamic address allocation protocol;
a returning module, configured to return the storage address information to the network device, so that the network device obtains the target network device online script according to the storage address information of the target network device online script file, and loads the target network device configuration file according to the storage address information of the target network device configuration file for online operation when the target network device online script is operated;
a third determining module, configured to determine a loading progress of the target network device configuration file;
the progress component generation module is used for generating a visualized progress component according to the loading progress;
and the display module is used for displaying the visual progress assembly.
5. The network device on-line apparatus of claim 4, wherein the apparatus further comprises:
a second receiving module, configured to receive input device information of the at least one network device;
and the relationship establishing module is used for establishing a mapping relationship between the target network area and the equipment information.
6. The network device on-line apparatus according to claim 4, wherein the device information at least includes device vendor information, device serial number, device port information, interconnection mode of the device port, and device version information.
7. A server, comprising a processor and a memory, wherein the memory stores at least one instruction or at least one program, and the at least one instruction or the at least one program is loaded by the processor and executed to implement the network device online method according to any one of claims 1 to 3.
8. A computer readable storage medium having at least one instruction or at least one program stored therein, the at least one instruction or the at least one program being loaded and executed by a processor to implement the method of any of claims 1 to 3.
CN201911403405.9A 2019-12-31 2019-12-31 Network equipment online method, device, server and storage medium Active CN111245898B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911403405.9A CN111245898B (en) 2019-12-31 2019-12-31 Network equipment online method, device, server and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911403405.9A CN111245898B (en) 2019-12-31 2019-12-31 Network equipment online method, device, server and storage medium

Publications (2)

Publication Number Publication Date
CN111245898A CN111245898A (en) 2020-06-05
CN111245898B true CN111245898B (en) 2022-06-07

Family

ID=70865823

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911403405.9A Active CN111245898B (en) 2019-12-31 2019-12-31 Network equipment online method, device, server and storage medium

Country Status (1)

Country Link
CN (1) CN111245898B (en)

Families Citing this family (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112073241B (en) * 2020-09-07 2023-07-11 三一石油智能装备有限公司 Switch configuration method and device, electronic equipment and storage medium
CN112333014B (en) * 2020-10-26 2022-08-02 中国联合网络通信集团有限公司 Device management method and communication apparatus
CN112433724A (en) * 2020-11-09 2021-03-02 北京达佳互联信息技术有限公司 Target component style generation method and device, electronic equipment and storage medium
CN112333026A (en) * 2020-11-20 2021-02-05 迈普通信技术股份有限公司 Network device, network management device and zero configuration opening system and method for network device
CN113014416A (en) * 2020-12-15 2021-06-22 中国建设银行股份有限公司 Method, system, device and storage medium for automatically configuring and managing network device
CN112615747B (en) * 2020-12-23 2022-11-29 浪潮思科网络科技有限公司 Method and device for automatically deploying and configuring network equipment
FR3118561B1 (en) * 2020-12-29 2023-08-04 Thales Sa METHOD FOR CONFIGURING A SECURE INTERFACE BETWEEN A TRANSPORT NETWORK AND AN ELEMENTARY NETWORK OF A PLURALITY OF FEDERATED ELEMENTARY NETWORKS THROUGH THE TRANSPORT NETWORK; RELATED INTERFACE
CN112651522A (en) * 2021-01-13 2021-04-13 广州视源电子科技股份有限公司 Method, system, computer readable storage medium and processor for configuring device
CN113572630A (en) * 2021-02-10 2021-10-29 腾讯科技(深圳)有限公司 Method and device for generating network configuration information, electronic equipment and medium
CN113726576B (en) * 2021-08-31 2023-07-25 平安医疗健康管理股份有限公司 Method, device, equipment and storage medium for constructing network adaptation framework
CN114363163A (en) * 2021-12-09 2022-04-15 北京六方云信息技术有限公司 HTTPS-based equipment deployment method, system, equipment and medium
CN114285742A (en) * 2021-12-15 2022-04-05 迈普通信技术股份有限公司 Equipment opening method and device, terminal equipment and network equipment
CN114338382B (en) * 2021-12-30 2023-11-14 北京天融信网络安全技术有限公司 Domain name based equipment online method and device, computer equipment and storage medium
CN114401510A (en) * 2022-01-19 2022-04-26 Tcl通讯科技(成都)有限公司 Configuration file downloading method and device, electronic equipment and storage medium
CN115767601A (en) * 2022-10-25 2023-03-07 中电信数智科技有限公司 5GC network element automatic nanotube method and device based on multidimensional data
CN115941777A (en) * 2022-11-25 2023-04-07 深圳市信锐网科技术有限公司 Equipment online use method, export management equipment, target equipment and related device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102739455A (en) * 2012-06-29 2012-10-17 杭州华三通信技术有限公司 Method and device for configuring network device
CN103095495A (en) * 2013-01-06 2013-05-08 华为技术有限公司 Network implementation configuration method, device and system
CN107809367A (en) * 2017-11-07 2018-03-16 锐捷网络股份有限公司 The equipment loading method and SDN controllers, the network equipment of a kind of SDN
CN108023773A (en) * 2017-12-07 2018-05-11 锐捷网络股份有限公司 A kind of method and configuration server realized network equipment zero configuration and reached the standard grade
CN108270615A (en) * 2017-12-25 2018-07-10 深圳市泰信通信息技术有限公司 Network equipment beginning method, apparatus and equipment based on SDN network controller

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070274285A1 (en) * 2006-05-23 2007-11-29 Werber Ryan A System and method for configuring a router
US7752345B2 (en) * 2007-12-20 2010-07-06 Avery Dennison Corporation Automatic configuration of network devices
CN101860545A (en) * 2010-06-13 2010-10-13 中兴通讯股份有限公司 System and method for implementing automatic configuration of equipment
US9973385B2 (en) * 2012-01-31 2018-05-15 Hewlett Packard Enterprise Development Lp Remote server configuration
CN104065758A (en) * 2013-03-18 2014-09-24 杭州华三通信技术有限公司 Active device automatic deployment method, device and system
CN103428306B (en) * 2013-08-02 2016-09-07 北京华为数字技术有限公司 Network element device loading method, equipment and system
CN104657174A (en) * 2015-02-03 2015-05-27 百度在线网络技术(北京)有限公司 Method and device for dynamically realizing application function
CN109474443B (en) * 2017-09-07 2022-10-18 中移(杭州)信息技术有限公司 Configuration method, device and system of newly added server and communication equipment
CN109861861B (en) * 2019-01-31 2022-07-01 北京全路通信信号研究设计院集团有限公司 Rapid configuration method and system for network communication equipment
CN110221859A (en) * 2019-06-05 2019-09-10 软通智慧科技有限公司 A kind of online management method of the deployment of application, device, equipment and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102739455A (en) * 2012-06-29 2012-10-17 杭州华三通信技术有限公司 Method and device for configuring network device
CN103095495A (en) * 2013-01-06 2013-05-08 华为技术有限公司 Network implementation configuration method, device and system
CN107809367A (en) * 2017-11-07 2018-03-16 锐捷网络股份有限公司 The equipment loading method and SDN controllers, the network equipment of a kind of SDN
CN108023773A (en) * 2017-12-07 2018-05-11 锐捷网络股份有限公司 A kind of method and configuration server realized network equipment zero configuration and reached the standard grade
CN108270615A (en) * 2017-12-25 2018-07-10 深圳市泰信通信息技术有限公司 Network equipment beginning method, apparatus and equipment based on SDN network controller

Also Published As

Publication number Publication date
CN111245898A (en) 2020-06-05

Similar Documents

Publication Publication Date Title
CN111245898B (en) Network equipment online method, device, server and storage medium
CN106126273B (en) A kind of method of upgrading BIOS
CN102752137B (en) The apparatus and method of virtual machine network parameter are initiatively set
CN107678836B (en) Cluster test data acquisition method and device
CN112230942A (en) Automatic deployment method and system supporting various domestic operating systems
CN105511895A (en) Method, device, and system for configuring operating environment
US20150281398A1 (en) Automated Cloud Set Up
CN107483243A (en) A kind of automatic deployment method and equipment of OpenStack platforms
US20210392039A1 (en) Automated Initialization Of Bare Metal Servers
CN112035121B (en) Edge application deployment method and system
US10282346B1 (en) Scalable network device self-configuration in large networks
CN106293842B (en) Software installation method and device
CN107526584B (en) Data access method and device
WO2020199597A1 (en) Blockchain node management agent service installation method, electronic apparatus and storage medium
CN114489701A (en) Configuration method and device of artificial intelligence software deployment environment and electronic equipment
US20170034070A1 (en) Workload deployment in computing networks
US11886171B2 (en) Streamlining the commission of network identifiers
CN111768129A (en) Delivery method, device, equipment and storage medium of proprietary cloud product
CN112214413A (en) Application program testing method, device, equipment and storage medium
US7284120B2 (en) Method and system for allowing a system under test (SUT) to boot a plurality of operating systems without a need for local media
CN115268951A (en) Installation method, device, equipment and storage medium of operating system
CN111600751B (en) Data center management method and system
CN114138312A (en) Upgrade test method, device, electronic equipment and computer readable storage medium
CN106506276A (en) A kind of information detecting method for server
CN111061503B (en) Cluster system configuration method and cluster system

Legal Events

Date Code Title Description
PB01 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