A
server comprises a BMC (
Baseboard Management Controller), a
BIOS (Basic
Input Output System), a temperature sensor, and an SPD (
Serial Presence Detect)
chip. The BMC comprises a setting module, a judging module, and a detection module, wherein the setting module is used for setting a
bus mark bit as a first numerical value when the
server is started up; the judging module is used for judging whether the
bus mark bit is the first numerical value or not when the temperature of an internal storage is required to be detected; and the detection module is used for visiting the temperature sensor by utilizing an I2C
bus when the bus mark bit is the first numerical value. The
BIOS comprises a modification module, a
delay module, an initialization module and a reset module, wherein the modification module is used for setting the bus mark bit as a second numerical value when the inner storage is required to be initialized; the
delay module is used for delaying schedule time; the initialization module is used for visiting the SPD
chip by utilizing the I2C bus to acquire the configuration information on the internal storage to initialize the internal storage when the schedule time is over; and the reset module is used for resetting the bus mark bit as the first numerical value after the initialization of the internal storage is completed. The invention further provides a method for avoiding the bus collision by utilizing the
server, which can avoid bus collision caused by that the I2C bus is simultaneously used by the BMC and the
BIOS.