CN115220974A - Dynamic checking system, method, device and medium for network information of operating system - Google Patents

Dynamic checking system, method, device and medium for network information of operating system Download PDF

Info

Publication number
CN115220974A
CN115220974A CN202210833221.1A CN202210833221A CN115220974A CN 115220974 A CN115220974 A CN 115220974A CN 202210833221 A CN202210833221 A CN 202210833221A CN 115220974 A CN115220974 A CN 115220974A
Authority
CN
China
Prior art keywords
information
operating system
network
server
acquiring
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210833221.1A
Other languages
Chinese (zh)
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.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent 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 Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN202210833221.1A priority Critical patent/CN115220974A/en
Publication of CN115220974A publication Critical patent/CN115220974A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2289Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing by configuration test
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2294Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing by remote test
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/302Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a software system
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
    • G06F11/3466Performance evaluation by tracing or monitoring
    • G06F11/3495Performance evaluation by tracing or monitoring for systems

Abstract

The invention provides a system, a method, a device and a medium for dynamically checking network information of an operating system, wherein the system comprises: the information preparation module is used for acquiring BMCIP information and hardware information of the server and configuring the association relationship between the server and the operating system; the information acquisition and updating module is used for automatically logging in a remote control page of BMC Web, automatically generating a py script for acquiring network information of the operating system according to a json library configured by a network, acquiring and updating the information and displaying the information on an interface of the operating system in real time; and the fault feedback module is used for trying to automatically repair the fault after finding out that the operating system network has the fault according to the information, recording a manual processing suggestion and feeding the manual processing suggestion back to a preset fault processing service desk if the repair is unsuccessful, and performing synchronous sharing of the processing suggestion. The invention realizes dynamic check and real-time display of the network information of the server operating system, provides an effective fault feedback mechanism and improves the fault processing efficiency.

Description

