CN116827601A - Data transmission method, device, electronic equipment and storage medium - Google Patents

Data transmission method, device, electronic equipment and storage medium Download PDF

Info

Publication number
CN116827601A
CN116827601A CN202310617915.6A CN202310617915A CN116827601A CN 116827601 A CN116827601 A CN 116827601A CN 202310617915 A CN202310617915 A CN 202310617915A CN 116827601 A CN116827601 A CN 116827601A
Authority
CN
China
Prior art keywords
bmc
server bmc
data
monitoring data
acquisition request
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
CN202310617915.6A
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 CN202310617915.6A priority Critical patent/CN116827601A/en
Publication of CN116827601A publication Critical patent/CN116827601A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/0807Network architectures or network communication protocols for network security for authentication of entities using tickets, e.g. Kerberos
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0805Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/10Active monitoring, e.g. heartbeat, ping or trace-route
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/083Network architectures or network communication protocols for network security for authentication of entities using passwords
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/40Network security protocols

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Hardware Design (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Environmental & Geological Engineering (AREA)
  • Health & Medical Sciences (AREA)
  • Cardiology (AREA)
  • General Health & Medical Sciences (AREA)
  • Computer And Data Communications (AREA)

Abstract

The invention provides a data transmission method, a data transmission device, electronic equipment and a storage medium, wherein the method comprises the following steps: sending a data acquisition request to a server BMC cluster, and determining that at least one slave server BMC and a master server BMC support data transmission; and receiving the identity credential and the access token sent by the slave server BMC, verifying the identity credential and the access token, and receiving first monitoring data sent by the slave server BMC under the condition that the identity credential and the access token pass verification, wherein the first monitoring data is obtained by responding to the data obtaining request by the slave server BMC. According to the invention, interaction between the master server BMC and the slave server BMC is realized through the data acquisition request, the identity credential and the access token, so that the monitoring data of the slave server can be acquired more quickly, and the operation and maintenance efficiency of the server is improved.

Description

Data transmission method, device, electronic equipment and storage medium
Technical Field
The present invention relates to the field of server technologies, and in particular, to a data transmission method, a data transmission device, an electronic device, and a storage medium.
Background
With the development of the internet, the demands of the servers are higher and higher, the types of the servers are also divided into a rack type, a blade type, a tower type, a cabinet type and the like, and various server model products are applied to different use scenes and are corresponding to various operation and maintenance environments.
The BMC is very important for monitoring the running condition of the server, is used as a monitoring management system, monitors the running condition of the server in real time and timely adjusts the running of the server. However, in the case that the large-scale server cannot realize the cluster, the operation and maintenance of the server have great difficulty, the operation condition of each server cannot be monitored in real time, and certain limitation exists.
Therefore, how to monitor the key data of all servers for a large number of servers that do not implement cluster monitoring is a technical problem that needs to be solved in the industry.
Disclosure of Invention
The invention provides a data transmission method, a data transmission device, electronic equipment and a storage medium, which are used for solving the defect that a large-scale server cannot realize clustering in the prior art and realizing the monitoring of key data of a plurality of slave servers through a master server.
The invention provides data transmission, which is applied to a BMC (baseboard management controller) of a main server, and comprises the following steps:
Sending a data acquisition request to a server cluster, and determining that at least one slave server BMC and a master server BMC support data transmission;
and receiving the identity credential and the access token sent by the slave server BMC, verifying the identity credential and the access token, and receiving first monitoring data sent by the slave server BMC under the condition that the identity credential and the access token pass verification, wherein the first monitoring data is obtained by responding to the data obtaining request by the slave server BMC.
According to the data transmission method provided by the invention, after receiving the monitoring data sent from the server BMC, the method further comprises the following steps:
based on the target time interval, the data acquisition request is sent to the slave server BMC again;
and receiving second monitoring data sent from the server BMC, wherein the second monitoring data and the first monitoring data have differences.
According to the data transmission method provided by the invention, the identity credential comprises an Internet protocol address and a user name password;
and receiving the first monitoring data sent from the server BMC under the condition that the identity credential and the access token pass verification, wherein the first monitoring data comprises the following steps:
Verifying the Internet protocol address and the user name password;
verifying the validity period of the access token under the condition that the internet protocol address and the user name password pass verification;
and receiving the first monitoring data sent from the server BMC under the condition that the effective expiration of the access token is enough to preset time limit.
According to the data transmission method provided by the invention, the first monitoring data comprises at least one of the following: asset information, alert information, and sensor information.
According to the data transmission method provided by the invention, the data acquisition request is sent to the server cluster, and it is determined that at least one slave server BMC and a master server BMC support data transmission, including:
transmitting a data acquisition request to the server cluster based on a target communication protocol, and establishing connection between each slave server BMC based on the data acquisition request;
and determining that the at least one slave server BMC supports data transmission under the condition that the access token sent by the at least one slave server BMC is received.
The invention also provides a data transmission method applied to the slave server baseboard management controller BMC, comprising the following steps:
Receiving a data acquisition request sent by a main server BMC, and establishing communication connection with the main server BMC based on the data acquisition request;
sending an identity credential and an access token to the master server BMC, and responding to the data acquisition request to obtain first monitoring data of the slave server BMC under the condition that the identity credential and the access token pass verification;
and sending the first monitoring data to the main server BMC.
According to the data transmission method provided by the invention, after the first monitoring data is sent to the main server BMC, the method further comprises:
receiving a data acquisition request continuously sent by the main server BMC based on a target time interval;
responding to the data acquisition request to obtain second monitoring data;
and sending the second monitoring data to the main server BMC under the condition that the first monitoring data and the second monitoring data are different.
According to the data transmission method provided by the invention, after the second monitoring data is obtained in response to the data acquisition request, the method further comprises the following steps:
and deleting the second monitoring data to release the memory space of the slave server BMC under the condition that the first monitoring data and the second monitoring data are not different.
According to the data transmission method provided by the invention, the identity credential comprises an Internet protocol address and a user name password;
and under the condition that the identity credential and the access token pass verification, responding to the data acquisition request to obtain first monitoring data of the slave server BMC, wherein the first monitoring data comprises the following steps:
and under the condition that the verification of the Internet protocol address and the user name password is confirmed to pass, and the valid expiration of the access token is enough to the preset period, responding to the data acquisition request, and obtaining first monitoring data of the slave server BMC.
The invention also provides a data transmission device applied to the BMC of the main server, comprising:
the request sending module is used for sending a data acquisition request to the server cluster and determining that at least one slave server BMC and a master server BMC support data transmission;
the first monitoring module is used for receiving the identity certificate and the access token sent by the slave server BMC, verifying the identity certificate and the access token, and receiving first monitoring data sent by the slave server BMC under the condition that the identity certificate and the access token pass verification, wherein the first monitoring data is obtained by the slave server BMC responding to the data obtaining request.
The invention also provides a data transmission device which is applied to the slave server baseboard management controller BMC and comprises:
the receiving module is used for receiving a data acquisition request sent by the main server BMC and establishing communication connection with the main server BMC based on the data acquisition request;
the verification module is used for sending the identity certificate and the access token to the master server BMC, and responding to the data acquisition request to obtain first monitoring data of the slave server BMC under the condition that the identity certificate and the access token pass verification;
and the first sending module is used for sending the first monitoring data to the main server BMC.
The invention also provides an electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing a data transmission method as described in any of the above when executing the program.
The invention also provides a non-transitory computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements a data transmission method as described in any of the above.
The invention also provides a computer program product comprising a computer program which, when executed by a processor, implements a data transmission method as described in any of the above.
According to the data transmission method, the device, the electronic equipment and the storage medium, a data acquisition request is sent to a server cluster through a master server BMC, it is determined that at least one slave server BMC and the master server BMC support data transmission, identity credentials and access tokens sent by the slave server BMC are received, the identity credentials and the access tokens are verified, and under the condition that the identity credentials and the access tokens pass verification, first monitoring data sent by the slave server BMC are received. According to the invention, interaction between the master server BMC and the slave server BMC is realized through the data acquisition request, the identity credential and the access token, so that the monitoring data of the slave server BMC can be acquired more quickly, and the operation and maintenance efficiency of the server is improved.
Drawings
In order to more clearly illustrate the invention or the technical solutions of the prior art, the following description will briefly explain the drawings used in the embodiments or the description of the prior art, and it is obvious that the drawings in the following description are some embodiments of the invention, and other drawings can be obtained according to the drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic flow chart of a data transmission method provided by the present invention;
FIG. 2 is a second flow chart of the data transmission method according to the present invention;
FIG. 3 is a third flow chart of the data transmission method according to the present invention;
fig. 4 is a schematic structural diagram of a data transmission device according to the present invention;
FIG. 5 is a second schematic diagram of a data transmission device according to the present invention;
fig. 6 is a schematic structural diagram of an electronic device provided by the present invention.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the present invention more apparent, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is apparent that the described embodiments are some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Referring to fig. 1, the data transmission method provided by the present invention is applied to a master server baseboard management controller BMC, and the method includes the following steps:
step 110, sending a data acquisition request to a server BMC cluster, and determining that at least one slave server BMC and a master server BMC support data transmission;
Step 120, receiving the identity credential and the access token sent by the slave server BMC, verifying the identity credential and the access token, and receiving first monitoring data sent by the slave server BMC when the identity credential and the access token pass verification, where the first monitoring data is obtained by the slave server BMC responding to the data obtaining request.
The above steps are described in detail below.
It should be emphasized that the execution body of the present embodiment is a master server baseboard management controller (Baseboard Manager Controller, BMC).
In step 110, a data acquisition request is sent to the server cluster by the master server BMC. The server cluster includes a plurality of servers, which can be considered slave servers with respect to the master server.
Further, the sending a data acquisition request to the server BMC cluster, and determining that there is at least one slave server BMC and a master server BMC to support data transmission, includes: transmitting a data acquisition request to the server cluster based on a target communication protocol, and establishing connection between each slave server BMC based on the data acquisition request;
and determining that the at least one slave server BMC supports data transmission under the condition that the access token sent by the at least one slave server BMC is received.
Note that, in this embodiment, the target communication protocol, such as HTTP protocol, is used. In other embodiments, the target communication protocol may also be FTP protocol, SMTP protocol, POP3 protocol, IMAP protocol, DNS protocol, or the like. And sending a data acquisition request to the slave server BMC, so as to establish communication connection between the master server BMC and the slave server BMC.
It will be appreciated that the process of sending data acquisition requests to the server cluster (i.e. the plurality of slave server BMCs) by the master server BMC is referred to as the process of establishing a communication connection between the master server BMC and the slave server BMCs.
Each slave server BMC generates a token value, i.e. an access token, after receiving a data acquisition request sent by the master server BMC, and returns the token value to the master server BMC if the slave server BMC supports data transmission, otherwise, fails to return the token to the master server BMC if the slave server does not support data transmission.
In the above step 120, the master server BMC receives the access token generated by the slave server BMC, determines to perform data transmission with the slave server BMC, and simultaneously receives the identity credential of the slave server BMC, including the IP address, the user password, and the like. And verifying the validity period of the identity certificate and the access token on the master server, and if the verification is passed, actively capturing first monitoring data of the slave server BMC by the master server BMC.
In some embodiments, the master server BMC directly performs monitoring data crawling on the slave server BMC through a data acquisition request, authentication of an identity credential, and authentication of an access token. Or after the master server BMC passes the data acquisition request, the authentication of the identity credential and the authentication of the access token, the master server BMC feeds back an authentication passing instruction to the slave server BMC, and after the slave server receives the authentication passing instruction, the slave server BMC responds to the instruction to acquire monitoring data of the slave server BMC. That is, the present embodiment may implement the acquisition of the monitoring data from the server BMC through different embodiments.
After the slave server BMC acquires the first monitoring data, such as asset information, alarm information and sensor information of the slave server BMC, the monitoring data are sent to the master server BMC, so that the master server BMC monitors the slave server BMC.
In the actual implementation process, since there is usually a plurality of slave server BMCs monitored by the master server BMC at the same time, the master server BMC can monitor the server cluster.
According to the data transmission method, a data acquisition request is sent to a server cluster through a master server BMC, it is determined that at least one slave server BMC and the master server BMC support data transmission, identity credentials and access tokens sent by the slave server BMC are received, the identity credentials and the access tokens are verified, and first monitoring data sent by the slave server BMC are received under the condition that the identity credentials and the access tokens pass verification. According to the invention, interaction between the master server BMC and the slave server BMC is realized through the data acquisition request, the identity credential and the access token, so that the monitoring data of the slave server BMC can be acquired more quickly, and the operation and maintenance efficiency of the server is improved.
In some optional embodiments, after the receiving the monitoring data sent from the server BMC, the method further includes:
based on the target time interval, the data acquisition request is sent to the slave server BMC again;
and receiving second monitoring data sent from the server BMC, wherein the second monitoring data and the first monitoring data have differences.
It can be appreciated that this embodiment is a process of sending change monitoring data from the server BMC to the master server BMC.
The target time interval is usually 5 minutes, and in other embodiments, the time can be adjusted according to the actual situation. That is, the master server BMC transmits a data acquisition request again to the slave server BMC after receiving the first monitoring data for 5 minutes, and the slave server BMC acquires asset information, alarm log, sensor information, etc. again and records as the second monitoring data.
And comparing the second monitoring data with the first monitoring data, and if the second monitoring data and the first monitoring data have differences, reporting the second monitoring data to the main server BMC. Otherwise, if the second monitoring data is not different from the first monitoring data, the second monitoring data does not need to be reported.
According to the data transmission method provided by the invention, the second monitoring data of the secondary server BMC is compared with the first monitoring data, and the second monitoring data is uploaded to the primary server BMC under the condition that the two monitoring data are different, so that the secondary server monitoring is realized, the monitoring data can be selectively uploaded, and the redundancy caused by data accumulation is avoided.
In some alternative embodiments, the identity credential includes an internet protocol address and a username password;
and receiving the first monitoring data sent from the server BMC under the condition that the identity credential and the access token pass verification, wherein the first monitoring data comprises the following steps:
verifying the Internet protocol address and the user name password;
verifying the validity period of the access token under the condition that the internet protocol address and the user name password pass verification;
and receiving the first monitoring data sent from the server BMC under the condition that the effective expiration of the access token is enough to preset time limit.
It will be appreciated that this embodiment is a verification process for identity credentials and access tokens.
Firstly, the master server BMC verifies the Internet protocol address (IP address) and the user name password, determines information such as server identity and the like of the slave server BMC, verifies the validity period of the access token after the verification is passed, and if the validity period is within a set period, the access token is not expired, and the access token is verified.
After the identity credentials and the access tokens are both verified, the slave server BMC may send the acquired first monitoring data to the master server BMC.
According to the data transmission method provided by the invention, the identity certificate and the access token of the slave server BMC are verified successively through the master server BMC, and the monitoring data of the slave server can be received after verification is passed, so that the monitoring of the slave server BMC is realized.
Referring to fig. 2, the present invention further provides a data transmission method applied to a slave server baseboard management controller BMC, the method including:
step 210, receiving a data acquisition request sent by a main server BMC, and establishing a communication connection with the main server BMC based on the data acquisition request;
step 220, an identity credential and an access token are sent to the master server BMC, and first monitoring data of the slave server BMC are obtained in response to the data acquisition request when the identity credential and the access token pass verification;
step 230, sending the first monitoring data to the main server BMC.
The above steps are described in detail below.
It should be emphasized that the execution body of the present embodiment is a slave server baseboard management controller (Baseboard Manager Controller, BMC). The number of slave server BMCs is at least one, and typically a plurality of slave server BMCs, and the master server are in data interaction.
In the above step 210, first, a data acquisition request sent by the main server BMC through the target communication protocol, that is, the corresponding communication protocol in the embodiment of the main server BMC is received. And establishing a connection with the main server BMC through the data acquisition request.
In the step 220, when the master server BMC verifies that the identity credential and the access token of the slave server BMC pass, the master server BMC responds to the data acquisition request to acquire the first monitoring data of the slave server BMC, including asset information, alarm log, sensor information, and the like. Finally, the first monitoring data is sent to the master server BMC through step 230, so that the master server BMC monitors the data of the slave server BMC.
According to the data transmission method, a slave server BMC receives a data acquisition request sent by the master server BMC based on a target communication protocol, establishes communication connection with the master server BMC based on the data acquisition request, sends an identity credential and an access token to the master server BMC, and responds to the data acquisition request to obtain first monitoring data of the slave server BMC under the condition that the identity credential and the access token pass verification; and sending the first monitoring data to the main server BMC. According to the invention, interaction between the master server BMC and the slave server BMC is realized through the data acquisition request, the identity credential and the access token, so that the monitoring data of the slave server BMC can be acquired more quickly, and the operation and maintenance efficiency of the server is improved.
In some optional embodiments, after the sending the first monitoring data to the main server BMC, the method further includes:
receiving a data acquisition request continuously sent by the main server BMC based on a target time interval;
responding to the data acquisition request to obtain second monitoring data;
and sending the second monitoring data to the main server BMC under the condition that the first monitoring data and the second monitoring data are different.
And deleting the second monitoring data to release the memory space of the slave server BMC under the condition that the first monitoring data and the second monitoring data are not different.
It can be appreciated that this embodiment is a process of sending change monitoring data from the server BMC to the master server BMC.
The target time interval is usually 5 minutes, and in other embodiments, the time can be adjusted according to the actual situation. That is, after receiving the first monitoring data for 5 minutes, the master server BMC receives the data acquisition request sent by the master server BMC again, and the slave server BMC acquires asset information, alarm log, sensor information and the like again and records the asset information, alarm log, sensor information and the like as second monitoring data.
And comparing the second monitoring data with the first monitoring data, and if the second monitoring data and the first monitoring data have differences, reporting the second monitoring data to the main server BMC. Otherwise, if the second monitoring data is not different from the first monitoring data, the second monitoring data does not need to be reported, and the second monitoring data is deleted so as to release the memory space of the slave server BMC.
According to the data transmission method provided by the invention, the secondary monitoring data of the secondary server BMC is compared with the primary monitoring data by receiving the data acquisition request sent again by the primary server, and the secondary monitoring data is uploaded to the primary server BMC under the condition that the secondary monitoring data are different, so that the secondary server monitoring can be realized, the monitoring data can be selectively uploaded, and the redundancy caused by data accumulation is avoided.
In some alternative embodiments, the identity credential includes an internet protocol address and a username password;
and under the condition that the identity credential and the access token pass verification, responding to the data acquisition request to obtain first monitoring data of the slave server BMC, wherein the first monitoring data comprises the following steps:
and under the condition that the verification of the Internet protocol address and the user name password is confirmed to pass, and the valid expiration of the access token is enough to the preset period, responding to the data acquisition request, and obtaining first monitoring data of the slave server BMC.
Firstly, the master server BMC verifies the internet protocol address (IP address) and the user name password, determines the information such as the server identity of the slave server BMC, verifies the validity period of the access token after the verification is passed, and if the validity period is within the set period, the access token is not expired, and the access token is verified.
After the identity credentials and the access tokens are verified, the slave server BMC responds to a data acquisition request sent by the master server BMC, acquires monitoring data of the slave server BMC according to the data acquisition request, and then sends the acquired first monitoring data to the master server BMC.
According to the data transmission method provided by the invention, the monitoring data is sent to the master server BMC under the condition that the identity credentials and the access tokens of the slave server BMC are verified, so that the master server BMC monitors the slave server BMC.
Referring to fig. 3, fig. 3 is a third flowchart of a data transmission method according to the present invention, including:
step 310, a user inputs a request;
step 320, the main server BMC receives a user request;
step 330, verifying the credentials; if the verification passes the execution step 340, if the verification does not pass the execution step 350;
Step 340, issuing a credential from the server BMC
Step 350, the master server BMC refuses;
step 360, applying for a token;
step 370, token verification; if the verification passes the execution step 380, if the verification does not pass the execution step 390;
step 380, request response is performed from the server BMC.
Step 390, reject from server BMC.
The data transmission device provided by the invention is described below, and the data transmission device described below and the data transmission method described above can be referred to correspondingly.
Referring to fig. 4, the data transmission device provided by the present invention is applied to a master server baseboard management controller BMC, and includes the following modules:
a request sending module 410, configured to send a data acquisition request to a server BMC cluster, and determine that there is at least one slave server BMC and a master server BMC supporting data transmission;
the first monitoring module 420 is configured to receive the identity credential and the access token sent by the slave server BMC, verify the identity credential and the access token, and receive first monitoring data sent by the slave server BMC when the identity credential and the access token pass verification, where the first monitoring data is obtained by the slave server BMC in response to the data obtaining request.
It should be emphasized that the execution body of the present embodiment is a master server baseboard management controller (Baseboard Manager Controller, BMC).
In the request sending module 410, a data acquisition request is sent to the server cluster through the main server BMC. The server cluster includes a plurality of servers, which can be considered slave servers with respect to the master server.
Further, the sending a data acquisition request to the server BMC cluster, and determining that there is at least one slave server BMC and a master server BMC to support data transmission, includes: transmitting a data acquisition request to the server cluster based on a target communication protocol, and establishing connection between each slave server BMC based on the data acquisition request;
and determining that the at least one slave server BMC supports data transmission under the condition that the access token sent by the at least one slave server BMC is received.
Note that, in this embodiment, the target communication protocol, such as HTTP protocol, is used. In other embodiments, the target communication protocol may also be FTP protocol, SMTP protocol, POP3 protocol, IMAP protocol, DNS protocol, or the like. And sending a data acquisition request to the slave server BMC, so as to establish communication connection between the master server BMC and the slave server BMC.
It will be appreciated that the process of sending data acquisition requests to the server cluster (i.e. the plurality of slave server BMCs) by the master server BMC is referred to as the process of establishing a communication connection between the master server BMC and the slave server BMCs.
Each slave server BMC generates a token value, i.e. an access token, after receiving a data acquisition request sent by the master server BMC, and returns the token value to the master server BMC if the slave server BMC supports data transmission, otherwise, fails to return the token to the master server BMC if the slave server does not support data transmission.
In the first monitoring module 420, the master server BMC receives the access token generated by the slave server BMC, determines to perform data transmission with the slave server BMC, and simultaneously receives the identity credential of the slave server BMC, including an IP address, a user password, and the like. And verifying the validity period of the identity certificate and the access token on the master server, and if the verification is passed, actively capturing first monitoring data of the slave server BMC by the master server BMC.
In some embodiments, the master server BMC performs monitoring data crawling on the slave server BMC by data acquisition request, authentication of identity credentials, and authentication of access tokens. Or after the master server BMC passes the data acquisition request, the authentication of the identity credential and the authentication of the access token, the master server BMC feeds back an authentication passing instruction to the slave server BMC, and after the slave server receives the authentication passing instruction, the slave server BMC responds to the instruction to acquire monitoring data of the slave server BMC.
After the slave server BMC acquires the first monitoring data, such as asset information, alarm information and sensor information of the slave server BMC, the monitoring data are sent to the master server BMC, so that the master server BMC monitors the slave server BMC.
In the actual implementation process, since there is usually a plurality of slave server BMCs monitored by the master server BMC at the same time, the master server BMC can monitor the server cluster.
The data transmission device provided by the invention sends a data acquisition request to a server cluster through a master server BMC, determines that at least one slave server BMC and the master server BMC support data transmission, receives an identity credential and an access token sent by the slave server BMC, verifies the identity credential and the access token, and receives first monitoring data sent by the slave server BMC under the condition that the identity credential and the access token pass verification. According to the invention, interaction between the master server BMC and the slave server BMC is realized through the data acquisition request, the identity credential and the access token, so that the monitoring data of the slave server BMC can be acquired more quickly, and the operation and maintenance efficiency of the server is improved.
In some alternative embodiments, the apparatus further comprises a second monitoring module, the second monitoring module being specifically configured to:
based on the target time interval, the data acquisition request is sent to the slave server BMC again;
and receiving second monitoring data sent from the server BMC, wherein the second monitoring data and the first monitoring data have differences.
It can be appreciated that this embodiment is a process of sending change monitoring data from the server BMC to the master server BMC.
The target time interval is usually 5 minutes, and in other embodiments, the time can be adjusted according to the actual situation. That is, the master server BMC transmits a data acquisition request again to the slave server BMC after receiving the first monitoring data for 5 minutes, and the slave server BMC acquires asset information, alarm log, sensor information, etc. again and records as the second monitoring data.
And comparing the second monitoring data with the first monitoring data, and if the second monitoring data and the first monitoring data have differences, reporting the second monitoring data to the main server BMC. Otherwise, if the second monitoring data is not different from the first monitoring data, the second monitoring data does not need to be reported.
According to the data transmission device provided by the invention, the second monitoring data of the secondary server BMC is compared with the first monitoring data, and the second monitoring data is uploaded to the primary server BMC under the condition that the two monitoring data are different, so that the secondary server monitoring is realized, the monitoring data can be selectively uploaded, and the redundancy caused by data accumulation is avoided.
In some alternative embodiments, the identity credential includes an internet protocol address and a username password;
and receiving the first monitoring data sent from the server BMC under the condition that the identity credential and the access token pass verification, wherein the first monitoring data comprises the following steps:
verifying the Internet protocol address and the user name password;
verifying the validity period of the access token under the condition that the internet protocol address and the user name password pass verification;
and receiving the first monitoring data sent from the server BMC under the condition that the effective expiration of the access token is enough to preset time limit.
It will be appreciated that this embodiment is a verification process for identity credentials and access tokens.
Firstly, the master server BMC verifies the Internet protocol address (IP address) and the user name password, determines information such as server identity and the like of the slave server BMC, verifies the validity period of the access token after the verification is passed, and if the validity period is within a set period, the access token is not expired, and the access token is verified.
After the identity credentials and the access tokens are both verified, the slave server BMC may send the acquired first monitoring data to the master server BMC.
According to the data transmission device provided by the invention, the identity certificate and the access token of the slave server BMC are verified successively through the master server BMC, and the monitoring data of the slave server can be received after verification is passed, so that the monitoring of the slave server BMC is realized.
Referring to fig. 5, the data transmission device provided by the present invention is applied to a slave server baseboard management controller BMC, and includes the following modules:
the receiving module 510 is configured to receive a data acquisition request sent by a main server BMC, and establish a communication connection with the main server BMC based on the data acquisition request;
the verification module 520 is configured to send an identity credential and an access token to the master server BMC, and obtain first monitoring data of the slave server BMC in response to the data acquisition request when the identity credential and the access token pass verification;
and a first sending module 530, configured to send the first monitoring data to the main server BMC.
It should be emphasized that the execution body of the present embodiment is a slave server baseboard management controller (Baseboard Manager Controller, BMC). The number of slave server BMCs is at least one, and typically a plurality of slave server BMCs, and the master server are in data interaction.
In the receiving module 510, a data acquisition request sent by the main server BMC through the target communication protocol is first received, that is, a corresponding communication protocol in the embodiment of the main server BMC. And establishing a connection with the main server BMC through the data acquisition request.
In the verification module 520, when the master server BMC verifies that the identity credential and the access token of the slave server BMC pass, the master server BMC responds to the data acquisition request to acquire first monitoring data of the slave server BMC, including asset information, alarm log, sensor information, and the like. Finally, the first monitoring data is sent to the master server BMC through the first sending module 530, so that the master server BMC monitors the data of the slave server BMC.
According to the data transmission device, a slave server BMC receives a data acquisition request sent by the master server BMC based on a target communication protocol, establishes communication connection with the master server BMC based on the data acquisition request, sends an identity credential and an access token to the master server BMC, and responds to the data acquisition request to obtain first monitoring data of the slave server BMC under the condition that the identity credential and the access token pass verification; and sending the first monitoring data to the main server BMC. According to the invention, interaction between the master server BMC and the slave server BMC is realized through the data acquisition request, the identity credential and the access token, so that the monitoring data of the slave server BMC can be acquired more quickly, and the operation and maintenance efficiency of the server is improved.
In some optional embodiments, the apparatus further comprises a second sending module, where the second sending module is specifically configured to:
receiving a data acquisition request continuously sent by the main server BMC based on a target time interval;
responding to the data acquisition request to obtain second monitoring data;
transmitting the second monitoring data to the main server BMC under the condition that the first monitoring data and the second monitoring data are different;
and deleting the second monitoring data to release the memory space of the slave server BMC under the condition that the first monitoring data and the second monitoring data are not different.
It can be appreciated that this embodiment is a process of sending change monitoring data from the server BMC to the master server BMC.
The target time interval is usually 5 minutes, and in other embodiments, the time can be adjusted according to the actual situation. That is, after receiving the first monitoring data for 5 minutes, the master server BMC receives the data acquisition request sent by the master server BMC again, and the slave server BMC acquires asset information, alarm log, sensor information and the like again and records the asset information, alarm log, sensor information and the like as second monitoring data.
And comparing the second monitoring data with the first monitoring data, and if the second monitoring data and the first monitoring data have differences, reporting the second monitoring data to the main server BMC. Otherwise, if the second monitoring data is not different from the first monitoring data, the second monitoring data does not need to be reported, and the second monitoring data is deleted so as to release the memory space of the slave server BMC.
According to the data transmission device provided by the invention, the secondary monitoring data of the secondary server BMC is compared with the primary monitoring data by receiving the data acquisition request sent again by the primary server, and the secondary monitoring data is uploaded to the primary server BMC under the condition that the secondary monitoring data are different, so that the secondary server monitoring can be realized, the monitoring data can be selectively uploaded, and the redundancy caused by data accumulation is avoided.
In some alternative embodiments, the identity credential includes an internet protocol address and a username password;
and under the condition that the identity credential and the access token pass verification, responding to the data acquisition request to obtain first monitoring data of the slave server BMC, wherein the first monitoring data comprises the following steps:
and under the condition that the verification of the Internet protocol address and the user name password is confirmed to pass, and the valid expiration of the access token is enough to the preset period, responding to the data acquisition request, and obtaining first monitoring data of the slave server BMC.
Firstly, the master server BMC verifies the internet protocol address (IP address) and the user name password, determines the information such as the server identity of the slave server BMC, verifies the validity period of the access token after the verification is passed, and if the validity period is within the set period, the access token is not expired, and the access token is verified.
After the identity credentials and the access tokens are verified, the slave server BMC responds to a data acquisition request sent by the master server BMC, acquires monitoring data of the slave server BMC according to the data acquisition request, and then sends the acquired first monitoring data to the master server BMC.
According to the data transmission device provided by the invention, the monitoring data is sent to the master server BMC under the condition that the identity credentials and the access tokens of the slave server BMC are verified, so that the master server BMC monitors the slave server BMC.
Fig. 6 illustrates a physical schematic diagram of an electronic device, as shown in fig. 6, which may include: processor 610, communication interface (Communications Interface) 620, memory 630, and communication bus 640, wherein processor 610, communication interface 620, and memory 630 communicate with each other via communication bus 640. The processor 610 may invoke logic instructions in the memory 630 to perform a data transfer method comprising:
sending a data acquisition request to a server BMC cluster, and determining that at least one slave server BMC and a master server BMC support data transmission;
Receiving an identity credential and an access token sent by the slave server BMC, verifying the identity credential and the access token, and receiving first monitoring data sent by the slave server BMC under the condition that the identity credential and the access token pass verification, wherein the first monitoring data is obtained by responding to the data obtaining request by the slave server BMC;
or alternatively, the first and second heat exchangers may be,
receiving a data acquisition request sent by a main server BMC, and establishing communication connection with the main server BMC based on the data acquisition request;
sending an identity credential and an access token to the master server BMC, and responding to the data acquisition request to obtain first monitoring data of the slave server BMC under the condition that the identity credential and the access token pass verification;
and sending the first monitoring data to the main server BMC.
Further, the logic instructions in the memory 630 may be implemented in the form of software functional units and stored in a computer-readable storage medium when sold or used as a stand-alone product. Based on this understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a server BMC, a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
In another aspect, the present invention also provides a computer program product comprising a computer program, the computer program being storable on a non-transitory computer readable storage medium, the computer program, when executed by a processor, being capable of performing the data transmission method provided by the above methods, the method comprising:
sending a data acquisition request to a server BMC cluster, and determining that at least one slave server BMC and a master server BMC support data transmission;
receiving an identity credential and an access token sent by the slave server BMC, verifying the identity credential and the access token, and receiving first monitoring data sent by the slave server BMC under the condition that the identity credential and the access token pass verification, wherein the first monitoring data is obtained by responding to the data obtaining request by the slave server BMC;
or alternatively, the first and second heat exchangers may be,
receiving a data acquisition request sent by a main server BMC, and establishing communication connection with the main server BMC based on the data acquisition request;
sending an identity credential and an access token to the master server BMC, and responding to the data acquisition request to obtain first monitoring data of the slave server BMC under the condition that the identity credential and the access token pass verification;
And sending the first monitoring data to the main server BMC.
In yet another aspect, the present invention also provides a non-transitory computer readable storage medium having stored thereon a computer program which, when executed by a processor, is implemented to perform a data transmission method provided by the above methods, the method comprising:
sending a data acquisition request to a server BMC cluster, and determining that at least one slave server BMC and a master server BMC support data transmission;
receiving an identity credential and an access token sent by the slave server BMC, verifying the identity credential and the access token, and receiving first monitoring data sent by the slave server BMC under the condition that the identity credential and the access token pass verification, wherein the first monitoring data is obtained by responding to the data obtaining request by the slave server BMC;
or alternatively, the first and second heat exchangers may be,
receiving a data acquisition request sent by a main server BMC, and establishing communication connection with the main server BMC based on the data acquisition request;
sending an identity credential and an access token to the master server BMC, and responding to the data acquisition request to obtain first monitoring data of the slave server BMC under the condition that the identity credential and the access token pass verification;
And sending the first monitoring data to the main server BMC.
The apparatus embodiments described above are merely illustrative, wherein the elements illustrated as separate elements may or may not be physically separate, and the elements shown as elements may or may not be physical elements, may be located in one place, or may be distributed over a plurality of network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment. Those of ordinary skill in the art will understand and implement the present invention without undue burden.
From the above description of the embodiments, it will be apparent to those skilled in the art that the embodiments may be implemented by means of software plus necessary general hardware platforms, or of course may be implemented by means of hardware. Based on this understanding, the foregoing technical solution may be embodied essentially or in a part contributing to the prior art in the form of a software product, which may be stored in a computer readable storage medium, such as ROM/RAM, a magnetic disk, an optical disk, etc., including several instructions for causing a computer device (which may be a personal computer, a server BMC, or a network device, etc.) to perform the method described in the various embodiments or some parts of the embodiments.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present invention, and are not limiting; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims (13)

1. A data transmission method, applied to a master server baseboard management controller BMC, the method comprising:
sending a data acquisition request to a server cluster, and determining that at least one slave server BMC and a master server BMC support data transmission;
and receiving the identity credential and the access token sent by the slave server BMC, verifying the identity credential and the access token, and receiving first monitoring data sent by the slave server BMC under the condition that the identity credential and the access token pass verification, wherein the first monitoring data is obtained by responding to the data obtaining request by the slave server BMC.
2. The data transmission method according to claim 1, wherein after receiving the monitoring data transmitted from the server BMC, the method further comprises:
based on the target time interval, the data acquisition request is sent to the slave server BMC again;
and receiving second monitoring data sent from the server BMC, wherein the second monitoring data and the first monitoring data have differences.
3. The data transmission method of claim 1, wherein the identity credential includes an internet protocol address and a username password;
and receiving the first monitoring data sent from the server BMC under the condition that the identity credential and the access token pass verification, wherein the first monitoring data comprises the following steps:
verifying the Internet protocol address and the user name password;
verifying the validity period of the access token under the condition that the internet protocol address and the user name password pass verification;
and receiving the first monitoring data sent from the server BMC under the condition that the effective expiration of the access token is enough to preset time limit.
4. A data transmission method according to any one of claims 1-3, wherein the first monitoring data comprises at least one of: asset information, alert information, and sensor information.
5. The method according to claim 1, wherein the sending a data acquisition request to the server cluster and determining that there is at least one slave server BMC and a master server BMC supporting data transmission include:
transmitting a data acquisition request to the server cluster based on a target communication protocol, and establishing connection between each slave server BMC based on the data acquisition request;
and determining that the at least one slave server BMC supports data transmission under the condition that the access token sent by the at least one slave server BMC is received.
6. A data transmission method, applied to a slave server baseboard management controller BMC, the method comprising:
receiving a data acquisition request sent by a main server BMC, and establishing communication connection with the main server BMC based on the data acquisition request;
sending an identity credential and an access token to the master server BMC, and responding to the data acquisition request to obtain first monitoring data of the slave server BMC under the condition that the identity credential and the access token pass verification;
and sending the first monitoring data to the main server BMC.
7. The method according to claim 6, wherein after the first monitoring data is sent to the main server BMC, the method further comprises:
receiving a data acquisition request continuously sent by the main server BMC based on a target time interval;
responding to the data acquisition request to obtain second monitoring data;
and sending the second monitoring data to the main server BMC under the condition that the first monitoring data and the second monitoring data are different.
8. The data transmission method according to claim 7, wherein after the second monitoring data is obtained in response to the data acquisition request, the method further comprises:
and deleting the second monitoring data to release the memory space of the slave server BMC under the condition that the first monitoring data and the second monitoring data are not different.
9. The data transmission method of claim 7, wherein the identity credential includes an internet protocol address and a username password;
and under the condition that the identity credential and the access token pass verification, responding to the data acquisition request to obtain first monitoring data of the slave server BMC, wherein the first monitoring data comprises the following steps:
And under the condition that the verification of the Internet protocol address and the user name password is confirmed to pass, and the valid expiration of the access token is enough to the preset period, responding to the data acquisition request, and obtaining first monitoring data of the slave server BMC.
10. A data transmission device applied to a master server baseboard management controller BMC, comprising:
the request sending module is used for sending a data acquisition request to the server cluster and determining that at least one slave server BMC and a master server BMC support data transmission;
the first monitoring module is used for receiving the identity certificate and the access token sent by the slave server BMC, verifying the identity certificate and the access token, and receiving first monitoring data sent by the slave server BMC under the condition that the identity certificate and the access token pass verification, wherein the first monitoring data is obtained by the slave server BMC responding to the data obtaining request.
11. A data transmission device applied to a slave server baseboard management controller BMC, comprising:
the receiving module is used for receiving a data acquisition request sent by the main server BMC and establishing communication connection with the main server BMC based on the data acquisition request;
The verification module is used for sending the identity certificate and the access token to the master server BMC, and responding to the data acquisition request to obtain first monitoring data of the slave server BMC under the condition that the identity certificate and the access token pass verification;
and the first sending module is used for sending the first monitoring data to the main server BMC.
12. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the data transmission method according to any one of claims 1 to 5 or the data transmission method according to any one of claims 6 to 9 when executing the program.
13. A non-transitory computer readable storage medium having stored thereon a computer program, characterized in that the computer program, when executed by a processor, implements the data transmission method according to any of claims 1 to 5 or the data transmission method according to any of claims 6 to 9.
CN202310617915.6A 2023-05-29 2023-05-29 Data transmission method, device, electronic equipment and storage medium Pending CN116827601A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310617915.6A CN116827601A (en) 2023-05-29 2023-05-29 Data transmission method, device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310617915.6A CN116827601A (en) 2023-05-29 2023-05-29 Data transmission method, device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN116827601A true CN116827601A (en) 2023-09-29

Family

ID=88123192

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310617915.6A Pending CN116827601A (en) 2023-05-29 2023-05-29 Data transmission method, device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN116827601A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117076409A (en) * 2023-10-18 2023-11-17 苏州元脑智能科技有限公司 File sharing method, device, system, electronic equipment and storage medium
CN117076185A (en) * 2023-10-16 2023-11-17 太平金融科技服务(上海)有限公司 Server inspection method, device, equipment and medium

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117076185A (en) * 2023-10-16 2023-11-17 太平金融科技服务(上海)有限公司 Server inspection method, device, equipment and medium
CN117076185B (en) * 2023-10-16 2024-01-05 太平金融科技服务(上海)有限公司 Server inspection method, device, equipment and medium
CN117076409A (en) * 2023-10-18 2023-11-17 苏州元脑智能科技有限公司 File sharing method, device, system, electronic equipment and storage medium
CN117076409B (en) * 2023-10-18 2024-02-02 苏州元脑智能科技有限公司 File sharing method, device, system, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN116827601A (en) Data transmission method, device, electronic equipment and storage medium
CN101605108B (en) Method, system and apparatus for instant communication
CN107342984A (en) A kind of system, method and device for apparatus bound
US9401905B1 (en) Transferring soft token authentication capabilities to a new device
CN113672897B (en) Data communication method, device, electronic equipment and storage medium
US11122108B2 (en) End-to-end file transmission method and system thereof
CN102195930B (en) Security access method among equipment and communication equipment
CN105743854A (en) Security authentication system and method
CN111585970A (en) Token verification method and device
CN111431931A (en) Node consensus method and device
CN105337967A (en) Method and system for achieving target server logging by user and central server
CN103384249B (en) Network access verifying method, Apparatus and system, certificate server
CN111404918A (en) Cloud mobile phone distributed service emergency authentication method, device and system
KR102235566B1 (en) Apparatus and method for anomaly detection based on blockchain
CN103179089A (en) System and method for identity authentication for accessing of different software development platforms
CN104869117A (en) Safety authentication method and device
CN111190754A (en) Block chain event notification method and block chain system
CN115225354A (en) Multi-application single sign-on method, device, computer equipment and medium
CN111988202B (en) Node switching method, device and storage medium
CN115314532A (en) Information interaction method and device for power distribution terminal and Internet of things master station
CN106790150B (en) Session maintaining method and device
CN112804201A (en) Method and device for acquiring equipment information
CN112333248B (en) Login failure verification method and related device
EP3965390B1 (en) Certificate management system and certificate management method
CN114257434B (en) DDoS attack defense method, electronic 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