Interactive data bus Dbus access method and system

Through interactive Dbus access methods and systems, the limitations of existing Dbus client tools in terms of interactivity and flexibility are solved, user-friendly operation experience and efficient management are achieved, and BMC monitoring and management efficiency is improved.

CN119166457AInactive Publication Date: 2024-12-20BEIJING ANXUN TIANWEI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411209877.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-30
Publication Date
2024-12-20
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Dbus client tools such as busctl used in existing BMCs have limitations in terms of interactivity and flexibility, resulting in unintuitive user operations and low management efficiency, which is especially difficult for non-professional users, and lacks real-time feedback and permission control.

Method used

An interactive data bus Dbus access method and system is designed. By establishing the correspondence between operation number and service name, receiving user input and matching execution commands, providing real-time feedback and permission control, simplifying user operations, and recording operation history.

Benefits of technology

It improves the intuitiveness and convenience of Dbus operations, enhances user experience, improves management efficiency and security, and reduces maintenance costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119166457A_ABST
    Figure CN119166457A_ABST
Patent Text Reader

Abstract

The invention belongs to the technical field of computers, and provides an interactive data bus Dbus access method and system, which are applied to a data bus Dbus service monitoring management tool, and the method comprises the following steps: establishing an operation number and / or a service name corresponding to a Dbus service monitoring management command line parameter; and receiving an input instruction of a user, judging whether the input instruction corresponds to the operation number or the service name or not, matching the Dbus service corresponding to the input instruction, and executing a corresponding command. According to the interactive data bus Dbus access method and system provided by the invention, a user does not need to input complex commands and parameters, so that non-technical users can easily monitor and manage Dbus services, and the intuition and convenience of user operation are improved, thereby improving the management efficiency and enhancing the interactivity.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the field of computer technology, and in particular relates to an interactive data bus Dbus access method and system. Background Art

[0002] With the continuous expansion of data center scale and the rapid development of cloud computing and big data technology, the management and monitoring of servers have become increasingly important. As part of the server hardware, BMC is responsible for monitoring server status, managing power control, and providing remote management functions. Dbus is a lightweight message bus system that allows processes to communicate through messages, providing a flexible and efficient communication method for various services and applications. It is common to use Dbus for inter-process communication in BMC. The Dbus system in BMC is used to implement various management functions such as system monitoring, event logging, remote control, etc. At present, although commonly used Dbus client tools such as "DbusCtrl" can send Dbus messages, they have certain limitations in interactivity and flexibility, which to a certain extent limits the user's interactive experience and management efficiency.

[0003] In the existing technology, BMC uses busctl (DbusCtrl) which is not intuitive enough when processing complex operations. It is difficult for non-professional users to use and lacks a real-time feedback mechanism, making it inconvenient for debugging and monitoring. The specific problems include: Unfriendly to use: Command line tools such as busctl are not friendly to non-technical users. Users need to remember complex commands and parameters, which increases the difficulty of use; Unclear error feedback: When a user enters an incorrect command in the command line, they will receive an error prompt, but the prompt is often not specific enough to help the user quickly locate the problem. Low operational efficiency: Users need to use multiple command combinations to complete complex operations, which not only increases the complexity of operations but also reduces management efficiency; Difficulty in multi-user management: In a multi-user environment, command line tools have difficulty in implementing fine-grained control of user permissions and concurrent management of operations; Lack of real-time performance: Command-line tools usually require users to manually refresh or re-query, and cannot display the latest status of Dbus services in real time; Historical operations are difficult to track: There is no intuitive history of operations performed by users in the command line, making it difficult to review and copy previous operations.

[0004] Therefore, it is necessary to design a Dbus access method and system to solve the problems and shortcomings of the above-mentioned prior art and improve the monitoring and management efficiency of the server BMC. Summary of the invention

[0005] In order to solve the above technical problems, the present invention proposes an interactive data bus Dbus access method and system, which does not require users to input complex commands and parameters, reduces the difficulty of using Dbus, and enables non-technical users to easily monitor and manage Dbus services, improves the efficiency of BMC management, and improves the intuitiveness and convenience of user operations, thereby improving management efficiency and enhancing interactivity.

