CN113328897B - Method, device, equipment and medium for acquiring running state of network equipment - Google Patents

Method, device, equipment and medium for acquiring running state of network equipment Download PDF

Info

Publication number
CN113328897B
CN113328897B CN202110774238.XA CN202110774238A CN113328897B CN 113328897 B CN113328897 B CN 113328897B CN 202110774238 A CN202110774238 A CN 202110774238A CN 113328897 B CN113328897 B CN 113328897B
Authority
CN
China
Prior art keywords
equipment
target
target network
network
state
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
CN202110774238.XA
Other languages
Chinese (zh)
Other versions
CN113328897A (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.)
Antiy Technology Group Co Ltd
Original Assignee
Antiy Technology Group 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 Antiy Technology Group Co Ltd filed Critical Antiy Technology Group Co Ltd
Priority to CN202110774238.XA priority Critical patent/CN113328897B/en
Publication of CN113328897A publication Critical patent/CN113328897A/en
Application granted granted Critical
Publication of CN113328897B publication Critical patent/CN113328897B/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/12Discovery or management of network topologies
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4641Virtual LANs, VLANs, e.g. virtual private networks [VPN]

Landscapes

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

Abstract

The invention provides a method, a device, equipment and a medium for acquiring the running state of network equipment, wherein the method comprises the following steps: determining a simulated network topology formed by the connection of a plurality of device packages for characterizing corresponding network devices; the device package comprises package information used for representing corresponding network devices; responding to an acquisition instruction aiming at the running state of the target network equipment, and determining the encapsulation information encapsulated by the target equipment according to the simulated network topology; the target network encapsulation corresponds to the target network device; and remotely logging in the target network equipment according to the packaging information packaged by the target equipment so as to obtain the running state of the target network equipment. According to the scheme, the acquisition efficiency of the running state of the network equipment can be improved.

Description