Dynamic checking system, method, device and medium for network information of operating system
Technical Field
The invention relates to the technical field of computers, in particular to a system, a method, a device and a medium for dynamically checking network information of an operating system.
Background
The acquisition of network information of a server operating system is the first step of using a server, and especially in a scenario where a large number of new servers need to be used and managed, how to quickly acquire network information of an operating system to check a network fault becomes a subject to be researched urgently. With the advent of KVM (Keyboard, video, mouse acronym, also called multi-computer controller) technology, the acquisition of the operating system network information can be accomplished by a user using BMC remote control, and of course, the acquisition can also be performed in the field by connecting a VGA to a server display screen.
However, the connection of the display screen through the VGA on site not only needs hardware support, but also needs the user to go to the site each time; through a remote KVM mode, the BMC is required to be manually logged in to enter the KVM, a system command is sent in an operating system under a KVM interface to acquire information, or the OSip is acquired firstly and then the IP is logged in through ssh and then the network is sent to acquire dynamic information. The steps are repeated in this way, and unnecessary troubles are brought to the links of research, development, testing, use and the like of the server. Under the large-scale server use environment, the operation and maintenance management cost of the machine is increased, the problem processing efficiency is reduced, and inestimable risks are brought.
Disclosure of Invention
In view of the above problems, an object of the present invention is to provide a system, a method, a device and a medium for dynamically checking network information of an operating system, which implement dynamic checking and real-time display of network information of a server operating system, provide an effective failure feedback mechanism, and improve failure processing efficiency.
In order to achieve the purpose, the invention is realized by the following technical scheme: an operating system network information dynamic checking system, comprising:
the information preparation module is used for acquiring BMCIP information and hardware information of the server and configuring the association relationship between the server and the operating system;
the information acquisition and updating module is used for automatically logging in a remote control page of BMC Web, automatically generating a py script for acquiring network information of the operating system according to a json library configured by a network, acquiring and updating the information and displaying the information on an interface of the operating system in real time;
and the fault feedback module is used for trying to automatically repair the fault after finding out that the operating system network has the fault according to the information, recording a manual processing suggestion and feeding the manual processing suggestion back to a preset fault processing service desk if the repair is unsuccessful, and performing synchronous sharing of the processing suggestion.
Further, the information preparation module includes:
the basic information preparation unit is used for acquiring IP (Internet protocol), user name and password information of all servers BMC (baseboard management controller), and automatically acquiring hardware configuration information of the servers through restful interfaces according to the acquired information;
the operating system data storage unit is used for configuring an FTP server so as to store an operating system version number file and a network configuration json library; the network configuration json library is network configuration information which corresponds to the version numbers of the operating systems one by one and comprises an instruction for acquiring the network information and a data processing method thereof, a graphical interface and a corresponding graphical identification processing method thereof;
and the configuration association unit is used for maintaining the association relationship between the operating system version and the server hardware configuration.
Further, the information acquisition and update module includes:
the login unit is used for automatically logging in the BMC page by using a selenium according to the server BMC IP information;
the starting unit is used for acquiring page elements for starting the H5Viewer page by using a selenium and starting the H5Viewer page;
the environment selection unit is used for awakening the operating system interface, if the operating system IP can be obtained, using the execution environment connected in a remote in-band mode, and otherwise, using the operating system interface to simulate the execution environment input by a keyboard; the information acquisition unit is used for reading a network configuration information json file corresponding to an operating system version number file in an operating system data storage module, reading corresponding network configuration information, automatically selecting a corresponding automatic processing method, sequentially generating automatic acquisition codes until complete automatic codes are generated, and executing the automatic acquisition codes in a selected execution environment;
and the real-time display unit is used for realizing the real-time return of the operating system interface through a selenium webpage screen capturing technology, so that a user can remotely monitor the server operating system network.
Correspondingly, the invention also discloses a method for dynamically checking the network information of the operating system, which comprises the following steps: acquiring BMCIP information and hardware information of a server, configuring the association relationship between the server and an operating system, and extracting network configuration information;
checking the state of a BMC of the server;
automatically logging in a remote control page of BMC Web, automatically generating a py script for acquiring network information of an operating system according to a json library configured by a network, acquiring and updating the information, and displaying the information on an interface of the operating system in real time; and if the operating system network is found to have faults according to the information, attempting to automatically repair the faults, and if the repair is unsuccessful, recording a manual processing suggestion and feeding the manual processing suggestion back to a preset fault processing service desk to perform synchronous sharing of the processing suggestion.
Further, the acquiring BMCIP information and hardware information of the server includes:
and acquiring IP, user name and password information of each server BMC, and automatically acquiring hardware configuration information of each network card by using a restful interface protocol according to the restful interface data after acquiring the server BMCIP.
Further, the association relationship between the configuration server and the operating system includes:
and associating the hardware configuration information of the network card of the server with the version information of the operating system to form one-to-one or one-to-many relationship.
Further, the checking the server BMC status includes:
and checking the BMC state of the server, and automatically carrying out hot restart or factory reset on the BMC if the BMC state of the server is abnormal.
Further, the automatically logging in a remote control page of the BMC Web, automatically generating a py script for acquiring network information of the operating system according to a json library configured by the network, and acquiring and updating the information, comprising:
automatically opening remote control through a selenium, redirecting a console, and starting an H5Viewer page; awakening an operating system interface in a mode of simulating keyboard keys and input of an input box through a selenium;
positioning an operating system interface network mode through a selenium, inputting an ipconfig command to check whether an OSIP can be obtained or not, if so, entering an operating system through a remote ssh OSIP to send a network and process return information, if not, checking the network configuration of the current operating system or the hardware configuration of a network cable network card, and if the OSIP cannot be obtained after checking, executing the operation in a keyboard input simulation mode through the selenium by using an operating system interface;
automatically selecting a corresponding automatic processing method according to the acquired network configuration information and the network configuration json library, and sequentially generating automatic acquisition codes until a complete py file of the automatic codes is generated;
executing the generated code under the selected execution environment to generate operating system network information;
and when the network configuration json library and the data processing method are changed, automatically updating the information to finish the automatic acquisition and dynamic updating of the network information of the operating system.
Correspondingly, the invention discloses a device for dynamically checking network information of an operating system, which comprises:
the memorizer, is used for storing the network information dynamic checking program of the operating system;
a processor, configured to implement the steps of the os network information dynamic checking method according to any one of the above embodiments when executing the os network information dynamic checking program.
Correspondingly, the invention discloses a readable storage medium, wherein an operating system network information dynamic checking program is stored on the readable storage medium, and when being executed by a processor, the operating system network information dynamic checking program realizes the steps of the operating system network information dynamic checking method according to any one of the above items.
Compared with the prior art, the invention has the beneficial effects that:
the invention provides a system, a method, a device and a medium for dynamically checking network information of an operating system, which can simultaneously manage a plurality of servers in the same local area network in a system environment, automatically log in a BMC Web page through a selenium, open a remote control interface, configure a json library according to the network of a server operating system version, acquire the network information of the server operating system and update the network information in real time; the real-time return of the network interface of the operating system is realized through the screen capture technology, the remote real-time monitoring of the user is realized, and the remote real-time monitoring can be used as a verification evidence for actual comparison. The invention introduces a fault feedback mechanism, can form a fault processing library according to the time and the processing mode of the operating system network with problems, gradually optimizes and updates, and can take remedial measures at the first time when the network has faults.
The invention realizes the real-time display of the network information and the interface of the operating system through the client, improves the monitoring experience of the user, and improves the efficiency of fault occurrence and processing; through the automatic fault processing and feedback mechanism, the fault processing suggestions are gradually optimized, the fault rate of the machine is reduced, the completeness of user data is guaranteed, manpower is greatly saved, and the quality control of the server is improved. The system provided by the invention can realize the automation, management and monitoring of the network information of the server operating system, and can realize other server operations which can be realized by an automation technology, and the popularization of the system has great advantages in the field of server operation management and monitoring.
Therefore, compared with the prior art, the invention has prominent substantive features and remarkable progress, and the beneficial effects of the implementation are also obvious.
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 described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
FIG. 1 is a process flow diagram of an embodiment of the present invention.
Fig. 2 is a system configuration diagram of an embodiment of the present invention.
In the drawings, each reference numeral indicates:
1. an information preparation module; 2. an information acquisition and update module; 3. a fault feedback module; 11. a basic information preparation unit; 12. an operating system data storage unit; 13. configuring an association unit; 21. a login unit; 22. a start-up unit; 23. an environment selection unit; 24. an information acquisition unit; 25. and a real-time display unit.
Detailed Description
The core of the invention is to provide a dynamic checking method for network information of an operating system, the management of the current server gradually tends to intelligent management, meanwhile, the normal operation of the operating system of the server is a major problem for guaranteeing the use of enterprises and clients, in the prior art, the network monitoring of the operating system mainly depends on manual offline, and the manual offline brings about large errors, slow time, more importantly, high cost, low timeliness and low fault processing efficiency.
The dynamic checking method for the network information of the operating system, provided by the invention, comprises the steps of firstly obtaining BMCIP information and hardware information of the server and configuring the association relationship between the server and the operating system. The server BMC status is then checked. And after the checking is finished, automatically logging in a remote control page of BMC Web, automatically generating a py script for acquiring the network information of the operating system according to the json library configured by the network, acquiring and updating the information, and displaying the information on an interface of the operating system in real time. And finally, if the operating system network is found to have a fault according to the information, trying to automatically repair the fault, and if the repair is unsuccessful, recording a manual processing proposal and feeding back the manual processing proposal to a preset fault processing service desk for synchronous sharing of the processing proposal. Therefore, the invention realizes dynamic check and real-time display of the network information of the server operating system, and improves the fault processing efficiency by introducing an effective fault feedback mechanism.
In order that those skilled in the art will better understand the disclosure, the invention will be described in further detail with reference to the accompanying drawings and specific embodiments. It should be apparent that the described embodiments are only some embodiments of the present invention, and not all embodiments. All other embodiments, which can be obtained by a person skilled in the art without making any creative effort based on the embodiments in the present invention, belong to the protection scope of the present invention.
The first embodiment is as follows:
as shown in fig. 1, the present embodiment provides an operating system network information dynamic checking system, which includes an information preparation module 1, an information acquisition and update module 2, and a failure feedback module 3.
The information preparation module 1 is used for acquiring BMCIP information and hardware information of the server and configuring the association relationship between the server and the operating system.
Specifically, the information preparation module 1 includes: a basic information preparation unit 11, an operating system data storage unit 12, and a configuration association unit 13.
And the basic information preparation unit 11 is configured to collect IP, user name and password information of all servers BMC, and automatically acquire hardware configuration information of the servers through a restful interface according to the collected information.
An operating system data storage unit 12, configured to configure an FTP server to store an operating system version number file and a network configuration json library; the network configuration json library is network configuration information which corresponds to the version numbers of the operating systems one by one, and comprises instructions for acquiring the network information and a data processing method thereof, and a graphical interface and a graphical identification processing method corresponding to the graphical interface.
And the configuration association unit 13 is used for maintaining the association relationship between the operating system version and the server hardware configuration. Because the network card component of the operating system network and the server is strongly related, and the modes of different servers for acquiring network information are different according to the different version numbers of the operating system, the unit is used for maintaining the association relationship between the OS version and the configuration of server hardware (including hardware and components which can affect the network, such as the network card and the like).
And the information acquisition and updating module 2 is used for automatically logging in a remote control page of BMC Web, automatically generating a py script for acquiring network information of the operating system according to a json library configured by the network, acquiring and updating the information, and displaying the information on an interface of the operating system in real time.
Specifically, the information acquisition and update module 2 includes a login unit 21, a start unit 22, an environment selection unit 23, an information acquisition unit 24, and a real-time display unit 25.
And the login unit 21 is configured to automatically log in the BMC page by using a selenium according to the server BMC IP information.
And the starting unit 22 is used for acquiring the page element of the starting H5Viewer page by using the selenium and starting the H5Viewer page. Specifically, the remote control is opened using the selenium-console redirect-launches the H5Viewer page. When starting, firstly, judging whether the page element of the starting H5Viewer page can be clicked or not by acquiring the page element of the starting H5Viewer page; then click "launch H5Viewer page"; switching from the main page to the current page; maximize the page and get the browser title. And finally, judging whether the H5Viewer page is started successfully.
And the environment selection unit 23 is configured to wake up the operating system interface, and if the operating system IP can be acquired, use the execution environment connected in the remote in-band, otherwise use the operating system interface to simulate the execution environment input by the keyboard.
The information obtaining unit 24 is configured to read a network configuration information json file corresponding to the operating system version number file in the operating system data storage module 12, read corresponding network configuration information, automatically select a corresponding automated processing method, sequentially generate automated obtaining codes until a complete automated code is generated, and execute the automated obtaining code in a selected execution environment. Specifically, the operating system data storage module 12 reads a json file of network configuration information corresponding to the OS version number file, and reads a data processing method corresponding to an instruction or a graphic processing method in the json file. According to the method code library, the corresponding automatic processing method is automatically selected, and the automatic acquisition codes are sequentially generated until the complete automatic codes are generated and executed in the execution environment selected by the environment selection unit 23.
And the real-time display unit 25 is used for realizing real-time return of an operating system interface through a selenium webpage screen capturing technology and realizing remote monitoring of the server operating system network by a user.
And the fault feedback module 3 is used for trying to automatically repair the fault after finding that the operating system network has a fault according to the information, recording a manual processing suggestion and feeding the manual processing suggestion back to a preset fault processing service desk if the repair is unsuccessful, and performing synchronous sharing of the processing suggestion.
Because the situation that a server network fails or has problems often exists in the scene that a plurality of servers exist, on the basis, the system introduces a fault feedback mechanism through the fault feedback module 3, when the network of the server operating system fails or the network card fails, the process of manual operation repair and the process of machine self-repair are recorded, if the process is effective, the process is taken as a processing suggestion to be synchronously fed back to the information processing service desk, and the process is gradually accumulated and gradually optimized. When other servers encounter problems, processing suggestions in the information processing service desk are automatically inquired firstly, synchronous reference is taken, the servers gradually go deep, and optimization is performed in sequence to form a complete fault processing service library, so that faults and problems are guaranteed to be processed at the first time under the condition that manual operation is not carried out, and machine safety and data safety are protected.
The embodiment provides a dynamic checking system for network information of an operating system, which realizes dynamic checking and real-time display of the network information of the operating system of a server, and improves the fault processing efficiency by introducing an effective fault feedback mechanism.
Example two:
based on the first embodiment, as shown in fig. 2, the present invention also discloses a method for dynamically checking network information of an operating system, which includes the following steps:
s1: acquiring BMCIP information and hardware information of the server, configuring the association relationship between the server and an operating system, and extracting network configuration information.
Firstly, IP, user name and password information of each server BMC are obtained, and after the server BMCIP is obtained, the configuration information of each network card hardware is automatically obtained by using a restful interface protocol according to restful interface data. Then, the server network card hardware configuration information and the operating system version information are correlated to form a one-to-one or one-to-many relationship. And finally, reading a json file of network configuration information corresponding to the version number file of the operating system in the data storage unit of the operating system, and reading a data processing method corresponding to an instruction or a graphic processing mode in the json file.
S2: the server BMC status is checked.
Specifically, if the BMC is normal, the BMC continues, otherwise, the BMC fault is repaired, and a common fault repairing method is to automatically perform a warm restart on the BMC or restore the BMC to the factory setting.
S3: and automatically logging in a remote control page of the Web of the BMC, automatically generating a py script for acquiring network information of the operating system according to the json library configured by the network, acquiring and updating the information, and displaying the information on an interface of the operating system in real time.
The specific execution process of the step is as follows:
1. the remote control is automatically opened through the selenium, console redirection is performed, and the H5Viewer page is started.
2. Selecting an execution environment:
firstly, awakening an operating system interface in a mode of simulating keyboard keys and input of an input box through a selenium. And then, positioning an operating system interface network mode through a selenium, inputting an ipconfig command to check whether the OSIP can be obtained or not, if so, entering the operating system through the remote ssh OSIP to send a network and process return information, and if not, checking the network configuration of the current operating system or the hardware configuration of a network cable card. Among these, the common commands to check the OS network configuration are as follows: ifconfig, ping, netstat, traceroute, dig and nslookup, host, hostname, route, arp, ethntool, system-config-network.
And if the OSIP cannot be acquired after the checking, executing the OSIP in a keyboard input mode simulated by an operating system interface through the selenium.
3. And automatically selecting a corresponding automatic processing method according to the acquired network configuration information and the network configuration json library, and sequentially generating automatic acquisition codes until a complete py file of the automatic codes is generated.
4. Executing the generated code under the selected execution environment to generate operating system network information; and when the network configuration json library and the data processing method are changed, automatically updating the information to finish the automatic acquisition and dynamic updating of the network information of the operating system.
In addition, in the above process, in order to ensure that the BMC session is always valid (usually, the valid time of the BMC Web page is 30 min), a mechanism of checking at fixed intervals is adopted, and when the BMC session is checked to be invalid, the BMC session is logged in again.
S4: and if the operating system network is found to have faults according to the information, attempting to automatically repair the faults, and if the repair is unsuccessful, recording a manual processing suggestion and feeding the manual processing suggestion back to a preset fault processing service desk to perform synchronous sharing of the processing suggestion.
Specifically, if the OS network of the server is found to be faulty according to the information, an attempt is made to automatically perform fault repair, and a common fault repair method is to check the state of the network card of the machine; checking the connection state of the network port; setting a network acquisition mode; restarting the network service; restart after checking the machine NMI settings and reconfiguration, etc. If the method is not solved after automatic repair, manual intervention is needed for solving and positioning. When a fault solution is manually given, the solution is recorded and is taken as a processing proposal to be included in a fault processing service library. The processing suggestions are synchronously fed back to the fault processing service desk, accumulated step by step and optimized step by step. And synchronous reference and synchronous sharing of fault processing service desks in the whole system are realized.
The embodiment provides a dynamic checking method for network information of an operating system, which can simultaneously manage a plurality of servers in the same local area network in a system environment, automatically log in a BMC (baseboard management controller) Web page through a selenium, open a remote control interface, configure a json library according to a network of a server operating system version, acquire the network information of the server operating system and update the network information in real time; the real-time return of the network interface of the operating system is realized through the screen capture technology, the remote real-time monitoring of the user is realized, and the remote real-time monitoring can be used as a verification evidence for actual comparison. The method introduces a fault feedback mechanism, can form a fault processing library according to the time and the processing mode of the operating system network with problems, gradually optimizes and updates, and can take remedial measures at the first time when the network has faults.
Example three:
the embodiment discloses a dynamic checking device for network information of an operating system, which comprises a processor and a memory; wherein, the processor implements the following steps when executing the operating system network information dynamic checking program stored in the memory:
1. acquiring BMCIP information and hardware information of the server, configuring the association relationship between the server and an operating system, and extracting network configuration information.
2. The server BMC status is checked.
3. And automatically logging in a remote control page of the BMC Web, automatically generating a py script for acquiring network information of the operating system according to a json library configured by the network, acquiring and updating the information, and displaying the information on an interface of the operating system in real time.
4. And if the operating system network is found to have faults according to the information, attempting to automatically repair the faults, and if the repair is unsuccessful, recording a manual processing suggestion and feeding the manual processing suggestion back to a preset fault processing service desk to perform synchronous sharing of the processing suggestion.
Further, the device for dynamically checking network information of an operating system in this embodiment may further include:
and the input interface is used for acquiring an externally-introduced dynamic checking program of the network information of the operating system, storing the acquired dynamic checking program of the network information of the operating system in the memory, and also used for acquiring various instructions and parameters transmitted by external terminal equipment and transmitting the instructions and parameters to the processor, so that the processor can utilize the instructions and the parameters to perform corresponding processing. In this embodiment, the input interface may specifically include, but is not limited to, a USB interface, a serial interface, a voice input interface, a fingerprint input interface, a hard disk reading interface, and the like.
And the output interface is used for outputting various data generated by the processor to the terminal equipment connected with the output interface, so that other terminal equipment connected with the output interface can acquire various data generated by the processor. In this embodiment, the output interface may specifically include, but is not limited to, a USB interface, a serial interface, and the like.
And the communication unit is used for establishing remote communication connection between the dynamic checking device of the operating system network information and the external server so that the dynamic checking device of the operating system network information can mount the mirror image file into the external server. In this embodiment, the communication unit may specifically include, but is not limited to, a remote communication unit based on a wireless communication technology or a wired communication technology.
And the keyboard is used for acquiring various parameter data or instructions input by a user through real-time key cap knocking.
And the display is used for displaying relevant information in the short circuit positioning process of the power supply line of the running server in real time.
The mouse can be used for assisting a user in inputting data and simplifying the operation of the user.
The embodiment provides a dynamic checking device for network information of an operating system, which realizes real-time display of network information and an interface of the operating system through a client, improves monitoring experience of a user, and improves failure occurrence and processing efficiency; through the automatic fault processing and feedback mechanism, the fault processing suggestions are gradually optimized, the fault rate of the machine is reduced, the completeness of user data is guaranteed, manpower is greatly saved, and the quality control of the server is improved.
Example four:
the present embodiments also disclose a readable storage medium, where the readable storage medium includes Random Access Memory (RAM), memory, read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, a hard disk, a removable hard disk, a CD-ROM, or any other form of storage medium known in the art. The readable storage medium stores an operating system network information dynamic checking program, and when the operating system network information dynamic checking program is executed by a processor, the operating system network information dynamic checking program realizes the following steps:
1. acquiring BMCIP information and hardware information of the server, configuring the association relationship between the server and an operating system, and extracting network configuration information.
2. The server BMC status is checked.
3. And automatically logging in a remote control page of the BMC Web, automatically generating a py script for acquiring network information of the operating system according to a json library configured by the network, acquiring and updating the information, and displaying the information on an interface of the operating system in real time.
4. And if the operating system network is found to have faults according to the information, attempting to automatically repair the faults, and if the repair is unsuccessful, recording a manual processing suggestion and feeding the manual processing suggestion back to a preset fault processing service desk to perform synchronous sharing of the processing suggestion.
The embodiment provides a readable storage medium, which realizes real-time display of network information and an interface of an operating system through a client, improves monitoring experience of a user, and improves failure occurrence and processing efficiency; through the automatic fault processing and feedback mechanism, the fault processing suggestions are gradually optimized, the fault rate of the machine is reduced, the completeness of user data is guaranteed, manpower is greatly saved, and the quality control of the server is improved.
In conclusion, the invention realizes dynamic checking and real-time display of the network information of the server operating system, and improves the fault processing efficiency by introducing an effective fault feedback mechanism.
The embodiments are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same or similar parts among the embodiments are referred to each other. The method disclosed by the embodiment corresponds to the system disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the description of the method part.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
In the embodiments provided by the present invention, it should be understood that the disclosed system, system and method can be implemented in other ways. For example, the above-described system embodiments are merely illustrative, and for example, the division of the units is only one logical functional division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, systems or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one position, or may be distributed on multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional modules in the embodiments of the present invention may be integrated into one processing unit, or each module may exist alone physically, or two or more modules are integrated into one unit.
Similarly, each processing unit in the embodiments of the present invention may be integrated into one functional module, or each processing unit may exist physically, or two or more processing units are integrated into one functional module.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in Random Access Memory (RAM), memory, read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
Finally, it should also be noted that, in this document, relational terms such as first and second, and the like are 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 a … …" does not exclude the presence of another identical element in a process, method, article, or apparatus that comprises the element.
The method, system, device and readable storage medium for dynamically checking the network information of the operating system provided by the invention are described in detail above. The principles and embodiments of the present invention are explained herein using specific examples, which are presented only to assist in understanding the method and its core concepts. It should be noted that, for those skilled in the art, it is possible to make various improvements and modifications to the present invention without departing from the principle of the present invention, and those improvements and modifications also fall within the scope of the claims of the present invention.