[0006] The technical solution of the present invention is: The present invention proposes an interactive data bus Dbus access method, which is applied to the monitoring and management of data bus Dbus services. The method comprises: Establishing operation numbers and / or service names corresponding to Dbus service monitoring and management command line parameters; Receive the user's input command and determine whether it corresponds to the operation number or service name. When determining: If the corresponding operation number or service name cannot be found, the user will be prompted with an input error and a corresponding solution will be provided; If the operation number corresponding to the input instruction is found, the corresponding Dbus service is matched and the corresponding command is executed; If the service name corresponding to the input command is found, the corresponding Dbus service is matched and the corresponding command is executed.

[0007] Preferably, the step c also includes: checking and listing all sub-services under the corresponding Dbus service, the user selects the corresponding sub-service according to the prompt, matches the corresponding Dbus service and executes the corresponding command.

[0008] Preferably, the method further comprises: saving the user's operation record to a log file for query and tracing.

[0009] Preferably, the user logs in to the server BMC system and establishes a connection with the data bus Dbus, displays the data and service status of the Dbus service in real time, and waits for receiving user input instructions.

[0010] Preferably, the user can select start, stop and restart operations through menu options to execute start, stop and restart of the Dbus service.

[0011] Preferably, the method further includes: performing authority control and operation isolation on the user environment, and restricting the logged-in user from performing sensitive operations according to the operation authority of the logged-in user.

[0012] Preferably, the present invention also provides an interactive data bus Dbus access system, the system comprising: The interactive operation module is provided with an operation number and / or service name corresponding to the Dbus service monitoring and management command line parameters, receives the user's input instruction, queries the corresponding operation number or service name, and matches the corresponding Dbus service to execute the corresponding command; The error feedback module instantly displays the execution result of the command entered by the user and possible error prompts when the command is entered incorrectly or the command is not supported. It also provides error prompts and solutions based on the incorrect operation to help users correct the error quickly.

[0013] Preferably, the system further comprises: User login module, so that users can log in to the BMC system of the server and establish access connection with the data bus Dbus service; User permission module, which provides support for multi-user environment, performs permission control and operation isolation in multi-user environment, and restricts sensitive operations according to user operation permission, ensuring that users can only access and modify services within their permission. Operation tracking module, which records the user's operation history and enables historical query and operation playback; Update the display module to update and display the Dbus service status and data attribute values ​​in real time to ensure that users get the latest information; The menu selection module provides a start option, a stop option, and a restart option for the user to select, and is used to execute the start, stop and restart operations of the system.

[0014] Compared with the prior art, the present invention has the following advantages and effects: Improve the convenience of using Dbus: The interactive user interface simplifies Dbus operations, reduces the user's learning cost, and provides an intuitive operation process, so that users do not need to remember and enter complex command formats and parameters, but only need to follow the prompts to obtain the required information.

[0015] Enhanced user experience: Enhanced user intuitive experience, making Dbus operation more friendly, and the real-time feedback mechanism improves the transparency of Dbus operation, making it easier for users to understand the data attributes and real-time status of Dbus communication.

[0016] Improve the transparency and debuggability of Dbus operations: By implementing a real-time feedback mechanism, the transparency of Dbus operations is improved, making it easier for users to debug. The error handling feedback mechanism can intelligently identify and prompt common errors in Dbus operations, improving debugging efficiency.

[0017] Enhanced security: The security of Dbus communication is improved by limiting different user access rights and encrypting transmission.

[0018] Improve management efficiency: By simplifying Dbus operations, users can quickly complete management tasks, improving overall management efficiency.

[0019] Reduced maintenance costs: Centralized management and configuration simplify the system maintenance process, reducing maintenance costs and complexity. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] Figure 1 Schematic diagram of the flow of the interactive data bus Dbus access method in Example 1 of the present invention; Figure 2 Schematic diagram of the interactive interface of the interactive data bus Dbus access method in Example 1 of the present invention; Figure 3 It is another interactive interface schematic diagram of the interactive data bus Dbus access method in embodiment 1 of the present invention; Figure 4 It is a structural diagram of the interactive data bus Dbus access system in Example 2 of the present invention. DETAILED DESCRIPTION