Method, device, equipment and medium for acquiring running state of network equipment
Technical Field
The embodiment of the invention relates to the technical field of networks, in particular to a method, a device, equipment and a medium for acquiring the running state of network equipment.
Background
In a network environment, in order to facilitate management of network devices, it is necessary to divide a plurality of network devices into different virtual local area networks. After networking of a plurality of network devices is completed according to a networking scheme, each network device works in the virtual local area network to which the network device belongs. In the operation process of the network device, the operation state of each network device often needs to be acquired, so as to monitor the operation of each network device. In the related art, if the operation state of the network device needs to be acquired, the network device needs to be manually queried and acquired.
Disclosure of Invention
Based on the problem of low acquisition efficiency of the running state of the network device, embodiments of the present invention provide a method, an apparatus, a device and a medium for acquiring the running state of the network device, which can improve the acquisition efficiency of the running state of the network device.
In a first aspect, an embodiment of the present invention provides a method for acquiring an operating state of a network device, including:
determining a simulated network topology formed by the connection of a plurality of device packages for characterizing corresponding network devices; the device package comprises package information used for representing corresponding network devices;
responding to an acquisition instruction aiming at the running state of the target network equipment, and determining the encapsulation information encapsulated by the target equipment according to the simulated network topology; the target network encapsulation corresponds to the target network device;
and remotely logging in the target network equipment according to the packaging information packaged by the target equipment so as to obtain the running state of the target network equipment.
Preferably, the first and second electrodes are formed of a metal,
the determining a simulated network topology formed by connecting a plurality of device packages for characterizing corresponding network devices comprises:
obtaining a plurality of equipment packages for representing corresponding network equipment on a pre-established topology editing page, and connecting the equipment packages;
configuring equipment packages according to related information of the network equipment to obtain package information corresponding to each equipment package;
and determining the network topology on the topology editing page after the configuration is finished as the simulated network topology.
Preferably, the remotely logging in the target network device according to the encapsulation information encapsulated by the target device includes:
according to the encapsulation information encapsulated by the target equipment, determining a virtual local area network to which the target network equipment belongs and determining remote login information of the target network equipment;
and creating virtual inquiry equipment, and configuring an IP address belonging to the virtual local area network for the virtual inquiry equipment so that the virtual inquiry equipment remotely logs in the target network equipment by using the remote login information.
Preferably, after the creating the virtual query device, the method further includes: sending a pre-generated state query script to the virtual query device;
the acquiring the operating state of the target network device includes: loading the state query script into the target network equipment by using the virtual query equipment so as to enable the target network equipment to run the state query script; receiving a state query result sent by the target network equipment after the state query script is operated; the state query result comprises the running state of the target network equipment.
Preferably, the status query script is generated according to an executable script type of the target network device.
Preferably, after the obtaining the operating state of the target network device, the method further includes:
and updating the running state of the target network equipment into the encapsulation information encapsulated by the target equipment.
Preferably, after the updating the operating state of the target network device into the encapsulation information encapsulated by the target device, the method further includes: and responding to a viewing instruction of the running state of the target network equipment, and extracting and displaying the running state from the packaging information packaged by the target equipment.
In a second aspect, an embodiment of the present invention further provides an apparatus for acquiring an operating status of a network device, including:
the topology determining unit is used for determining a simulated network topology formed by connecting a plurality of device packages for representing corresponding network devices; the device package comprises package information used for representing corresponding network devices;
the encapsulation information determining unit is used for responding to an acquisition instruction aiming at the running state of the target network equipment and determining encapsulation information encapsulated by the target equipment according to the simulated network topology; the target network encapsulation corresponds to the target network device;
and the running state acquisition unit is used for remotely logging in the target network equipment according to the packaging information packaged by the target equipment so as to acquire the running state of the target network equipment.
In a third aspect, an embodiment of the present invention further provides a computing device, which includes a memory and a processor, where the memory stores a computer program, and the processor, when executing the computer program, implements the method described in any embodiment of this specification.
In a fourth aspect, the present invention further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed in a computer, the computer program causes the computer to execute the method described in any embodiment of the present specification.
The embodiment of the invention provides a method, a device, equipment and a medium for acquiring the running state of network equipment, wherein a simulated network topology is formed by connecting a plurality of equipment packages, the equipment packages are used for representing corresponding network equipment, and the equipment packages comprise package information used for representing corresponding network equipment, so that when the running state of target network equipment needs to be acquired, the package information of the target equipment packages corresponding to the target network equipment can be determined according to the simulated network topology, the target network equipment can be remotely logged in by utilizing the package information, the running state of the target network equipment is acquired, and the acquisition efficiency of the running state of the network equipment is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a flowchart of a method for acquiring an operating status of a network device according to an embodiment of the present invention;
FIG. 2 is a flowchart of a method for remotely logging into a network device according to an embodiment of the present invention;
FIG. 3 is a diagram of a hardware architecture of a computing device according to an embodiment of the present invention;
fig. 4 is a structural diagram of an apparatus for acquiring an operation status of a network device according to an embodiment of the present invention;
fig. 5 is a structural diagram of another apparatus for acquiring an operation status of a network device according to an embodiment of the present invention;
fig. 6 is a structural diagram of an apparatus for acquiring an operation status of another network device according to an embodiment of the present invention;
fig. 7 is a structural diagram of an apparatus for acquiring an operation status of a network device according to another embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer and more complete, the technical solutions in the embodiments of the present invention will be described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention, and based on the embodiments of the present invention, all other embodiments obtained by a person of ordinary skill in the art without creative efforts belong to the scope of the present invention.
As described above, in the related art, a plurality of Network devices need to be divided into different Virtual Local Area Networks (VLANs) to facilitate management of the Network devices. For example, an enterprise may include 20 hosts, 2 for financial, 3 for administrative, and 15 for research and development. The 20 hosts can be divided into different virtual local area networks according to different work types for networking, for example, the divided virtual local area networks are VLAN1, VLAN2 and VLAN 3. After networking is completed according to the networking scheme, each network device works in the virtual local area network to which the network device belongs. In the operation process of the network device, the operation state of each network device often needs to be acquired, so as to monitor the operation of each network device. In the related art, if the operation state of the network device needs to be acquired, the network device needs to be manually queried and acquired, but the manual acquisition efficiency is low. Considering that the network device forms a simulated network topology when networking is implemented, it may be considered to use the simulated network topology and use a telnet mode to obtain an operating state of the network device.
Specific implementations of the above concepts are described below.
Referring to fig. 1, an embodiment of the present invention provides a method for acquiring an operating status of a network device, where the method includes:
step 100, determining a simulated network topology formed by connecting a plurality of device packages for representing corresponding network devices; the device package includes package information for characterizing the corresponding network device.
102, responding to an acquisition instruction aiming at the running state of target network equipment, and determining encapsulation information encapsulated by the target equipment according to the simulated network topology; the target network encapsulation corresponds to the target network device.
And step 104, remotely logging in the target network equipment according to the encapsulation information encapsulated by the target equipment so as to obtain the running state of the target network equipment.
In the embodiment of the invention, the simulated network topology is formed by packaging and connecting a plurality of devices, the device package is used for representing the corresponding network device, and the device package comprises the packaging information used for representing the corresponding network device, so that when the running state of the target network device needs to be obtained, the packaging information of the target device package corresponding to the target network device can be determined according to the simulated network topology, the target network device can be remotely logged in by utilizing the packaging information, the running state of the target network device is further obtained, and the obtaining efficiency of the running state of the network device is improved.
The manner in which the various steps shown in fig. 1 are performed is described below.
First, for step 100, a simulated network topology formed by connecting a plurality of device packages for characterizing corresponding network devices is determined; the device package includes package information for characterizing the corresponding network device.
For the purpose of describing the present embodiment, two concepts are introduced here:
entity network topology: refers to a network topology formed by a plurality of network devices after physical connection. In the physical network topology, the connection relationship among the plurality of network devices is referred to as a physical connection relationship.
Simulating a network topology: the network topology is formed by adding the plurality of network devices to a topology editing page of drawing software in a corresponding graph mode in drawing software which can be used for drawing a topology graph, and then connecting the graphs of the network devices by using connecting lines. In the simulated network topology, the connection relationship between the plurality of network devices is referred to as a simulated connection relationship.
In one embodiment of the present invention, the simulated network topology may be generated during the networking of the plurality of network devices, so that the simulated network topology may be directly determined as the simulated network topology in this step 100. The network device may also be configured to generate a simulated network topology for the plurality of network devices in order to facilitate monitoring of the operating state of each network device after networking inside the enterprise and management of each network device, so as to implement management of the plurality of network devices by using the simulated network topology.
Specifically, the manner of generating the simulated network topology in step 100 may include: obtaining a plurality of equipment packages for representing corresponding network equipment on a pre-established topology editing page, and connecting the equipment packages; configuring equipment packages according to related information of the network equipment to obtain package information respectively corresponding to each equipment package; and determining the network topology on the topology editing page after the configuration is finished as the simulated network topology.
The generation of the simulated network topology is done in response to user input operational instructions. After the device packages are connected, the simulated connection relationship between the device packages in the simulated network topology is the same as the entity connection relationship between the network devices in the entity network topology.
It should be noted that the topology editing page may be created on existing drawing software such as AutoCAD, Visio, and the like, but function upgrade needs to be performed on the existing drawing software, for example, a building function of device packaging and an identification function of topology information can be realized; the topology editing page can also be created on newly developed rendering software.
In one embodiment of the invention, a device package is used to characterize a feature set of a corresponding network device. The device package may include graphical elements, interface elements, and textual elements.
The graphic elements are used for representing the graphs of the corresponding network devices, different types of network devices can use different graphic elements, and a user can determine the type of the network device corresponding to the device package according to the graphic elements of the device package displayed on the topology editing page. The types of network devices are, for example, desktop hosts, notebooks, routers, switches, firewalls, cameras, etc. The created graphic elements may be stored in a graphic library.
The Interface elements are used to represent each Interface included in the network device, for example, the network device includes a console Interface, an optical port, a USB Interface, a Type-C Interface, a Universal Asynchronous Receiver/Transmitter (UART) Interface, a High-Definition Multimedia Interface (HDMI), a Serial Peripheral Interface (SPI), and the like. In this embodiment, the interface element may be edited, for example, by adding a delete or change interface. The created interface elements may be stored in an interface library.
In an embodiment of the present invention, the interface element may also be displayed on a topology editing page, the interface element and a graphic element of a corresponding device may form an integral, when an interface element is used to generate a device package corresponding to a network device, a graphic element corresponding to the network device needs to be selected from a graphic library first, and then the interface element is added to the graphic element, and the interface element may be exported from the interface library.
When the device package includes an interface element, the device package is connected to other device packages through the interface element; when a device package does not include an interface element, the device package is connected to other device packages through a graphic element. Therefore, the simulated connection relationship obtained on the topology editing page includes any one or more of the following connection relationships: the connection relationship between the graphic elements and the graphic elements, the connection relationship between the graphic elements and the interface elements, and the connection relationship between the interface elements and the interface elements.
The text element is used for recording the packaging information of the network device, and the packaging information may include: hardware information and software information. The hardware information may include: device type, device identifier, interface type, interface identifier, device self parameter information (such as processor model, frequency, hard disk capacity, memory size, etc.), operating system information, etc., and the software information may include: IP address, MAC address, vendor information, vendor ID, network device login information, networking information, operational status information, etc. All information related to the network device can be stored in the encapsulation information in a mode of configuring the network device in the simulated network topology. The package information can be displayed or hidden on the topology editing page according to different configurations. For example, when the packaged information is not viewed or edited, the packaged information is in a hidden state, and when viewing or editing is required, the packaged information can be displayed. The display mode can include: and displaying in a display window form or copying the packaging information to other video display units for displaying and the like.
The simulated network topology is obtained on the topology editing page, so that the entity connection relation among the network devices in the entity network topology can be visually displayed, and the recording and storage of the related information of each network device can be realized through the packaging information in the device packaging, thereby facilitating the management of each network device.
Then, for step 102, in response to an acquisition instruction for the operating state of the target network device, determining encapsulation information encapsulated by the target device according to the simulated network topology; the target network encapsulation corresponds to the target network device.
The operation state of the network device may include: CPU usage status, memory usage status, fan operation status, power status, temperature, etc.
In an embodiment of the present invention, an operation state obtaining function may be provided in drawing software for drawing a simulated network topology, a corresponding trigger button is set on a topology editing page, when a user clicks the trigger button for a target device package, an obtaining instruction for an operation state of the target device package corresponding to the target device package may be generated, and by responding to the obtaining instruction, package information of the target device package may be determined according to the simulated network topology.
In an embodiment of the present invention, since the encapsulation information is a part of the device encapsulation, after the device encapsulation is generated on the topology editing page, the encapsulation information of the device encapsulation may be stored in a specified location, and in this step 102, the encapsulation information of the target network device may be directly obtained from the specified location.
Finally, in step 104, the target network device is remotely logged in according to the encapsulation information encapsulated by the target device, so as to obtain the running state of the target network device.
In an embodiment of the present invention, referring to fig. 2, the manner of remotely logging in the target network device in step 104 according to the encapsulation information of the target network device may include:
step 200, according to the encapsulation information encapsulated by the target device, determining the virtual local area network to which the target network device belongs and determining the remote login information of the target network device.
As can be seen from step 100, the package information of the network device may include networking information and remote login information of the network device, so in step 200, the remote login information of the target network device may be determined through the package information, where the remote login information may include a login account, a password, and the like.
In this step 200, a Virtual Local Area Network (VLAN) to which the target network device belongs may be determined by the networking information in the encapsulation information. The networking information may include a VLAN number to which the network device belongs, an IP address of the network device, and the like, for example, the VLAN to which the target network device belongs is VLAN 1.
Step 202, creating a virtual query device, and configuring an IP address belonging to the virtual lan for the virtual query device, so that the virtual query device remotely logs in the target network device by using the remote login information.
After networking of the network devices is completed, access can be performed between the network devices belonging to the same VLAN, so that in order to log in the target network device, a virtual query device can be created, and an IP address belonging to the VLAN to which the target network device belongs is configured for the virtual query device, so that the virtual query device and the target network device belong to the same VLAN, and thus the virtual query device can be used for logging in the target network device.
In this embodiment, since the encapsulation information stores information related to the network device, the networking information and the telnet information of the target network device can be quickly obtained according to the encapsulation information, and by creating the virtual query device and configuring the virtual query device and the target network device to belong to the same virtual local area network, the target network device can be logged in, and the operating state obtaining efficiency is improved.
It should be noted that, in addition to remotely logging in the target network device in the manner shown in fig. 2, the target network device may also be remotely logged in by other manners, for example, remotely logging in the target network device through a gateway by using the entity device.
In an embodiment of the present invention, in order to ensure that the virtual query device can obtain the operating state of the target network device after logging in the target network device, after the virtual query device is created, the method may further include: sending a pre-generated state query script to the virtual query device;
then, the obtaining the operation status of the target network device in step 104 may include: loading the state query script into the target network device by using the virtual query device so as to enable the target network device to run the state query script; receiving a state query result sent by the target network equipment after running the state query script; the status query result includes the operation status of the target network device.
In an embodiment of the present invention, since the script types executed by different network devices may be different, the status query script is generated according to the executable script type of the target network device.
When the target network device runs the state query script, the running state required to be queried by the state query script can be obtained, and the state query result is fed back. Therefore, the running state of the target network equipment can be obtained through the created virtual query equipment without manually operating the target network equipment, so that the obtaining cost is reduced, and the obtaining efficiency is improved.
In an embodiment of the present invention, in order to monitor the operation state of each network device, after obtaining the operation state of the target network device, the method may further include: and updating the running state of the target network equipment into the encapsulation information encapsulated by the target equipment. Therefore, the content of the packaged information can be richer, and the running state of the network equipment can be recorded and stored.
In an embodiment of the present invention, after the updating the operation status of the target network device into the encapsulation information encapsulated by the target device, the method further includes: and responding to a viewing instruction of the running state of the target network equipment, and extracting and displaying the running state from the packaged information packaged by the target equipment. Therefore, a user can check the packaging information packaged by the equipment in the simulated network topology and further check the related information of the network equipment so as to check the running state of the network equipment and facilitate the management and monitoring of the network equipment.
As shown in fig. 3 and fig. 4, an embodiment of the present invention provides an apparatus for acquiring an operating status of a network device. The apparatus embodiments may be implemented by software, or by hardware, or by a combination of hardware and software. In terms of hardware, as shown in fig. 3, a hardware architecture diagram of a computing device where an obtaining apparatus of an operating state of a network device according to an embodiment of the present invention is located is provided, where in addition to the processor, the memory, the network interface, and the nonvolatile memory shown in fig. 3, the computing device where the apparatus is located in the embodiment may generally include other hardware, such as a forwarding chip responsible for processing a packet, and the like. Taking a software implementation as an example, as shown in fig. 4, as a logical apparatus, a CPU of a computing device in which the apparatus is located reads a corresponding computer program in a non-volatile memory into a memory to run. The apparatus for acquiring an operating state of a network device provided in this embodiment includes:
a topology determining unit 401, configured to determine a simulated network topology formed by connecting a plurality of device packages for characterizing corresponding network devices; the device package comprises package information used for representing corresponding network devices;
a package information determining unit 402, configured to determine, in response to an acquisition instruction for an operating state of a target network device, package information to be packaged by the target device according to the simulated network topology; the target network encapsulation corresponds to the target network device;
an operation state obtaining unit 403, configured to remotely log in the target network device according to the encapsulation information encapsulated by the target device, so as to obtain an operation state of the target network device.
In an embodiment of the present invention, the topology determining unit 401 is specifically configured to obtain, on a pre-created topology editing page, a plurality of device packages for representing corresponding network devices, and connect the device packages; configuring equipment packages according to related information of the network equipment to obtain package information respectively corresponding to each equipment package; and determining the network topology on the topology editing page after the configuration is finished as the simulated network topology.
In an embodiment of the present invention, the operation status obtaining unit 403 is specifically configured to determine, according to the encapsulation information encapsulated by the target device, a virtual local area network to which the target network device belongs and determine remote login information of the target network device; and creating virtual inquiry equipment, and configuring an IP address belonging to the virtual local area network for the virtual inquiry equipment so that the virtual inquiry equipment remotely logs in the target network equipment by using the remote login information.
In an embodiment of the present invention, referring to fig. 5, the apparatus for acquiring an operation status of a network device may further include: a script sending unit 404, configured to send a pre-generated state query script to the virtual query device;
the running state obtaining unit 403 is specifically configured to load the state query script into the target network device by using the virtual query device, so that the target network device runs the state query script; receiving a state query result sent by the target network equipment after the state query script is operated; the state query result comprises the running state of the target network equipment.
In one embodiment of the present invention, the status query script is generated according to an executable script type of the target network device.
In an embodiment of the present invention, referring to fig. 6, the apparatus for acquiring an operation status of a network device may further include: an updating unit 405, configured to update the operation state of the target network device into the encapsulation information encapsulated by the target device.
In an embodiment of the present invention, referring to fig. 7, the apparatus for acquiring an operation status of a network device may further include: a state showing unit 406, configured to, in response to a viewing instruction for the operation state of the target network device, extract and show the operation state from the encapsulation information encapsulated by the target device.
It is to be understood that the schematic structure in the embodiment of the present invention does not specifically limit the apparatus for acquiring the operating state of the network device. In other embodiments of the present invention, an apparatus for acquiring an operation status of a network device may include more or less components than those shown, or combine some components, or split some components, or arrange different components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
Because the content of information interaction, execution process, and the like among the modules in the device is based on the same concept as the method embodiment of the present invention, specific content can be referred to the description in the method embodiment of the present invention, and is not described herein again.
The embodiment of the present invention further provides a computing device, which includes a memory and a processor, where the memory stores a computer program, and when the processor executes the computer program, the method for acquiring the running state of the network device in any embodiment of the present invention is implemented.
An embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the processor is caused to execute a method for acquiring an operating state of a network device in any embodiment of the present invention.
Specifically, a system or an apparatus equipped with a storage medium on which software program codes that realize the functions of any of the above-described embodiments are stored may be provided, and a computer (or a CPU or MPU) of the system or the apparatus is caused to read out and execute the program codes stored in the storage medium.
In this case, the program code itself read from the storage medium can realize the functions of any of the above-described embodiments, and thus the program code and the storage medium storing the program code constitute a part of the present invention.
Examples of the storage medium for supplying the program code include a floppy disk, a hard disk, a magneto-optical disk, an optical disk (e.g., CD-ROM, CD-R, CD-RW, DVD-ROM, DVD-RAM, DVD-RW, DVD + RW), a magnetic tape, a nonvolatile memory card, and a ROM. Alternatively, the program code may be downloaded from a server computer via a communications network.
Further, it should be clear that the functions of any one of the above-described embodiments may be implemented not only by executing the program code read out by the computer, but also by causing an operating system or the like operating on the computer to perform a part or all of the actual operations based on instructions of the program code.
Further, it is to be understood that the program code read out from the storage medium is written to a memory provided in an expansion board inserted into the computer or to a memory provided in an expansion module connected to the computer, and then causes a CPU or the like mounted on the expansion board or the expansion module to perform part or all of the actual operations based on instructions of the program code, thereby realizing the functions of any of the above-described embodiments.
The embodiments of the invention have at least the following beneficial effects:
1. in an embodiment of the present invention, the simulated network topology is formed by connecting a plurality of device packages, where the device packages are used to represent corresponding network devices, and the device packages include package information used to represent corresponding network devices, so that when the operating state of a target network device needs to be obtained, the package information of a target device package corresponding to the target network device can be determined according to the simulated network topology, and thus, the target network device can be remotely logged in by using the package information, and the operating state of the target network device is obtained, thereby improving the efficiency of obtaining the operating state of the network device.
2. In an embodiment of the present invention, the simulated network topology is obtained on the topology editing page, so that the entity connection relationship between each network device in the entity network topology can be visually displayed, and the recording and storage of the related information of each network device can be realized through the encapsulation information in the device encapsulation, thereby facilitating the management of each network device.
3. In an embodiment of the present invention, since the encapsulation information stores information related to the network device, the networking information and the telnet information of the target network device can be quickly obtained according to the encapsulation information, and by creating the virtual query device and configuring the virtual query device and the target network device to belong to the same virtual local area network, the login of the target network device can be realized, and the operation state obtaining efficiency is improved.
4. In an embodiment of the present invention, the virtual query device loads the status query script into the target network device, so that the target network device runs the status query script, and thus, the status of the target network device running is obtained without manually operating the target network device, which not only reduces the obtaining cost, but also improves the obtaining efficiency.
5. In an embodiment of the present invention, by updating the operating status of the target network device into the encapsulation information encapsulated by the target device, the content of the encapsulation information can be enriched, and the recording and storage of the operating status of the network device can be realized. And a user can check the packaged information of the equipment in the simulated network topology to check the running state of the network equipment, so that the network equipment is managed and monitored conveniently.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus 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 apparatus. Without further limitation, an element defined by the phrase "comprising an …" does not exclude the presence of other similar elements in a process, method, article, or apparatus that comprises the element.
Those of ordinary skill in the art will understand that: all or part of the steps for realizing the method embodiments can be completed by hardware related to program instructions, the program can be stored in a computer readable storage medium, and the program executes the steps comprising the method embodiments when executed; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (8)

