Invention content
The recognition methods for being designed to provide shared port in a kind of Multi net voting port, the storage of embodiment of the present invention are situated between
Matter and server so that operating personnel visually can intuitively identify shared port from multiple network ports, convenient
Operating personnel are accurate and quickly determine the corresponding network environment of shared port, to improve the efficiency that BMC controls work, for behaviour
It is provided a convenient as personnel.
In order to solve the above technical problems, embodiments of the present invention provide a kind of knowledge of shared port in Multi net voting port
Other method, is applied to network card chip, and the network card chip is connected to baseboard management controller BMC and multiple network ports;Each
At least one prompt element is installed on the network port;The method includes:When detecting one of them described network port
When having cable insertion, the sharing request of the network port is sent to the BMC;When receiving shared confirmation letter from the BMC
When breath, the network port is set as to can be used in the shared port of transmitting network data and BMC data;Control the prompt
Element is in first state;It is the shared port that the first state, which characterizes the network port,.
Embodiments of the present invention additionally provide a kind of server, including network card chip, baseboard management controller BMC, deposit
Reservoir and multiple network ports;At least one prompt element is installed on each network port;The network card chip communication
It is connected to the BMC, the prompt element and each network port, the memory is stored with can be by the network interface card core
The instruction that piece executes, described instruction is executed by the network card chip, so that the network card chip is able to carry out above-mentioned Multi net voting
The recognition methods of shared port in port.
Embodiments of the present invention additionally provide a kind of storage medium, are stored with computer program, the computer program
The recognition methods of shared port in above-mentioned Multi net voting port is realized when being executed by processor.
Embodiment of the present invention in terms of existing technologies, when detecting that one of network port has cable insertion
When, the sharing request of the network port is sent to BMC, and when receiving shared confirmation message from BMC, which is set as
Shared port, and control prompt element and be in the first state for characterizing that the network port is shared port so that operating personnel's energy
It is enough visually intuitively to identify shared port from multiple network ports, it is accurate and quickly determining total to be conveniently operated personnel
The corresponding network environment in port is enjoyed, to improve the efficiency that BMC controls work, is provided a convenient for operating personnel.
In addition, the method further includes:It detects when transmitting the BMC data in the shared port, controls institute
It states prompt element and is in the second state;Shared port described in second state representation is transmitting the BMC data.This implementation
In example, when shared port is transmitting BMC data, control prompt element is in the second state so that the relevant personnel are in vision
It is upper to carry out BMC control work by prompting the state of element that get information about someone, while can determine that this is total
The network for enjoying port is connection, and the sharing functionality of the shared port is normal;And the present embodiment can also be used as a kind of survey
Whether trial work section, the BMC sharing functionalities for intuitively testing each network port are normal.
In addition, when detecting that one of them described network port has cable insertion, and send the network port described
Sharing request to the BMC before, further include:Judge whether the network port meets the first preset condition;Wherein, when sentencing
Break when the network port and meeting the first preset condition, into the sharing request for sending the network port to described
The step of BMC.In the present embodiment, when the network port for being determined with cable insertion meets the first preset condition, retransmit shared
It asks to BMC so that the network port need to meet certain condition and just can be changed more shared port (because BMC can only share and use it
In a network port), i.e., so that the position of shared port has certainty so that the setting that operating personnel are capable of selectivity is shared
The position of port improves the flexibility of setting shared port.
In addition, shared confirmation message is generated by the BMC when judging that the sharing request meets the second preset condition.This
In embodiment, is generated when BMC judgement sharing requests meet the second preset condition and share confirmation message, is i.e. whether the network port can
It is enough executed by BMC as the judgement work of shared port, that is, provides a kind of generating mode of shared confirmation message, and mitigate
The processing load of network card chip.
In addition, prompt element is the connection indicator light of the network port;It is described to detect one of them described network-side
When mouth has cable insertion, and before the sharing request to the BMC for sending the network port, further include:Control institute
The state for stating prompt element is in the third state;The third state characterizes the network port network connection success.This implementation
In example, existing connection indicator light prompts shared port as prompt element using on the network port so that existing network-side
Mouth changes the prompt that can be realized as to shared port, convenient, simple and saving cost without making hardware.
In addition, being equipped with connection indicator light and signal transmission indicator light on the network port, the prompt element is the net
The shared indicator light of network port.In the present embodiment, newly-increased shared indicator light is installed on the network port as prompt element, makes
The each indicator light obtained on the network port only corresponds to a type of function prompt, is conveniently operated in personnel's visually short time
Understand the meaning respectively characterized.
Specific implementation mode
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with attached drawing to the present invention
Each embodiment be explained in detail.However, it will be understood by those skilled in the art that in each embodiment party of the present invention
In formula, in order to make the reader understand this application better, many technical details are proposed.But even if without these technical details
And various changes and modifications based on the following respective embodiments, it can also realize the application technical solution claimed.
The first embodiment of the present invention is related to a kind of recognition methods of shared port in Multi net voting port, are applied to network interface card
Chip, network card chip are connected to baseboard management controller BMC and multiple network ports;Be equipped on each network port to
Few prompt element;As shown in Figure 1, the recognition methods of shared port includes in Multi net voting port:
Step 101, detect whether one of network port has cable insertion;If so, entering step 102, otherwise continue
Execute this step.
In present embodiment, it can preset when there is cable insertion in a network port, network card chip can detect
To corresponding cable signal, to judge there is cable insertion in the network port;So without being limited thereto in practice, the present embodiment is to net
There is the decision procedure that cable is inserted into be not intended to be limited in any in network port.
Step 102, the sharing request of the network port is sent to BMC.
In present embodiment, when detect have cable insertion in multiple network ports network port when, send
The sharing request of the network port is to BMC, wherein sharing request is to ask the network port as the request of shared port.
When BMC receives the sharing request information, then feedback is using the network port as the shared confirmation message of shared port to net
Card chip.
In one example, as long as BMC receives sharing request, will immediate feedback share confirmation message to network interface card core
Piece;It is so exemplary illustration here, it is without being limited thereto in practice.
In another example, when BMC receives the sharing request, BMC determine whether to using the network port as
Shared port, however, it is determined that using the network port as shared port, then send and share confirmation message to network card chip.BMC judges
Whether using the network port as shared port include:It is shared whether BMC judges itself to have realized with other network ports,
It is shared if it is determined that BMC itself is not realized with other network ports also, it is determined that using the network port as shared port;So here
Only exemplary illustration, it is without being limited thereto in practice.
Step 103, when receiving shared confirmation message from BMC, the network port is set as to can be used in transmission network
The shared port of data and BMC data.
In present embodiment, when network card chip receives shared confirmation message from BMC, then the network port is set as
Shared port;Specifically, network interface card firmware can activate network controller side band interface (NCSI) to drive, which is become
More shared model, the i.e. network port tool realize that network connection and BMC access there are two independent MAC Address and IP address
Function is non-interference.
Step 104, control prompt element is in first state.
In present embodiment, first state is shared port for characterizing the network port.In the present embodiment, element example is prompted
Such as it is LED light, so without being limited thereto in practice, the present embodiment is to prompting the type of element to be not intended to be limited in any.
In one example, first state is, for example, that LED light is brightened by going out, and is sent out so that particular color (such as blue) is lasting
It is bright;It should be noted that the particular color needs to be different from the color that prompt element characterizes other events, it is so example here
Property explanation, the present embodiment is not intended to be limited in any the specific manifestation form of first state.
The embodiment of the present invention in terms of existing technologies, when detecting that one of network port has cable insertion
When, the sharing request of the network port is sent to BMC, and when receiving shared confirmation message from BMC, which is set as
Shared port, and control prompt element and be in the first state for characterizing that the network port is shared port so that operating personnel's energy
It is enough intuitively to identify shared port from multiple network ports, it is conveniently operated personnel accurately and quickly determines shared port pair
The network environment answered provides a convenient to improve the efficiency that BMC controls work for operating personnel.
The step of various methods divide above, be intended merely to describe it is clear, when realization can be merged into a step or
Certain steps are split, multiple steps are decomposed into, as long as including identical logical relation, all in the protection domain of this patent
It is interior;To either adding inessential modification in algorithm in flow or introducing inessential design, but its algorithm is not changed
Core design with flow is all in the protection domain of the patent.
Second embodiment of the present invention is related to a kind of recognition methods of shared port in Multi net voting port.Second embodiment party
Formula is improved on the basis of first embodiment, is mainly theed improvement is that:In second embodiment of the invention, when altogether
When enjoying port and transmitting BMC data, control prompt element is in the second state;
The recognition methods of shared port is as shown in Fig. 2, the step of present embodiment in the Multi net voting port of present embodiment
201 to 204 is identical to 104 correspondences as the step 101 in first embodiment, and details are not described herein, and present embodiment is newly-increased
Following steps:
Step 205, detect in shared port that control prompt element is in the second state when transmitting BMC data.
In present embodiment, the second state representation shared port is transmitting BMC data.In the present embodiment, when network control
When molding block receives BMC data (such as BMC controls data), you can judge that the network port is transmitting BMC data.
In one example, the second state is that LED light is flickered so that particular color (such as blue) is lasting, so unlimited in practice
In this, the specific manifestation form of the second state of the present embodiment pair is not intended to be limited in any.
The embodiment of the present invention is for first embodiment, when shared port is transmitting BMC data, control
Prompt element is in the second state so that the relevant personnel are visually by prompting the state of element that can get information about
People is carrying out BMC control work, while can determine that the network of the shared port is connection, the shared work(of the shared port
Can be normal.In addition, the present embodiment can also be used as a kind of means of testing, for intuitively testing each network port
Whether BMC sharing functionalities are normal.
Third embodiment of the present invention is related to a kind of recognition methods of shared port in Multi net voting port.Third embodiment party
Formula is improved on the basis of second embodiment, is mainly theed improvement is that:In third embodiment of the invention, when sentencing
When being inserted into the network port of cable surely and meeting the first preset condition, the sharing request of the network port is retransmited to BMC.
The recognition methods of shared port is as shown in figure 3, the step of present embodiment in the Multi net voting port of present embodiment
301,303 to 306 is identical as step 201,202 to 205 correspondences in first embodiment, and details are not described herein, this embodiment party
Formula has increased following steps newly:
Step 302, judge whether the network port meets the first preset condition;If so, entering step 303, otherwise directly tie
Beam.
In present embodiment, when judging that the network port meets the first preset condition, into being total to for the transmission network port
Enjoy the step of request is to BMC.
In one example, it is the network-side for being inserted into cable in Multi net voting port for the first time that the first preset condition, which is the network port,
Mouthful;It is previously stored with the flag of each network port in network card chip, one of network port is often inserted into/extract cable
When, network card chip can record the sequence for being inserted into/extracting cable, be inserted into for the first time in judging the network port for Multi net voting port
When the network port of cable, i.e., the network port meets the first preset condition;It is so exemplary illustration here, it is unlimited in practice
In this.
In another example, it is the net that predeterminated position is arranged in Multi net voting port that the first preset condition, which is the network port,
Network port;Predeterminated position is, for example, the network port of arrangement second in Multi net voting port;It is previously stored in network card chip every
The flag of a network port judges whether the flag of the network port is pre- when being inserted into cable in a network port
If the flag of the network port of position, if so, judging that the network port meets the first preset condition;It is so example here
Property explanation, it is without being limited thereto in practice.
In another example, it is that the last one in Multi net voting port is inserted into cable that the first preset condition, which is the network port,
The network port.The flag of each network port is previously stored in network card chip, one of network port is often inserted into/pulls out
When going out cable, network card chip can record the sequence for being inserted into/extracting cable, in judging the network port for Multi net voting port most
When the latter is inserted into the network port of cable, i.e., the network port meets the first preset condition;It is so exemplary illustration here,
It is without being limited thereto in practice.
In fact, the present embodiment may be improvement project on the basis of first embodiment.
The embodiment of the present invention is for first embodiment, when the network port for being determined with cable insertion meets the
When one preset condition, sharing request is retransmited to BMC so that the network port need to meet certain condition and just can be changed more shared port
(because BMC, which can only share, uses one of network port), i.e., so that the position of shared port has certainty so that operator
Member is capable of the position of the setting shared port of selectivity, improves the flexibility of setting shared port.
The 4th embodiment of the present invention is related to a kind of recognition methods of shared port in Multi net voting port.4th embodiment party
Formula is improved on the basis of third embodiment, is mainly theed improvement is that:The two types of prompt element are provided, the
One kind is shared existing connection indicator light as prompt element, is used as second and to carry for shared existing signal transmission indicator light
Show element.
First, the recognition methods of shared port is as shown in figure 4, present embodiment in the Multi net voting port of present embodiment
Step 401,403 to 407 identical as step 301,302 to 306 correspondences in first embodiment, details are not described herein, this reality
The mode of applying has increased following steps newly:
Step 402, the state of control prompt element is in the third state.
In present embodiment, prompt element is the existing connection indicator light of the network port, and the third state characterizes the network port
Network connection success.In one example, the third state is to continue shinny, so without being limited thereto in practice, the present embodiment with green
This is not intended to be limited in any.
Second, the recognition methods of shared port is as shown in figure 5, present embodiment in the Multi net voting port of present embodiment
Step 501 is to 506 identical to 306 correspondences as the step 301 in first embodiment, and details are not described herein, and present embodiment is new
Following steps are increased:
Step 507, detect that the network port just in transmitting network data, controls prompt element and is in the 4th state.
In present embodiment, prompt element is the existing signal transmission indicator light of the network port, the 4th state representation network
Port is just in transmitting network data.In one example, the 4th state is shinny with green flicker, so without being limited thereto in practice,
The present embodiment is not intended to be limited in any this.
It should be noted that being not intended to be limited in any to the particular order of step 507 in the present embodiment, as long as in step 501
Later all within the scope of the present embodiment.
Third, in one example, it includes existing connection indicator light and signal transmission lamp to prompt element, is indicated by connecting
The combined colors or flicker state of lamp and signal transmission lamp prompt shared port.It is in first state in control prompt element
In step, specifically include:Control connection indicator light is lasting shinny with the first particular color (such as blue), while controlling signal biography
Defeated lamp is continued shinny with the second particular color (such as yellow).In the step of control prompt element is in the second state, specifically
Including:Control connection indicator light is shinny with the flicker of the first particular color, while control signal transmission indicator light is with the second specific face
Chromatic flicker is shinny.It is so exemplary illustration here, it is without being limited thereto in practice.
4th, in another example, additionally mounted on the existing network port at least one to be served only for prompt shared
The shared indicator light of port is as prompt element.
In fact, the present embodiment may be improvement project on the basis of first or second embodiment.
Embodiments of the present invention are for third embodiment, with existing connection indicator light on the network port
And/or signal transmission indicator light is used as prompt element, to prompt shared port so that the existing network port is without making hardware
Change the prompt that can be realized as to shared port, convenient, simple and saving cost.In addition, being installed on the network port newly-increased
Shared indicator light as prompt element so that each indicator light on the network port only corresponds to a type of function prompt,
It is conveniently operated the meaning (realizing that the second is understood as far as possible) understood in personnel's visually short time and respectively characterized.
The 5th embodiment of the present invention is related to a kind of recognition methods of shared port in Multi net voting port, the 5th embodiment party
Formula is improved on the basis of second embodiment, is mainly theed improvement is that:Provide a kind of life of shared confirmation message
At mode.
In present embodiment, shared confirmation message is generated by BMC when judging that sharing request meets the second preset condition;I.e.
Substantially, the position of shared port is selected by BMC.
In one example, sharing request includes the flag of the network port, and the second preset condition is to judge the flag
Whether it is default flag, if then judging that sharing request meets the second preset condition;It is so exemplary illustration, this reality here
The particular content for applying the second preset condition of example pair is not intended to be limited in any.
In another example, whether the second preset condition is to judge the delivery time of sharing request in preset time period
It is interior, if then judging that the sharing request meets the second preset condition;It is so exemplary illustration here, it is without being limited thereto in practice.
In another example, the second preset condition is to judge whether the sharing request is shared asking of receiving for the first time
It asks, if so, judging that the sharing request meets the second preset condition;It is so exemplary illustration here, it is without being limited thereto in practice.
In another example, the second preset condition is to judge whether the date of shipping of the sharing request is the default date,
The default date is, for example, Monday, Wednesday, Friday (so without being limited thereto) weekly;It is so exemplary illustration here, in practice not
It is limited to this.
In fact, the present embodiment may be improvement project on the basis of first embodiment, and the 4th embodiment party
Formula may be improvement project on the basis of present embodiment.
Embodiments of the present invention meet the second preset condition for second implements, in BMC judgement sharing requests
Shi Shengcheng shares confirmation message, i.e. whether the network port can be executed as the judgement work of shared port by BMC, that is, be provided
A kind of generating mode of shared confirmation message, alleviates the processing load of network card chip.
Sixth embodiment of the invention is related to a kind of server, as shown in fig. 6, being controlled including network card chip 1, substrate management
Device BMC 2, memory 3 and multiple network ports 4.
In present embodiment, at least one prompt element is installed on each network port 4;Network card chip 1 is communicatively coupled to
BMC2, prompt element and each network port 4, memory 3 are stored with the instruction that can be executed by network card chip 1, instruct by net
Card chip 1 executes, so that network card chip 1 is able to carry out as in any embodiment in first embodiment to the 5th embodiment
Multi net voting port in shared port recognition methods.
Wherein, memory is connected with network card chip using bus mode, and bus may include the total of any number of interconnection
One or more network card chips and the various of memory are electrically connected to together by line and bridge, bus.Bus can also will such as
The various other of peripheral equipment, voltage-stablizer and management circuit or the like are electrically connected to together, these are all this field institutes
Well known, therefore, it will not be further described herein.Bus interface provides interface between bus and transceiver.It receives
Hair machine can be an element, can also be multiple element, such as multiple receivers and transmitter, provide in transmission medium
The upper unit communicated with various other devices.The data handled through network card chip are transmitted on the radio medium by antenna,
Further, antenna also receives data and transfers data to network card chip.
Network card chip is responsible for bus and common processing, can also provide various functions, including timing, periphery connects
Mouthful, voltage adjusting, power management and other control functions.And memory can be used to store network card chip and execute operation
When used data.
In terms of existing technologies, the network card chip in server detects one of net to embodiments of the present invention
When there is cable insertion in network port, the sharing request of the network port is sent to BMC, when receiving shared confirmation message from BMC, is incited somebody to action
The network port is set as shared port, and controls prompt element and be in the first shape for characterizing that the network port is shared port
State so that operating personnel can intuitively identify shared port from multiple network ports, and it is accurate and fast to be conveniently operated personnel
The corresponding network environment of determination shared port of speed, to improve the efficiency that BMC controls work, for the operating personnel side of providing
Just.
Seventh embodiment of the invention is related to a kind of readable storage medium storing program for executing, is stored with computer program.Computer program quilt
It is realized when processor executes as total in the Multi net voting port in any embodiment in first embodiment to the 5th embodiment
Enjoy the recognition methods of port.
Embodiments of the present invention in terms of existing technologies, detect that one of network port has cable insertion
When, the sharing request of the network port is sent to BMC, and when receiving shared confirmation message from BMC, which is set as
Shared port, and control prompt element and be in the first state for characterizing that the network port is shared port so that operating personnel's energy
It is enough intuitively to identify shared port from multiple network ports, it is conveniently operated personnel accurately and quickly determines shared port pair
The network environment answered provides a convenient to improve the efficiency that BMC controls work for operating personnel.
That is, it will be understood by those skilled in the art that implement the method for the above embodiments be can be with
Relevant hardware is instructed to complete by program, which is stored in a storage medium, including some instructions are making
It obtains an equipment (can be microcontroller, chip etc.) or processor (processor) executes side described in each embodiment of the application
The all or part of step of method.And storage medium above-mentioned includes:USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only
Memory), random access memory (RAM, Random Access Memory), magnetic disc or CD etc. are various can store journey
The medium of sequence code.
It will be understood by those skilled in the art that the respective embodiments described above are to realize specific embodiments of the present invention,
And in practical applications, can to it, various changes can be made in the form and details, without departing from the spirit and scope of the present invention.