Claims (10)

1. An operating system network information dynamic checking system, comprising:
the information preparation module is used for acquiring BMCIP information and hardware information of the server and configuring the association relationship between the server and the operating system;
the information acquisition and updating module is used for automatically logging in a remote control page of BMC Web, automatically generating a py script for acquiring network information of the operating system according to a json library configured by a network, acquiring and updating the information and displaying the information on an interface of the operating system in real time;
and the fault feedback module is used for trying to automatically repair the fault after finding out that the operating system network has the fault according to the information, recording a manual processing suggestion and feeding the manual processing suggestion back to a preset fault processing service desk if the repair is unsuccessful, and performing synchronous sharing of the processing suggestion.
2. The os network information dynamic checking system of claim 1, wherein the information preparation module comprises:
the basic information preparation unit is used for acquiring IP (Internet protocol), user name and password information of all servers BMC (baseboard management controller), and automatically acquiring hardware configuration information of the servers through restful interfaces according to the acquired information;
the operating system data storage unit is used for configuring an FTP server so as to store an operating system version number file and a network configuration json library; the network configuration json library is network configuration information which corresponds to the version numbers of the operating systems one by one and comprises an instruction for acquiring the network information and a data processing method thereof, a graphical interface and a corresponding graphical identification processing method thereof;
and the configuration association unit is used for maintaining the association relationship between the version of the operating system and the hardware configuration of the server.
3. The os network information dynamic checking system of claim 2, wherein said information obtaining and updating module comprises:
the login unit is used for automatically logging in the BMC page by using a selenium according to the server BMC IP information;
the starting unit is used for acquiring page elements for starting the H5Viewer page by using a selenium and starting the H5Viewer page;
the environment selection unit is used for awakening the operating system interface, if the operating system IP can be obtained, using the execution environment connected in a remote in-band mode, and otherwise, using the operating system interface to simulate the execution environment input by a keyboard; the information acquisition unit is used for reading a network configuration information json file corresponding to an operating system version number file in an operating system data storage module, reading corresponding network configuration information, automatically selecting a corresponding automatic processing method, sequentially generating automatic acquisition codes until complete automatic codes are generated, and executing the automatic acquisition codes in a selected execution environment;
and the real-time display unit is used for realizing the real-time return of the operating system interface through a selenium webpage screen capturing technology, so that a user can remotely monitor the server operating system network.
4. A dynamic checking method for network information of an operating system is characterized by comprising the following steps:
acquiring BMCIP information and hardware information of a server, configuring the association relationship between the server and an operating system, and extracting network configuration information;
checking the state of a BMC of the server;
automatically logging in a remote control page of BMC Web, automatically generating a py script for acquiring network information of an operating system according to a json library configured by a network, acquiring and updating the information, and displaying the information on an interface of the operating system in real time; and if the operating system network is found to have faults according to the information, attempting to automatically repair the faults, and if the repair is unsuccessful, recording a manual processing suggestion and feeding the manual processing suggestion back to a preset fault processing service desk to perform synchronous sharing of the processing suggestion.
5. The method for dynamically checking operating system network information according to claim 4, wherein the acquiring BMCIP information and hardware information of the server comprises:
and acquiring IP, user name and password information of each server BMC, and automatically acquiring hardware configuration information of each network card by using a restful interface protocol according to the restful interface data after acquiring the server BMCIP.
6. The method for dynamically checking network information of an operating system according to claim 5, wherein the association relationship between the configuration server and the operating system includes:
and associating the hardware configuration information of the network card of the server with the version information of the operating system to form one-to-one or one-to-many relationship.
7. The method of claim 4, wherein the checking the server BMC state comprises:
and checking the BMC state of the server, and automatically carrying out hot restart or factory reset on the BMC if the BMC state of the server is abnormal.
8. The method for dynamically checking network information of an operating system according to claim 5, wherein the automatically logging in a remote control page of the BMC Web, automatically generating a py script for acquiring network information of the operating system according to a json library configured by a network, and acquiring and updating information comprises:
automatically opening remote control through a selenium, redirecting a console, and starting an H5Viewer page; awakening an operating system interface in a mode of simulating keyboard keys and input of an input box through a selenium;
positioning an operating system interface network mode through a selenium, inputting an ipconfig command to check whether an OSIP can be obtained or not, if so, entering an operating system through a remote ssh OSIP to send a network and process return information, if not, checking the network configuration of the current operating system or the hardware configuration of a network cable network card, and if the OSIP cannot be obtained after checking, executing the operation in a keyboard input simulation mode through the selenium by using an operating system interface;
automatically selecting a corresponding automatic processing method according to the acquired network configuration information and the network configuration json library, and sequentially generating automatic acquisition codes until a complete py file of the automatic codes is generated;
executing the generated code under the selected execution environment to generate operating system network information;
and when the network configuration json library and the data processing method are changed, automatically updating the information to finish the automatic acquisition and dynamic updating of the network information of the operating system.
9. An apparatus for dynamically checking network information of an operating system, comprising:
the memorizer, is used for storing the network information dynamic checking program of the operating system;
a processor, configured to implement the steps of the method for dynamically checking network information of an operating system according to any one of claims 4 to 8 when executing the program for dynamically checking network information of an operating system.
10. A readable storage medium, characterized by: the readable storage medium stores thereon a dynamic checking program for network information of an operating system, which when executed by a processor implements the steps of the dynamic checking method for network information of an operating system according to any one of claims 4 to 8.
CN202210833221.1A 2022-07-15 2022-07-15 Dynamic checking system, method, device and medium for network information of operating system Pending CN115220974A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210833221.1A CN115220974A (en) 2022-07-15 2022-07-15 Dynamic checking system, method, device and medium for network information of operating system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210833221.1A CN115220974A (en) 2022-07-15 2022-07-15 Dynamic checking system, method, device and medium for network information of operating system

