The invention provides a method and system for automatically starting a server from a PXE network. The method includes: S1. Start the link module; S2. Link module sends control instructions to the BMC of the server to be started; S3. BMC obtains control instructions to control the server to be restarted and enters the PXE network to start. The system includes a link module startup unit to start the link module; a BMC control instruction sending unit to send control instructions to the BMC of the server to be started through the link module; a server restart and a PXE startup unit to obtain control instructions through the BMC to control the restart of the server to be started, and to enter the PXE network to start. The invention realizes that the server automatically enters the PXE network startup interface, can operate a large number of servers in batches and install the system, provides convenience for system management and operation personnel in testing, management and maintenance, saves a lot of time and improves work efficiency.
【技术实现步骤摘要】
一种使服务器自动从PXE网络启动的方法及系统
本专利技术属于服务器启动领域,具体涉及一种使服务器自动从PXE网络启动的方法及系统。
技术介绍
随着互联网+和云服务的快速发展,服务器趋向集群式,互联网业务的服务器数量越来越庞大。所以服务器系统管理员和运维人员的任务很艰巨,工作时间很宝贵,急需提高工作效率的方法。在服务器的测试、管理和维护时需要从PXE启动安装系统,目前的方法都是手动重启服务器并在POST界面选择从网络启动,这种方法在有大量服务器需要维护时费时费力。此为现有技术的不足,因此,针对现有技术中的上述缺陷,提供一种使服务器自动从PXE网络启动的方法及系统,是非常有必要的。
技术实现思路
本专利技术的目的在于,针对上述手动重启服务器需在POST界面选择从网络启动,在有大量服务器需要维护时费时费力的缺陷,提供一种使服务器自动从PXE网络启动的方法及系统,以解决上述技术问题。为实现上述目的,本专利技术给出以下技术方案:一种使服务器自动从PXE网络启动的方法,包括如下步骤:S1.启动链接模块;S2.链接模块向待启动服务器的BMC发送控制指令;S3.BMC获取控制指令,控制待启动服务器重启,并进入PXE网络启动。进一步地,所述链接模块采用Linuxshell脚本。Linuxshell脚本代替人工手动操作,实现自动化执行。进一步地,步骤S1之前还包括如下步骤:SA1.设置BMC信息存储模块;步骤S2具体步骤如下:S21.链接模块从BMC信息存储模块获取待启动服务器的BMC信息;S22.链接模块根据获取的BMC信息向待启动服务器的BMC发送控制指令。在Linuxshe ...
【技术保护点】
1.一种使服务器自动从PXE网络启动的方法,其特征在于,包括如下步骤:S1.启动链接模块;S2.链接模块向待启动服务器的BMC发送控制指令;S3.BMC获取控制指令,控制待启动服务器重启,并进入PXE网络启动。
【技术特征摘要】
1.一种使服务器自动从PXE网络启动的方法,其特征在于,包括如下步骤:S1.启动链接模块;S2.链接模块向待启动服务器的BMC发送控制指令;S3.BMC获取控制指令,控制待启动服务器重启,并进入PXE网络启动。2.如权利要求1所述的一种使服务器自动从PXE网络启动的方法,其特征在于,所述链接模块采用Linuxshell脚本。3.如权利要求1所述的一种使服务器自动从PXE网络启动的方法,其特征在于,步骤S1之前还包括如下步骤:SA1.设置BMC信息存储模块;步骤S2具体步骤如下:S21.链接模块从BMC信息存储模块获取待启动服务器的BMC信息;S22.链接模块根据获取的BMC信息向待启动服务器的BMC发送控制指令。4.如权利要求3所述一种使服务器自动从PXE网络启动的方法,其特征在于,所述BMC信息包括BMCIP地址、BMC用户名和BMC密码;S21中链接模块从BMC信息存储模块获取待启动服务器的BMCIP地址,登录BMC用户名和BMC密码;步骤S1之前还包括如下步骤:SAA1.检测待启动服务器BMCIP地址是否可以ping通;若否,检查网络问题,结束;若是,进入步骤S1;步骤S3之后还包括如下步骤:SB3.输出待启动服务器从PXE网络启动执行结果。5.如权利要求1所述的一种使服务器自动从PXE网络启动的方法,其特征在于,步骤S2中链接模块通过impitool命令向待启动服务器的BMC发送控制指令。6.如权利要求5所述的一种使服务器自动从...
【专利技术属性】
技术研发人员:杨帅,
申请(专利权)人:郑州云海信息技术有限公司,
类型:发明
国别省市:河南,41
还没有人留言评论。发表了对其他浏览者有用的留言会获得科技券。