cobbler相关操作

| 标签 linux  cobbler  浏览次数: -
  • cobbler相关命令
cobbler system remove --name qdata-com46-hjd-dev # 删除一个系统
cobbler system list # 系统列表
cobbler profile list # 类型列表
cobbler system report --name=qdata-com46-hjd-dev # 查看配置
  • dhcp配置文件
cat /var/lib/dhcpd/dhcpd.leases
lease 192.168.1.36 

 {
  starts 1 2017/09/11 08:09:25;
  ends 1 2017/09/11 14:09:25;
  cltt 1 2017/09/11 08:09:25;
  binding state active;
  next binding state free;
  hardware ethernet 18:fb:7b:a2:eb:09;
  uid "\001\030\373{\242\353\011";
  set vendorclass = "iDRAC";
  client-hostname "idrac-HYDPD92";
}
  • 全局配置

/var/lib/tftpboot/pxelinux.cfg/default

  • 引导文件路径

/var/lib/cobbler/kickstarts

  • 安装脚本

cobbleradd = ‘'’cobbler system add –name=”{hostname}” –hostname=”{hostname}” –interface=”{interface_name}” –mac=”{mac}” –ip-address=”{bond0_ip}” –static=1 –subnet=”{bond0_netmask}” –gateway=”{bond0_gateway}” –profile={nodetype}’’‘.format( hostname=hostname,interface_name=interface_name,mac=mac,bond0_ip=bond0_ip,bond0_netmask=bond0_netmask,bond0_gateway=bond0_gateway,nodetype=nodetype)


上一篇 编写API 文档     下一篇 python常见坑
目录导航