[0021] In order to enable those skilled in the art to better understand the present invention, the present invention is further described in conjunction with specific implementation methods.

[0022] Embodiment 1: like Figure 1~Figure 3 As shown, the present invention provides an interactive data bus Dbus access method, which is applied to the monitoring and management of the data bus Dbus service, and aims to simplify the use process of Dbus, improve the user's operating experience, and support a real-time feedback mechanism to facilitate users to debug and monitor. The specific embodiment of this invention takes the Dbus client tool DbusCtrl as an example to illustrate, and the method at least includes the following steps: The user logs in to the server BMC system through the serial port or ssh, and establishes a connection with the data bus Dbus through DbusCtrl, which displays the data and service status on the Dbus in real time and waits for receiving user input commands.

[0023] Perform permission control and operation isolation on the user environment, and restrict logged-in users from performing sensitive operations based on their operation permissions.

[0024] Establish an operation number and / or service name corresponding to the Dbus service monitoring and management command line parameters. Specifically in this embodiment, an interactive command line execution tool with the above operation number and service name content built in and capable of implementing the above functions is provided. By inputting instructions in the above interactive command line execution tool, a certain Dbus service can be directly accessed.

[0025] Receive the user's input command and determine whether it corresponds to the operation number or service name, so that the user can manage and edit services through simple parameter selection. When judging: If the corresponding operation number or service name cannot be found, the user will be prompted that the input is wrong and a corresponding solution will be provided; that is, when the user enters an incorrect command or an unsupported command in the interactive interface command line, the execution result of the user-entered command and possible error prompts can be displayed immediately. The error handling mechanism can identify and prompt common errors in Dbus operations, improve debugging efficiency, and ensure the correctness of user operations.

[0026] If the operation number corresponding to the input instruction is found, match the corresponding Dbus service and execute the corresponding command; refer to Figure 2 As shown in the figure, after executing List bus names, the NAME column displayed is the operation number, and the PID, PROCESS, USER, CONNECTION, UNIT, SESSION columns are the corresponding Dbus service status and attribute information. Users can directly execute the corresponding Dbus service command and display the execution result by directly entering the operation number. It provides an intuitive operation process, so that users do not need to remember complex command formats and parameters, and only need to enter instructions according to the prompts to obtain the required information.

[0027] If the service name corresponding to the input command is found, the corresponding Dbus service is matched and the corresponding command is executed. Specifically, all sub-services under the corresponding Dbus service are checked and listed. The user selects the corresponding sub-service according to the prompt, matches the corresponding Dbus service and executes the corresponding command. Figure 3 As shown in the figure, . / DbusCtrlorg.freedesktop.NetworkManager is the input service name, 1) tree, 2) status, 3) monitor, 4) capture, 0) exit are all the corresponding sub-services. The user selects the corresponding sub-service according to the prompt to match the corresponding Dbus service and execute the corresponding command, for example Figure 3 The interactive interface will display the corresponding service tree information.

[0028] Furthermore, the method also includes: saving the user's operation records to a log file, recording all the user's Dbus command operations for query, tracing and copying, and the log file can also be exported to facilitate the analysis of problem failures.

[0029] Optionally, in some embodiments, the user can select start, stop and restart operations through menu options to execute start, stop and restart of the Dbus service.

[0030] Embodiment 2: For Example 2 of the present invention, Figure 4 For explanation. Figure 4 As shown, the present invention also provides an interactive data bus Dbus access system, the system comprising: The user login module enables users to log in to the BMC system of the server through the serial port or ssh and establish an access connection with the data bus Dbus service.

[0031] The user permission module is connected to the user login module to provide support for multi-user environments, and perform permission control and operation isolation for multi-user environments. Users who log in through the user login module can perform sensitive operations based on the logged-in user's operation permission restrictions, ensuring that the logged-in user can only access and modify services within their permissions, thereby improving the security of the server.

[0032] The interactive operation module is provided with operation numbers and / or service names corresponding to the Dbus service monitoring and management command line parameters. By receiving the user's input instructions, querying the corresponding operation numbers or service names, and matching the corresponding Dbus services to execute the corresponding commands, the Dbus operations are effectively simplified. Users do not need to remember and enter complex command formats and parameters, so that users can quickly complete management tasks and improve overall management efficiency.

