CN111130902B - Switch management method, device and storage medium - Google Patents

Switch management method, device and storage medium Download PDF

Info

Publication number
CN111130902B
CN111130902B CN201911402496.4A CN201911402496A CN111130902B CN 111130902 B CN111130902 B CN 111130902B CN 201911402496 A CN201911402496 A CN 201911402496A CN 111130902 B CN111130902 B CN 111130902B
Authority
CN
China
Prior art keywords
management
switch
information
cloud platform
equipment
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
CN201911402496.4A
Other languages
Chinese (zh)
Other versions
CN111130902A (en
Inventor
冯伟
许胜众
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Fengrunda Technology Co ltd
Original Assignee
Shenzhen Fengrunda Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Fengrunda Technology Co ltd filed Critical Shenzhen Fengrunda Technology Co ltd
Priority to CN201911402496.4A priority Critical patent/CN111130902B/en
Publication of CN111130902A publication Critical patent/CN111130902A/en
Application granted granted Critical
Publication of CN111130902B publication Critical patent/CN111130902B/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
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/02Standardisation; Integration
    • H04L41/0246Exchanging or transporting network management information using the Internet; Embedding network management web servers in network elements; Web-services-based protocols
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/66Arrangements for connecting between networks having differing types of switching systems, e.g. gateways
    • 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/06Management of faults, events, alarms or notifications
    • 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/0803Configuration setting
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a switch management method, which comprises the following steps: establishing connection between a cloud platform and gateway equipment, and hanging the gateway equipment to a network of switch equipment supporting cloud management; when the cloud platform detects the connection information of the gateway equipment, determining a plurality of switch equipment which are broadcast and scanned by the side-hung gateway equipment through an Ethernet layer two private protocol, and uploading the attribute information of the switch equipment to the cloud platform; and receiving configuration information obtained by configuring the attribute information on a display interface by the cloud platform, and managing the switch equipment according to the configuration information. The invention also discloses a switch management device and a computer readable storage medium. The gateway is used as the intermediary equipment to realize the remote management of the switch, so that the remote centralized management of the switch equipment is realized, and the convenience and the management efficiency of the switch management are improved.

Description

Switch management method, device and storage medium
Technical Field
The present invention relates to the field of switch technologies, and in particular, to a switch management method, a switch management apparatus, and a computer-readable storage medium.
Background
As ethernet-based devices such as computers, servers, printers, IP phones, wireless Access Points (APs) are increasing, the application demand for switch devices is also increasing. With the increase of the use frequency and the use number of the switch devices, if the field management mode is adopted to carry out the field management on the switch devices with a large number, the switch devices cannot be processed in time and the labor waste is caused. Therefore, remote management of the switch device by means of remote management becomes the first choice for management of the switch device.
The current remote management schemes for switch devices mainly include the following: one is to map the ports by means of a router, configure the ports and IP addresses one by one to generate corresponding mapping tables, and implement remote management of switch equipment according to the mapping tables; another method is to implement remote access through complex configuration by a remote access protocol (such as SNMP, etc.) to discover the switch device and manage part of the functions of the switch device; and the other method is to connect the cloud platform domain name for remote single-point management in a self-surfing mode of the switch. However, the configuration process is complicated, the switch itself needs more functions, and a long time is consumed for configuration management and maintenance, and the above several remote management schemes for the switch equipment have low management efficiency.
The above is only for the purpose of assisting understanding of the technical aspects of the present invention, and does not represent an admission that the above is prior art.
Disclosure of Invention
The invention mainly aims to provide a switch management method, a switch management device and a computer readable storage medium, and aims to solve the problem that the remote management efficiency of a switch equipment remote management scheme in the prior art is low.
In order to achieve the above object, the present invention provides a switch management method, including the following steps:
establishing connection between a cloud platform and gateway equipment, and hanging the gateway equipment to a network of switch equipment supporting cloud management;
when the connection information of the gateway equipment and the cloud platform is detected, determining a plurality of switch equipment scanned by the side-hung gateway equipment, and uploading the attribute information of the switch equipment to the cloud platform; the side-hung gateway equipment performs broadcast scanning through an Ethernet layer two private protocol;
and receiving configuration information obtained by configuring the attribute information on a display interface by the cloud platform, and performing batch management on the switch equipment according to the configuration information.
Optionally, when connection information between the gateway device and the cloud platform is detected, the step of determining a plurality of switch devices scanned by the wayside gateway device, and uploading attribute information of the switch devices to the cloud platform includes:
if the connection information of the gateway equipment and the cloud platform is detected, whether switch equipment which establishes communication connection with the gateway equipment exists is detected;
if yes, determining a plurality of switch devices which establish communication connection with the gateway device through an Ethernet layer two private protocol as a plurality of switch devices scanned by the by-hung gateway device;
acquiring attribute information of the switch equipment, which is detected by the gateway equipment through a join message, and uploading the attribute information to a cloud platform; the attribute information includes version information, port state information, rate information, an address resolution protocol table, a link layer discovery protocol table, active ethernet information, online time information and log information of the switch device.
Optionally, the step of establishing a connection between the cloud platform and the gateway device includes:
configuring domain name information for the gateway equipment, and determining a cloud platform connected with the gateway equipment according to the domain name information;
when a preset account number logs in the determined cloud platform, configuring registration code information for the determined cloud platform, and enabling the cloud platform to be connected with gateway equipment corresponding to the registration code information to obtain gateway data.
Optionally, the receiving configuration information obtained by configuring the attribute information on a display interface by the cloud platform, and the managing the switch devices according to the configuration information includes:
determining a management authority corresponding to account information according to the account information for logging in a cloud platform;
determining a plurality of target switch devices and target management information corresponding to the target switch devices from the plurality of switch devices according to the management authority;
and receiving target configuration information obtained by configuring the target management information on a display interface by the cloud platform, and managing corresponding target switch equipment according to the target configuration information.
Optionally, the receiving configuration information obtained by configuring the attribute information on a display interface by the cloud platform, and before the step of performing batch management on the switch devices according to the configuration information, the method further includes:
judging whether the cloud platform receives the update information reported by the switch equipment within a preset time according to the last update time and the timing duration;
and if the attribute information is not received, controlling the cloud platform to send an update request to the corresponding gateway equipment so as to upload the updated attribute information of the switch equipment to the cloud platform through the gateway equipment.
Optionally, the receiving the configuration information obtained by configuring the attribute information on the display interface by the cloud platform, and the step of performing batch management on the switch device according to the configuration information includes:
determining management types corresponding to the switch devices according to the attribute information;
determining management information and a management interface corresponding to different management types;
and receiving management configuration information obtained by configuring the management information on the management interface by the cloud platform, and executing management operation on corresponding switch equipment according to the management configuration information.
Optionally, the step of performing a management operation on the corresponding switch device according to the management configuration information includes:
generating a corresponding management command according to the management configuration information, and determining the switch equipment to be managed corresponding to the management command;
sending command data corresponding to the management command to the switch to be managed through gateway equipment so as to be used for analyzing and processing the switch to be managed by the switch equipment to be managed;
and executing management operation on the corresponding switch equipment to be managed by using the command data after the analysis processing.
Optionally, after the step of determining, when connection information between the gateway device and the cloud platform is detected, a plurality of switch devices scanned by the wayside gateway device, and uploading attribute information of the switch devices to the cloud platform, the method further includes:
judging whether the plurality of switch devices have corresponding abnormal information according to the attribute information;
if yes, determining an abnormal type corresponding to the abnormal information according to the attribute information;
generating alarm information corresponding to the abnormal type according to the determined abnormal type, and determining a target terminal and a pushing mode corresponding to the alarm information;
and pushing the alarm information to the determined target terminal in the pushing mode so as to enable a user at the target terminal side to perform exception management according to the alarm information.
In addition, in order to achieve the above object, the present invention further provides a switch management apparatus, which includes a memory, a processor, and a switch management program stored on the processor and operable on the processor, wherein the processor implements the steps of the switch management method when executing the switch management program.
Further, to achieve the above object, the present invention also provides a computer-readable storage medium having stored thereon a switch management program which, when executed by a processor, implements the steps of the switch management method as described above.
In the embodiment of the invention, the cloud platform is connected with the gateway equipment, the gateway equipment is hung to the networking of the switch equipment supporting cloud management, when the connection information of the cloud platform and the gateway equipment is detected, the switch equipment scanned by the hung gateway equipment is determined, the attribute information of the switch equipment scanned by the gateway equipment is uploaded to the cloud platform, the configuration information obtained by configuring the attribute information on a display interface by the cloud platform is received, the corresponding switch equipment scanned by the gateway equipment is managed according to the configuration information, and the gateway equipment is used as intermediary equipment, so that the remote management of the switch is more convenient, and the management efficiency of the switch management is improved.
Drawings
Fig. 1 is a schematic structural diagram of a switch management apparatus in a hardware operating environment according to an embodiment of the present invention;
fig. 2 is a schematic flow chart of a first embodiment of the switch management method of the present invention;
fig. 3 is a flowchart illustrating a second embodiment of a switch management method according to the present invention;
the implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Establishing connection between a cloud platform and gateway equipment, and hanging the gateway equipment to a network of switch equipment supporting cloud management; when the connection information of the gateway equipment and the cloud platform is detected, determining a plurality of switch equipment scanned by the side-hung gateway equipment, and uploading the attribute information of the switch equipment scanned by the side-hung gateway equipment to the cloud platform; the switch devices are determined by broadcast scanning of the side-hung gateway device through an Ethernet layer two private protocol; and receiving configuration information obtained by configuring the attribute information on a display interface by the cloud platform, and performing batch management on the switch equipment according to the configuration information.
The existing remote management scheme for the switch needs to map the port by means of a router to realize remote management, or needs to realize remote access through a remote access protocol (such as SNMP and the like), or needs to configure a network connection cloud platform server by the switch itself, and the configuration processes of the schemes are complex, or needs to consume a large amount of time to perform configuration management, and cannot realize centralized management of all two-layer switches and three-layer switches in a local area network. Therefore, the invention provides a switch management method, a switch management device and a computer readable storage medium, wherein a cloud platform is connected with a gateway device, the gateway device is hung to a network of the switch device supporting cloud management, when the connection information of the cloud platform and the gateway device is detected, a plurality of switch devices scanned by the hung gateway device are determined, the attribute information of the switch device scanned by the gateway device through an Ethernet two-layer private protocol is uploaded to the cloud platform, the configuration information obtained by configuring the attribute information on a display interface by the cloud platform is received, and the corresponding switch devices scanned by the gateway device are managed according to the configuration information. The method comprises the steps of establishing communication connection with switch equipment in the same local area network through gateway equipment, establishing connection between the gateway equipment and a cloud platform, enabling visual remote management to be carried out on the switch equipment which is in communication connection with the gateway equipment through the cloud platform, inputting a domain name of the cloud platform into the gateway equipment in a management process, adding a registration code of the gateway equipment to the cloud platform, carrying out visual attribute information configuration on the scanned switch equipment on a display interface on the cloud platform, achieving remote management on the switch, being simple in management and configuration process, and improving efficiency of remote management of the switch.
Referring to fig. 1, fig. 1 is a schematic structural diagram of a switch management apparatus in a hardware operating environment according to an embodiment of the present invention.
As shown in fig. 1, the switch management apparatus may include: a communication bus 1002, a processor 1001, such as a CPU, a user interface 1003, a network interface 1004, and a memory 1005. The communication bus 1002 is used to implement connection communication among these components. The user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., a WI-FI interface). The memory 1005 may be a high-speed RAM memory or a non-volatile memory (e.g., a magnetic disk memory). The memory 1005 may alternatively be a storage device separate from the processor 1001 described previously.
Those skilled in the art will appreciate that the switch management architecture shown in fig. 1 does not constitute a limitation of the switch management apparatus and may include more or fewer components than shown, or some components may be combined, or a different arrangement of components.
As shown in fig. 1, a memory 1005, which is a kind of computer storage medium, may include therein an operating system, a network communication module, a user interface module, and a motor open-phase detection program.
In the switch management apparatus shown in fig. 1, the network interface 1004 is mainly used for connecting to a backend server and performing data communication with the backend server; the user interface 1003 is mainly used for connecting a client (user side) and performing data communication with the client; and the processor 1001 may be configured to invoke a switch manager stored in the memory 1005 and perform the following operations:
establishing connection between a cloud platform and gateway equipment, and hanging the gateway equipment to a network of switch equipment supporting cloud management;
when the connection information of the gateway equipment and the cloud platform is detected, determining a plurality of switch equipment scanned by the side-hung gateway equipment, and uploading the attribute information of the switch equipment to the cloud platform; the side-hung gateway equipment performs broadcast scanning through an Ethernet layer two private protocol;
and receiving configuration information obtained by configuring the attribute information on a display interface by the cloud platform, and managing the switch devices according to the configuration information.
Alternatively, the processor 1001 may call a switch manager stored in the memory 1005, and further perform the following operations:
if the connection information of the gateway equipment and the cloud platform is detected, detecting whether switch equipment which establishes communication connection with the gateway equipment exists or not;
if the plurality of switch devices exist, determining the plurality of switch devices which establish communication connection with the gateway device through an Ethernet layer two private protocol as the plurality of switch devices scanned by the side-hung gateway device;
acquiring attribute information of the switch equipment detected by the gateway equipment through a join message, and uploading the attribute information to a cloud platform; the attribute information includes version information, port state information, rate information, an address resolution protocol table, a link layer discovery protocol table, active ethernet information, online time information and log information of the switch device.
Alternatively, the processor 1001 may call a switch manager stored in the memory 1005, and further perform the following operations:
configuring domain name information for the gateway equipment, and determining a cloud platform connected with the gateway equipment according to the domain name information;
when a preset account number logs in the determined cloud platform, configuring registration code information for the determined cloud platform, and enabling the cloud platform to be connected with gateway equipment corresponding to the registration code information to obtain gateway data.
Alternatively, the processor 1001 calls the switch management program stored in the memory 1005 and performs the following operations:
determining a management authority corresponding to account information according to the account information for logging in a cloud platform;
determining a plurality of target switch devices and a plurality of target management information corresponding to the target switch devices from the plurality of switch devices according to the management authority;
and receiving target configuration information obtained by configuring the target management information on a display interface by the cloud platform, and managing corresponding switch equipment according to the target configuration information.
Optionally, before the step of receiving the configuration information obtained by configuring the attribute information on the display interface by the cloud platform, and managing the corresponding switch device scanned by the gateway device according to the configuration information, the processor 1001 may call the switch management program stored in the memory 1005, and further perform the following operations:
judging whether the cloud platform receives the update information reported by the switch equipment within a preset time according to the last update time and the timing duration;
and if the attribute information is not received, controlling the cloud platform to send an update request to the corresponding gateway equipment so as to upload the updated attribute information of the switch equipment to the cloud platform through the gateway equipment.
Alternatively, the processor 1001 may call a switch manager stored in the memory 1005, and further perform the following operations:
determining management types corresponding to the switch devices according to the attribute information;
determining management information and a management interface corresponding to different management types;
and receiving management configuration information obtained by configuring the management information on the management interface by the cloud platform, and executing management operation on corresponding switch equipment according to the management configuration information.
Alternatively, the processor 1001 may call a switch manager stored in the memory 1005, and further perform the following operations:
generating a corresponding management command according to the management configuration information, and determining the switch equipment to be managed corresponding to the management command;
sending command data corresponding to the management command to the switch to be managed through gateway equipment so as to be used for analyzing and processing the switch to be managed by the switch equipment to be managed;
and executing management operation on the corresponding switch equipment to be managed by using the analyzed command data.
Optionally, after the step of determining, when connection information of the gateway device and the cloud platform is detected, a switch device scanned by a wayside gateway device, and uploading attribute information of the switch device scanned by the gateway device to the cloud platform, the processor 1001 may call a switch management program stored in the memory 1005, and further perform the following operations:
judging whether the plurality of switch devices have corresponding abnormal information according to the attribute information;
if yes, determining an abnormal type corresponding to the abnormal information according to the attribute information;
generating alarm information corresponding to the abnormal type according to the determined abnormal type, and determining a target terminal and a pushing mode corresponding to the alarm information;
and pushing the alarm information to the determined target terminal in the pushing mode so as to enable a user at the target terminal side to perform exception management according to the alarm information.
Referring to fig. 2, fig. 2 is a flowchart of a first embodiment of a switch management method of the present invention, in this embodiment, the switch management method includes the following steps:
step S10: establishing connection between a cloud platform and gateway equipment, and hanging the gateway equipment to a network of switch equipment supporting cloud management;
here, the purpose of establishing connection between the cloud platform and the gateway device is to implement batch centralized management of the switch devices establishing communication connection with the gateway device by the cloud platform remotely through the gateway device. The specific connection process comprises the following steps: and configuring domain name information for the gateway equipment, and determining a cloud platform connected with the gateway equipment according to the domain name information. Because the domain name information corresponding to the cloud platform is unique, the unique cloud platform connected with the gateway device at present can be determined according to the current domain name information, and when a plurality of domain name information exist, a plurality of cloud platforms corresponding to different domain name information connected with the gateway device can be determined; when a preset account number logs in the determined cloud platform, configuring registration code information for the determined cloud platform, and enabling the cloud platform to be connected with gateway equipment corresponding to the registration code information to obtain gateway data. Specifically, after a cloud platform connected with a gateway device is determined, whether a preset account number logs in the determined cloud platform is detected, if the preset account number logs in the determined cloud platform, registration code information is configured for the determined cloud platform, the cloud platform and the gateway device corresponding to the registration code information establish communication connection according to the registration code information, and after the communication connection is established, the determined cloud platform can request gateway data from the gateway device establishing communication connection with the determined cloud platform; the preset account is an account which is registered by a user in advance, and the preset account can be a common account which is associated with a specified gateway device, namely, after logging in the account, the communication connection between the cloud platform and the specified gateway device can be established, or can be a high-grade account which is associated with any gateway device, namely, after logging in the account, the communication connection between the cloud platform and any gateway device can be established. If the gateway data of the plurality of gateway devices need to be requested, the domain names of the cloud platform are input into the corresponding gateway devices according to the steps, and then the registration codes of the plurality of gateway devices are all added to the cloud platform, so that the cloud platform can obtain the gateway data of the plurality of gateway devices. In addition, after the cloud platform is connected with the gateway device, the gateway device is hung to the networking of the switch device supporting cloud management, so that the gateway device is prevented from being connected between the router and the switch device in series, a plurality of other data packets pass through the gateway device, and the transmission efficiency is reduced. The switch device supporting cloud management and the gateway device are in the same local area network, the collection and management of switch information are realized through a customized private protocol and an original socket, and the cloud platform is deployed on an external server.
Step S20: when connection information between a cloud platform and gateway equipment is detected, determining a plurality of switch equipment scanned by the side-hung gateway equipment, and uploading attribute information of the switch equipment to the cloud platform;
after the cloud platform is connected with the gateway device, the connection information between the cloud platform and the gateway device needs to be further detected, namely for the cloud platform and the gateway device which are connected, in order to ensure that the cloud platform and the gateway device can normally communicate with each other, the connection information between the cloud platform and the gateway device needs to be detected, and the gateway data request is prevented from being mistaken due to connection errors and the like of the cloud platform and the gateway device. And if the cloud platform detects the connection information of the gateway equipment, detecting whether switch equipment which establishes communication connection with the gateway equipment exists or not. In this embodiment, the gateway device in the same local area network as the switch device collects and manages the switch information through the customized ethernet two-layer private protocol and the original socket, so that when the existence of the switch device in communication connection with the gateway device is detected, the plurality of switch devices in communication connection with the gateway through the customized ethernet two-layer private protocol are determined as the plurality of switch devices scanned by the gateway device, the attribute information of the determined switch device detected by the gateway device through the join message is acquired, and the attribute information is uploaded to the cloud platform. The attribute information includes version information, port state information, rate information, an address resolution protocol table, a link layer discovery protocol table, active ethernet information, online time information and log information of the switch device. Specifically, the gateway device sends a Discovery message to the switch device, after the switch makes an ask response, the gateway device sends a Rejoin request to Rejoin and report corresponding attribute information of the switch device, after receiving the request, the switch device returns the state of the switch and the related attribute information acquired through the Join message to the gateway device, and reports a host table and link layer Discovery protocol information to the gateway device at regular time; the gateway device also sends an update command to the switch device at regular time, and the switch device also replies update data to the gateway device at regular time after receiving the update command.
Step S30: and receiving configuration information obtained by configuring the attribute information on a display interface by the cloud platform, and performing batch management on the switch equipment according to the configuration information.
Before receiving configuration information obtained by configuring the attribute information on a display interface by a cloud platform, the gateway device uploads the attribute information of all switches acquired by the current gateway device to the cloud platform at regular time, but under the condition of longer timing time and the like, the attribute information of the switches acquired by the current gateway device is not updated in time before the attribute information is configured, so that the problems of configuration error or inaccurate configuration of the attribute information and the like can be caused. Therefore, this embodiment provides a better implementation manner, before receiving configuration information obtained by configuring the attribute information on the display interface by the cloud platform, according to the last update time and the timing duration, it is determined whether the cloud platform receives update information regularly reported by the switch device within a preset time, and if the cloud platform does not receive the update information regularly reported by the switch device within the preset time, the cloud platform is controlled to send an update request to the corresponding gateway device, so as to upload the updated attribute information of the switch device to the cloud platform through the gateway device, configure the updated attribute information on the display interface of the cloud platform, and receive configuration information obtained by configuring the attribute information on the display interface by the cloud platform, thereby preventing an error in information configuration and performing error management on the switch device. The preset time is a time threshold relative to the display time of the current configuration page and the last update time, that is, if the difference between the display time of the current configuration page and the last update time is less than the preset time, the cloud platform is controlled to send an update request to the gateway device, and the latest attribute information of the switch device is acquired.
Receiving configuration information obtained by configuring the attribute information on a display interface by the cloud platform, and determining management types corresponding to the switch devices according to the attribute information in the process of batch management of the switch devices according to the configuration information; determining management information and a management interface corresponding to different management types according to the different management types; and receiving management configuration information obtained by configuring the management information on the management interface by the cloud platform, and executing management operation on corresponding switch equipment according to the management configuration information. The present embodiment provides a better management type classification manner, determining four management types corresponding to the scanned switch device according to the attribute information, specifically, determining whether the switch device needs to perform port configuration according to the attribute information, if so, determining a management type corresponding to the switch device that needs to be updated as a port management type according to the attribute information, generating port management information corresponding to the port management type, and determining a management interface corresponding to the port management type as a port management interface; judging whether the version information of the switch equipment is the latest version or not according to the attribute information, if not, upgrading the version of the switch equipment, determining that the management type corresponding to the switch equipment needing version upgrading is an upgrading management type according to the attribute information, generating upgrading management information corresponding to the upgrading management type, and determining that a management interface corresponding to the upgrading management type is an upgrading management interface; judging whether the switch equipment needs to be restarted or not according to the attribute information, if the switch equipment needs to be restarted, determining the switch equipment needing to be restarted as a restarting management type according to the attribute information, generating restarting management information corresponding to the restarting management type, and determining a management interface corresponding to the restarting management type as a restarting management interface; judging whether switch equipment needing to be added or deleted exists according to the attribute information, if so, determining that the management type corresponding to the switch equipment needing to be added or deleted is an adding and deleting management type according to the attribute information, generating adding and deleting management information corresponding to the adding and deleting management type, and determining that a management interface corresponding to the port management type is a port management interface. It is noted that the management type classification is only exemplary and not limiting.
After the management type, and the management information and the management interface corresponding to the corresponding management type are determined, receiving management configuration information obtained by configuring the management information on the management interface by the cloud platform, and executing management operation on corresponding switch equipment according to the management configuration information. In a preferred embodiment, the step of performing a management operation on the corresponding switch device according to the management configuration information obtained by the configuration includes: generating a corresponding management command according to the configured management information, and determining the switch equipment to be managed corresponding to the management command; finding corresponding equipment to be managed according to the physical address of the switch equipment, and sending command data corresponding to the management command to the determined corresponding switch to be managed through the gateway equipment so as to analyze and process the switch equipment to be managed; and executing management operation on the corresponding switch equipment to be managed by using the command data after the analysis processing. If the configured management information is port management information, generating a port management command corresponding to the port management information, determining switch equipment to be managed corresponding to the port management command and needing port management, finding corresponding switch equipment to be managed according to the physical address of the determined switch equipment to be managed and needing port management, sending port management command data corresponding to the port management command to a switch to be managed connected with the gateway equipment and needing port management through the gateway equipment, analyzing the port management command data when detecting that the corresponding switch equipment to be managed receives the port management command data, and executing port management operation corresponding to a port management type on the corresponding switch equipment to be managed by using the analyzed port management command data. When the management information is upgrade management information, restart management information, or add/delete management information, the same steps are used to perform management operations on the corresponding switch device, which is not described herein again.
On the other hand, in some specific application scenarios, different management authorities are usually allocated to different account information for different management requirements of the switch. For example, the management authority corresponding to one type of account information may only include upgrade and restart management, the management authority corresponding to another type of account information may include upgrade, restart, add/delete, and restart management, some switches capable of being managed by one account may be one, and some target devices capable of being managed by another account may be multiple. Therefore, in a preferred embodiment, the management authority corresponding to the account information is determined according to the account information logged in the cloud platform, where the management authority may be a management authority automatically allocated according to registration information during registration, and if the current account information is judged to be a user account according to the registration information, the management authority automatically allocated corresponding to the user account is upgraded and restarted, and if the current account information is judged to be an administrator account according to the registration information, the management authority automatically allocated corresponding to the user account is upgraded, restarted, added and deleted and configured with a port, of course, the administrator account may be further divided into a common administrator account, a middle-level administrator account, a high-level administrator account, and the like according to requirements, and then the corresponding management authority is allocated according to management accounts of different levels, and similarly, the user accounts may be further classified; the management authority may also be a management authority obtained through authorization of other account information, for example, it may be determined whether the current account information is an administrator account or a user account according to the registration information, where the user account can only perform corresponding authorization operation after logging in through the administrator account, so that the user account can obtain corresponding management authority. And then determining target switch equipment which can be managed by the current account information and target management information which can be managed by the current account information and corresponds to the target switch equipment from the switch equipment scanned by the gateway equipment according to the management authority. And then, after the target management information is configured on a display interface corresponding to the target management information on the cloud platform, receiving target configuration information obtained by configuring the target management information on the display interface by the cloud platform, and managing corresponding switch equipment according to the target configuration information.
In the embodiment, the cloud platform is connected with the gateway device, the gateway device is hung to the networking of the switch device supporting cloud management, when the connection information of the cloud platform and the gateway device is detected, the plurality of switch devices scanned by the gateway device through the Ethernet two-layer private protocol broadcast are determined, the attribute information of the plurality of switch devices scanned by the gateway device is uploaded to the cloud platform, the target configuration information obtained by configuring the target management information on a display interface by the cloud platform is received, the plurality of switch devices are managed according to the target configuration information, the remote visual management of the switch devices is realized, the port mapping is not required in the remote management process, the remote access by means of a remote access protocol is not required, the remote management of the switch devices can be realized only by means of simple configuration operation of the gateway device, the management efficiency of the remotely managed switch is improved, and the plurality of switch devices can be remotely managed in batches.
Referring to fig. 3, fig. 3 is a flowchart of a second embodiment of a switch management method according to the present invention, in this embodiment, the switch management method includes the following steps:
step S11: establishing connection between a cloud platform and gateway equipment, and hanging the gateway equipment to a network of switch equipment supporting cloud management;
step S12: when the connection information of the cloud platform and the gateway equipment is detected, determining a plurality of switch equipment scanned by the side-hung gateway equipment, and uploading the attribute information of the switch equipment to the cloud platform;
step S13: judging whether the scanned switch equipment corresponds to abnormal information or not according to the attribute information;
step S14: if yes, determining an abnormal type corresponding to the abnormal information according to the attribute information;
step S15: generating alarm information corresponding to the abnormal type according to the determined abnormal type, and determining a target terminal and a pushing mode corresponding to the alarm information;
step S16: pushing the alarm information to the determined target terminal in the pushing mode so that a user at the target terminal side can perform exception management according to the alarm information;
step S17: and if the attribute information does not exist, receiving configuration information obtained by configuring the attribute information on a display interface by the cloud platform, and managing the corresponding switch equipment scanned by the gateway equipment according to the configuration information.
In this embodiment, in establishing a connection between a cloud platform and a gateway device, and in the networking of a switch device that supports cloud management and is side-hung to the gateway device, when connection information between the cloud platform and the gateway device is detected, after a step of determining a plurality of switch devices scanned by the side-hung gateway device, and uploading attribute information of the plurality of switch devices to the cloud platform, it is determined whether the switch devices scanned by the gateway device have corresponding abnormal information according to the attribute information, and if the switch devices scanned by the gateway device have corresponding abnormal information, an abnormal type corresponding to the abnormal information is determined according to the attribute information, where the abnormal type may include: ARP (Address Resolution Protocol) Address conflict, port PAUSE frame (flow control frame sent by MAC control sublayer in full duplex mode of Ethernet) exception, port CRC (Cyclic Redundancy Check code) error, port occupancy exception, port rate exception, POE (Power Over Ethernet ) total Power overload, and port BOLCK (block) of MSTP (Multi-Service Transfer Platform). And generating alarm information corresponding to the abnormal type according to the determined abnormal type, and determining a target terminal corresponding to the alarm information and a pushing mode corresponding to the target terminal. If the abnormal type is that the port rate is abnormal, generating corresponding port rate abnormal alarm information, and after the alarm information is generated, determining a target terminal corresponding to the current alarm information before sending the alarm information to corresponding terminal equipment, wherein the target terminal can be a mobile phone, a computer and other terminal equipment, the mobile phone can comprise mobile phones corresponding to different physical addresses, and the computer also comprises computers corresponding to different physical addresses and other terminal equipment. After the target terminal is determined, a push mode corresponding to the current target terminal is determined, where the push mode may include: e.g. mail, short message, web page, weChat, QQ, etc. After the alarm information, a target terminal corresponding to the alarm information and a pushing mode corresponding to the target terminal are determined, the alarm information can be pushed to the determined target terminal through the determined pushing mode by using a cloud platform, so that a user at the target terminal side can timely perform abnormal management according to the alarm information; if the scanned switch equipment does not have corresponding abnormal information, after the attribute information is configured on a display interface of the cloud platform, the configuration information obtained by configuring the attribute information on the display interface by the cloud platform is received, and the switch equipment scanned by the gateway equipment is managed according to the configuration information.
According to the method, when connection information of a cloud platform and gateway equipment is detected, a plurality of switch equipment scanned by the gateway equipment is determined, attribute information of the switch equipment scanned by the gateway equipment is uploaded to the cloud platform, whether abnormal switch equipment exists in the scanned switch equipment is judged according to the attribute information, if the abnormal switch equipment exists, an abnormal type corresponding to the abnormal information is determined according to the attribute information, alarm information corresponding to the abnormal type is generated according to the determined abnormal type, a target terminal and a pushing mode corresponding to the alarm information are determined, the alarm information is pushed to the determined target terminal in the pushing mode, a target terminal side user conducts abnormal management according to the alarm information, the problem that the abnormal information influences normal management of the switch equipment is prevented, or the problem that the abnormal information is ignored by the user to cause switch remote management errors is solved, the remote centralized management of the switch equipment is achieved, and the efficiency and the effect of the switch management are improved.
In addition, an embodiment of the present invention further provides a switch management apparatus, where the switch management apparatus includes a memory, a processor, and a switch management program that is stored on the processor and is executable on the processor, and the processor implements the steps of the switch management method when executing the switch management program.
Furthermore, an embodiment of the present invention further provides a computer-readable storage medium, where a switch management program is stored on the computer-readable storage medium, and when executed by a processor, the switch management program implements the steps of the switch management method described above.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising a … …" does not exclude the presence of another identical element in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are only for description, and do not represent the advantages and disadvantages of the embodiments.
Through the description of the foregoing embodiments, it is clear to those skilled in the art that the method of the foregoing embodiments may be implemented by software plus a necessary general hardware platform, and certainly may also be implemented by hardware, but in many cases, the former is a better implementation. Based on such understanding, the technical solution of the present invention or the portions contributing to the prior art may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) as described above and includes several instructions for enabling a terminal device (which may be a mobile phone, a computer, a server, a television, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (6)

1. A switch management method, characterized by comprising the steps of:
establishing connection between a cloud platform and gateway equipment, and hanging the gateway equipment to a networking of switch equipment supporting cloud management, wherein domain name information is configured for the gateway equipment, the cloud platform associated with the gateway equipment is confirmed according to the configured domain name information, and registration code information is configured for the cloud platform when a preset account number logs in the cloud platform, so that the cloud platform is connected with the gateway equipment corresponding to the registration code to acquire gateway data;
when the connection information of the gateway equipment and the cloud platform is detected, determining a plurality of switch equipment scanned by the side-hung gateway equipment, and uploading the attribute information of the switch equipment to the cloud platform; the side-hung gateway equipment performs broadcast scanning through an Ethernet two-layer private protocol, wherein whether the cloud platform receives the update information reported by the switch equipment within a preset time is judged according to the last update time and the timing duration, and if the update information is not received, the cloud platform is controlled to send an update request to the corresponding gateway equipment so as to upload the updated attribute information of the switch equipment to the cloud platform through the gateway equipment;
receiving configuration information obtained by configuring the attribute information on a display interface by a cloud platform, and performing batch management on the switch devices according to the configuration information, wherein the management authority corresponding to account information is determined according to the account information logged in the cloud platform, a plurality of target switch devices and a plurality of target management information corresponding to the target switch devices are determined from the switch devices according to the management authority, the target configuration information obtained by configuring the target management information on the display interface by the cloud platform is received, and the corresponding switch devices are managed by the target configuration information;
when detecting the connection information between the gateway device and the cloud platform, the step of determining the plurality of switch devices scanned by the side-hung gateway device and uploading the attribute information of the plurality of switch devices scanned by the gateway device to the cloud platform includes:
if the connection information of the gateway equipment and the cloud platform is detected, whether switch equipment which establishes communication connection with the gateway equipment exists is detected;
if the plurality of switch devices exist, determining the plurality of switch devices which establish communication connection with the gateway device through an Ethernet layer two private protocol as the plurality of switch devices scanned by the side-hung gateway device;
acquiring attribute information of the switch devices, which is detected by the gateway device through a join message, and uploading the attribute information to a cloud platform;
the attribute information includes version information, port state information, rate information, an address resolution protocol table, a link layer discovery protocol table, active ethernet information, online time information and log information of the switch device.
2. The switch management method according to claim 1, wherein the receiving the configuration information obtained by configuring the attribute information on the display interface by the cloud platform, and the step of performing batch management on the plurality of switch devices according to the configuration information includes:
determining management types corresponding to the switch devices according to the attribute information;
determining management information and a management interface corresponding to different management types;
and receiving management configuration information obtained by configuring the management information on the management interface by the cloud platform, and executing management operation on corresponding switch equipment according to the management configuration information.
3. The switch management method according to claim 2, wherein the step of performing a management operation on the corresponding switch device according to the management configuration information includes:
generating a corresponding management command according to the management configuration information, and determining the switch equipment to be managed corresponding to the management command;
sending command data corresponding to the management command to the switch to be managed through gateway equipment so as to be used for analyzing and processing the switch to be managed by the switch equipment to be managed;
and executing management operation on the corresponding switch equipment to be managed by using the analyzed command data.
4. The switch management method according to any one of claims 1 to 3, wherein after the step of determining, when the connection information of the gateway device to the cloud platform is detected, a plurality of switch devices scanned by the wayside gateway device, and uploading attribute information of the plurality of switch devices to the cloud platform, the method further comprises:
judging whether the plurality of switch devices have corresponding abnormal information according to the attribute information;
if yes, determining an abnormal type corresponding to the abnormal information according to the attribute information;
generating alarm information corresponding to the abnormal type according to the determined abnormal type, and determining a target terminal and a pushing mode corresponding to the alarm information;
and pushing the alarm information to the determined target terminal in the pushing mode so as to enable a user at the target terminal side to perform exception management according to the alarm information.
5. A switch management apparatus, comprising a memory, a processor, and a switch management program stored in the memory and executable on the processor, wherein the processor implements the steps of the switch management method according to any one of claims 1 to 4 when executing the switch management program.
6. A computer-readable storage medium, having a switch management program stored thereon, which, when executed by a processor, implements the steps of the switch management method according to any one of claims 1-4.
CN201911402496.4A 2019-12-27 2019-12-27 Switch management method, device and storage medium Active CN111130902B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911402496.4A CN111130902B (en) 2019-12-27 2019-12-27 Switch management method, device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911402496.4A CN111130902B (en) 2019-12-27 2019-12-27 Switch management method, device and storage medium

Publications (2)

Publication Number Publication Date
CN111130902A CN111130902A (en) 2020-05-08
CN111130902B true CN111130902B (en) 2023-04-14

Family

ID=70505895

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911402496.4A Active CN111130902B (en) 2019-12-27 2019-12-27 Switch management method, device and storage medium

Country Status (1)

Country Link
CN (1) CN111130902B (en)

Families Citing this family (4)

* 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
CN113037541B (en) * 2021-02-23 2023-05-12 深信服科技股份有限公司 Network equipment management method, equipment and storage medium
TWI801096B (en) * 2022-01-14 2023-05-01 陳立新 Method of extending pbx communication functions and connectivity
CN114866432B (en) * 2022-04-11 2023-10-17 张槐权 Remote management and monitoring system and method for network switch

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107566165A (en) * 2017-08-18 2018-01-09 国网山东省电力公司信息通信公司 A kind of method and system for finding and disposing electric power cloud data center available resources

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8483367B1 (en) * 2012-08-13 2013-07-09 Ringcentral, Inc. Messaging in a hosted private branch exchange
CN105207853B (en) * 2015-10-12 2018-09-18 深圳市万网博通科技有限公司 A kind of LAN method for managing and monitoring
CN109120726A (en) * 2018-10-30 2019-01-01 全讯汇聚网络科技(北京)有限公司 A kind of multi-router VPN automatic network-building method and system based on collection medium-long range control

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107566165A (en) * 2017-08-18 2018-01-09 国网山东省电力公司信息通信公司 A kind of method and system for finding and disposing electric power cloud data center available resources

Also Published As

Publication number Publication date
CN111130902A (en) 2020-05-08

Similar Documents

Publication Publication Date Title
CN111130902B (en) Switch management method, device and storage medium
CN109379206B (en) Management method of network function information and related equipment
RU2562438C2 (en) Network system and network management method
JP5364671B2 (en) Terminal connection status management in network authentication
US8543674B2 (en) Configuration of routers for DHCP service requests
US20080184354A1 (en) Single sign-on system, information terminal device, single sign-on server, single sign-on utilization method, storage medium, and data signal
US20050282523A1 (en) Network setting method and program and storage medium thereof
WO2006005790A1 (en) System, network entities and computer programs for configuration management of a dynamic host configuration protocol framework
KR20080055915A (en) A communication device and a system for managing the local devies remotely and the method thereof
CN110740490A (en) Terminal network access method, gateway equipment, system, storage medium and device
EP1819133A1 (en) Method and System for Conserving Battery Power in Wireless Devices Operating in a Wireless Local Area Network
CN111711659A (en) Method and device for remotely managing terminal, equipment and storage medium thereof
KR101139836B1 (en) Method and system for two-phase mechanism for discovering web services based management service
CN111147314A (en) Switch upgrading method, device and storage medium
US20160294465A1 (en) Information collection system, relay terminal, control method for relay terminal to connect to center system, sensor terminal, and control method for sensor terminal to connect to center system
CN109510717B (en) Method, device, equipment and storage medium for acquiring information of node equipment
CN101771529B (en) Terminal apparatus, relay apparatus and processing method
CN110995744B (en) Message transmission method and device, software defined network switch and storage medium
CN110278558B (en) Message interaction method and WLAN system
JP2016144186A (en) Communication information controller, relay system, communication information control method, and communication information control program
CN112953764A (en) Networking terminal configuration method and device, networking terminal and computer storage medium
US7370227B2 (en) Desktop computer blade fault identification system and method
US20230216796A1 (en) Embedding an artificially intelligent neuron capable of packet inspection and system optimization in ipv6 enabled wlan networks
CN115174528A (en) Equipment address control method, device and system
CN116032753A (en) Mesh network updating system and method thereof

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