1. A method for acquiring the running state of network equipment is characterized by comprising the following steps:
determining a simulated network topology formed by connecting a plurality of device packages for representing corresponding network devices on a topology editing page; the device package comprises package information used for representing corresponding network devices; a trigger button with an operation state acquisition function is arranged on the topology editing page, and when the trigger button is clicked by a user aiming at a target equipment package, an acquisition instruction aiming at the operation state of the target network equipment corresponding to the target equipment package is generated; the acquisition instruction is used for indicating the acquisition of the running state of the target network equipment; the equipment package comprises graphic elements, interface elements and text elements; the simulated connection relations in the simulated network topology comprise one or more of the following connection relations: the connection relation between the graphic elements and the graphic elements, the connection relation between the graphic elements and the interface elements and the connection relation between the interface elements and the interface elements;
responding to an acquisition instruction aiming at the running state of the target network equipment, and determining the encapsulation information encapsulated by the target equipment according to the simulated network topology; the target device package corresponds to the target network device; remotely logging in the target network equipment according to the packaging information packaged by the target equipment to acquire the running state of the target network equipment;
the remotely logging in the target network device according to the encapsulation information encapsulated by the target device includes:
according to the encapsulation information encapsulated by the target equipment, determining a virtual local area network to which the target network equipment belongs and determining remote login information of the target network equipment;
creating virtual inquiry equipment, configuring an IP address belonging to the virtual local area network for the virtual inquiry equipment, and sending a pre-generated state inquiry script to the virtual inquiry equipment so that the virtual inquiry equipment remotely logs in the target network equipment by using the remote login information;
the acquiring the operating state of the target network device includes: loading the state query script into the target network equipment by using the virtual query equipment so as to enable the target network equipment to run the state query script; receiving a state query result sent by the target network equipment after the state query script is operated; the state query result comprises the running state of the target network equipment.
2. The method of claim 1, wherein determining a simulated network topology formed by a plurality of device packages connected to characterize a corresponding network device comprises:
obtaining a plurality of equipment packages for representing corresponding network equipment on a pre-established topology editing page, and connecting the equipment packages;
configuring equipment packages according to related information of the network equipment to obtain package information respectively corresponding to each equipment package;
and determining the network topology on the topology editing page after the configuration is finished as the simulated network topology.
3. The method of claim 1, wherein the status query script is generated according to an executable script type of the target network device.
4. The method according to any of claims 1-3, further comprising, after said obtaining the operational status of the target network device:
and updating the running state of the target network equipment into the encapsulation information encapsulated by the target equipment.
5. The method according to claim 4, further comprising, after the updating the operation status of the target network device into the encapsulation information encapsulated by the target device: and responding to a viewing instruction of the running state of the target network equipment, and extracting and displaying the running state from the packaged information packaged by the target equipment.
6. An apparatus for acquiring an operation status of a network device, comprising:
the topology editing unit is used for editing the device packages of the corresponding network devices according to the device packages of the corresponding network devices; the device package comprises package information used for representing corresponding network devices; a trigger button with an operation state acquisition function is arranged on the topology editing page, and when the trigger button is clicked by a user aiming at a target equipment package, an acquisition instruction aiming at the operation state of the target network equipment corresponding to the target equipment package is generated; the acquisition instruction is used for indicating the acquisition of the running state of the target network equipment; the equipment package comprises graphic elements, interface elements and text elements; the simulated connection relations in the simulated network topology comprise one or more of the following connection relations: the connection relation between the graphic elements and the graphic elements, the connection relation between the graphic elements and the interface elements and the connection relation between the interface elements and the interface elements;
the encapsulation information determining unit is used for responding to an acquisition instruction aiming at the running state of the target network equipment and determining encapsulation information encapsulated by the target equipment according to the simulated network topology; the target device package corresponds to the target network device;
the operating state acquiring unit is used for remotely logging in the target network equipment according to the packaging information packaged by the target equipment so as to acquire the operating state of the target network equipment;
the operating state acquiring unit is specifically configured to determine, according to the encapsulation information encapsulated by the target device, a virtual local area network to which the target network device belongs and determine telnet information of the target network device; creating virtual inquiry equipment, configuring an IP address belonging to the virtual local area network for the virtual inquiry equipment, and triggering a script sending unit to send a pre-generated state inquiry script to the virtual inquiry equipment so that the virtual inquiry equipment remotely logs in the target network equipment by using the remote login information; loading the state query script into the target network equipment by using the virtual query equipment so as to enable the target network equipment to run the state query script; receiving a state query result sent by the target network equipment after the state query script is operated; the state query result comprises the running state of the target network equipment.
7. A computing device comprising a memory having stored therein a computer program and a processor that, when executing the computer program, implements the method of any of claims 1-5.
8. A computer-readable storage medium, on which a computer program is stored which, when executed in a computer, causes the computer to carry out the method of any one of claims 1-5.
CN202110774238.XA 2021-07-08 2021-07-08 Method, device, equipment and medium for acquiring running state of network equipment Active CN113328897B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110774238.XA CN113328897B (en) 2021-07-08 2021-07-08 Method, device, equipment and medium for acquiring running state of network equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110774238.XA CN113328897B (en) 2021-07-08 2021-07-08 Method, device, equipment and medium for acquiring running state of network equipment

