A non-transitory storage medium having stored thereon instructions that, when executed by a processor of a computing device, causes the computing device to perform a method for testing a serial over local area network (SOL) function of a motherboard of the computing device, the method comprising:
- setting a serial port of the motherboard to a SOL mode, and generating a standard intelligent platform management interface command to establish a SOL session between the serial port and a network interface controller (NIC) of the motherboard;
- obtaining forward data stored in a storage system of the computing device, and transmitting the obtained forward data to the NIC through a predefined path, wherein the predefined path indicates that the obtained forward data is transmitted from the serial port to a baseboard management controller (BMC) of the motherboard, and then transmitted from the BMC to the NIC;
- receiving the transmitted forward data from an interface of the NIC in a default interval;
- determining whether the transmitted forward data is the same as the obtained forward data;
- when the transmitted forward data is the same as the obtained forward data, obtaining backward data stored in the storage system, and transmitting the obtained backward data from the NIC to the serial port through a predefined reverse path, wherein the predefined reverse path indicates that the obtained backward data is transmitted from the NIC to the BMC, and then transmitted from the BMC to the serial port;
- receiving the transmitted backward data from the serial port in the default interval;
- determining whether the transmitted backward data is the same as the obtained backward data;
- generating a prompt information that indicates the SOL function is normal when the transmitted backward data is the same as the obtained backward data;
- and
- generating a prompt information that indicates the SOL function is abnormal when the transmitted forward data is not the same as the obtained forward data or the transmitted backward data is not the same as the obtained backward data.