[0033] The error feedback module instantly displays the execution result of the command entered by the user and possible error prompts when the command is incorrectly entered or the command is not supported. It also provides error prompts and solutions based on the erroneous operation to help users correct the error quickly and ensure the correctness of the user's operation.

[0034] The update display module is connected to the interactive operation module and the error feedback module to update and display the service status and data attribute values ​​of Dbus in real time through the interactive interface to ensure that users get the latest information without manual refresh by users.

[0035] The menu selection module is connected to the update display module and provides start options, stop options, and restart options for users to select. It is used to execute system start, stop and restart operations. Users can select and execute corresponding operations through the menu options of the interactive interface.

[0036] The operation tracking module is connected to the interactive operation module, error feedback module, and menu selection module to record all the user's Dbus operation history, and can perform historical query and operation playback to facilitate users to review and copy previous operations, and can export operation record data to facilitate the reproduction and resolution of problems and faults.

[0037] In summary, the interactive data bus Dbus access method and system provided by the present invention do not require the user to input complex commands and parameters, so that non-technical users can easily monitor and manage Dbus services, improve the intuitiveness and convenience of user operations, thereby improving management efficiency and enhancing interactivity.

[0038] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. All equivalent changes and modifications made within the scope of the present invention should still fall within the scope of the present invention.

Claims

1. An interactive data bus Dbus access method, characterized in that: The method comprises: Establishing operation numbers and / or service names corresponding to Dbus service monitoring and management command line parameters; Receive the user's input command and determine whether it corresponds to the operation number or service name. When determining: If the corresponding operation number or service name cannot be found, the user will be prompted with an input error and a corresponding solution will be provided; If the operation number corresponding to the input instruction is found, the corresponding Dbus service is matched and the corresponding command is executed; If the service name corresponding to the input command is found, the corresponding Dbus service is matched and the corresponding command is executed.

2. The interactive data bus Dbus access method according to claim 1, characterized in that: The step c also includes: View and list all sub-services under the corresponding Dbus service. Users select the corresponding sub-service according to the prompts, match the corresponding Dbus service and execute the corresponding command.

3. The interactive data bus Dbus access method according to claim 1, characterized in that: Also includes: Save user operation records to log files for query and tracing.

4. The interactive data bus Dbus access method according to claim 1, characterized in that: The user logs in to the server BMC system and establishes a connection with the data bus Dbus, which displays the data and service status of the Dbus service in real time and waits for user input instructions.

5. The interactive data bus Dbus access method according to claim 4, characterized in that: The user can select start, stop and restart operations through menu options to execute start, stop and restart of Dbus service.

6. The interactive data bus Dbus access method according to claim 4, characterized in that: Also includes: Perform permission control and operation isolation on the user environment, and restrict logged-in users from performing sensitive operations based on their operation permissions.

7. An interactive data bus Dbus access system, characterized in that: The system comprises: The interactive operation module is provided with an operation number and / or service name corresponding to the Dbus service monitoring and management command line parameters, receives the user's input instruction, queries the corresponding operation number or service name, and matches the corresponding Dbus service to execute the corresponding command; The error feedback module instantly displays the execution result of the command entered by the user and possible error prompts when the command is entered incorrectly or the command is not supported. It also provides error prompts and solutions based on the incorrect operation to help users correct the error quickly.

8. The interactive data bus Dbus access system according to claim 7, characterized in that: Also includes: User login module, so that users can log in to the BMC system of the server and establish access connection with the data bus Dbus service; User permission module, which provides support for multi-user environment, performs permission control and operation isolation in multi-user environment, and restricts sensitive operations according to user operation permission, ensuring that users can only access and modify services within their permission. Operation tracking module, which records the user's operation history and enables historical query and operation playback; Update the display module to update and display the Dbus service status and data attribute values ​​in real time to ensure that users get the latest information; The menu selection module provides a start option, a stop option, and a restart option for the user to select, and is used to execute the start, stop and restart operations of the system.