Publications (2)

Publication Number Publication Date
CN113328897A CN113328897A (en) 2021-08-31
CN113328897B true CN113328897B (en) 2022-08-23

Family

ID=77426059

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110774238.XA Active CN113328897B (en) 2021-07-08 2021-07-08 Method, device, equipment and medium for acquiring running state of network equipment

Country Status (1)

Country Link
CN (1) CN113328897B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104683190A (en) * 2015-03-26 2015-06-03 重庆金美通信有限责任公司 Webmaster managed network simulation system and webmaster managed network simulation method
CN110691009A (en) * 2019-10-11 2020-01-14 浪潮云信息技术有限公司 Network equipment inspection method and device
CN111884833A (en) * 2020-07-04 2020-11-03 中国人民解放军海军航空大学航空作战勤务学院 Simulation system integration method based on network virtualization technology

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI647934B (en) * 2017-04-21 2019-01-11 思銳科技股份有限公司 Method and system for simulating a network topology with a physical machine
CN108768685B (en) * 2018-03-29 2022-10-04 中国电力科学研究院有限公司 Large-scale information communication network real-time simulation system
CN109327342B (en) * 2018-11-27 2019-12-17 哈尔滨理工大学 task-driven-based self-adaptive SDN simulation system and simulation platform
CN111309445B (en) * 2020-03-09 2021-08-06 腾讯科技(深圳)有限公司 Program running method and device and storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104683190A (en) * 2015-03-26 2015-06-03 重庆金美通信有限责任公司 Webmaster managed network simulation system and webmaster managed network simulation method
CN110691009A (en) * 2019-10-11 2020-01-14 浪潮云信息技术有限公司 Network equipment inspection method and device
CN111884833A (en) * 2020-07-04 2020-11-03 中国人民解放军海军航空大学航空作战勤务学院 Simulation system integration method based on network virtualization technology

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
一种基于虚拟化技术的域际路由模拟平台;于鹏等;《智能计算机与应用》;20200301(第03期);全文 *