Publications (1)

Publication Number Publication Date
CN115220974A true CN115220974A (en) 2022-10-21

Family

ID=83612688

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210833221.1A Pending CN115220974A (en) 2022-07-15 2022-07-15 Dynamic checking system, method, device and medium for network information of operating system

Country Status (1)

Country Link
CN (1) CN115220974A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116149897A (en) * 2023-04-19 2023-05-23 苏州云途半导体有限公司 Chip functional safety fault processing method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116149897A (en) * 2023-04-19 2023-05-23 苏州云途半导体有限公司 Chip functional safety fault processing method
CN116149897B (en) * 2023-04-19 2023-07-04 苏州云途半导体有限公司 Chip functional safety fault processing method

Similar Documents

Publication Publication Date Title
CN112491606B (en) Method for automatically deploying high-availability cluster of service system based on infrastructure
CN111052087B (en) Control system, information processing apparatus, and recording medium
CN108134692A (en) A kind of fault handling method and system based on mark figure
CN102479142A (en) Rack server system and monitoring method thereof
CN103092167A (en) Glass production line remote monitoring system based on web
CN112437047A (en) Remote server management method, system and related device
US20140019804A1 (en) Method and Device For Quasi-Proxy Assisted Manual Device Testing
CN115220974A (en) Dynamic checking system, method, device and medium for network information of operating system
CN111431749A (en) FPGA cloud server management platform and use method thereof
CN111769979A (en) Cloud resource arranging method, system, terminal and storage medium
CN114237538A (en) Screen projection control method, server, screen projection equipment and system
CN110912725A (en) Configuration method and configuration device of OpenFlow virtual switch
CN109286512A (en) The backup method of network equipment information, device and system
CN104378231A (en) Control system and control method for enterprise wireless router
TWI537743B (en) Remote management method and the apparatus thereof
CN106598793A (en) Test system and method based on BIOS serial port log data
CN111341434A (en) Remote fault diagnosis and maintenance system for medical equipment and construction method thereof
CN115827382A (en) Switch state information monitoring system, method, device and storage medium
CN105893502A (en) Code synchronization method and device
CN114637669A (en) Device management method, device and storage medium
CN114755223A (en) Electronic equipment wiring monitoring method, device and system
CN113961504A (en) Mobile terminal group control method, device, system, server and storage medium
CN105808418B (en) Test machine register method, apparatus and system
CN103457771A (en) Method and device for HA virtual machine cluster management
CN106254156B (en) Equipment access method and device

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