Also Published As

Publication number Publication date
CN113328897A (en) 2021-08-31

Similar Documents

Publication Publication Date Title
US11201808B2 (en) Tracing logical network packets through physical network
CN112165532B (en) Node access method, device, equipment and computer readable storage medium
US8032779B2 (en) Adaptively collecting network event forensic data
CN111934922B (en) Method, device, equipment and storage medium for constructing network topology
US10756952B2 (en) Determining a storage network path utilizing log data
US7254778B2 (en) System and method browsing a network topology using a character driven interface
CN110321154A (en) A kind of interface message methods of exhibiting, device and the electronic equipment of micro services
US11824715B2 (en) Configuration method, related apparatus, and system
US11635972B2 (en) Multi-tenant java agent instrumentation system
CN113328897B (en) Method, device, equipment and medium for acquiring running state of network equipment
CN114172978A (en) Multi-protocol equipment access method and related device
US11336502B2 (en) Deriving network device and host connection
CN113507398B (en) Network topology state detection method, device, computing equipment and storage medium
US8271879B2 (en) Workstation management application
CN116048517A (en) API (application program interface) generating method, system and device based on B/S (browser/Server) architecture application system
JP2007053485A (en) System for controlling network equipment
CN113452567B (en) Networking method and device, computing equipment and storage medium
CN115774712A (en) Metadata management method, system, device and storage medium
Cisco Release Notes for TrafficDirector Release 5.8.1a on HP-UX and AIX
TW201427336A (en) Method and system for dependent relationships between dynamic correlation entity and virtual resources and automatically generating multi-dimensional heterogeneous resource network topology
US11182181B2 (en) Virtual environments generator
CN113709196B (en) Data extraction method, apparatus, computer device, medium, and program product
JP2013021423A (en) Vpn connection system and connection method thereof and program thereof
CN113468700A (en) Topology information identification method and device, computing equipment and storage medium
CN113609629B (en) Node path selection method, device, computing equipment and storage medium

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