sudo yum -y install httpd |
sudo touch /var/www/html/index.html sudo chown kreonet:kreonet /var/www/html/index.html |
Upload list_dhcp_clients.py on /home/kreonet/list_dhcp_clients.py
Change permission
chmod 755 /home/kreonet/list_dhcp_clients.py |
Check that /bin/python3 and other files are exists
#!/bin/python3 ... HOSTS='/etc/dnsmasq.d/bmc-hosts.conf' LEASES='/var/lib/dnsmasq/bmc.leases' ISO_DIR='/ISOs' OUT='/var/www/html/index.html' ... |
crontab -e # add the following */5 * * * * /home/kreonet/list_dhcp_clients.py |
You can check and access server consoles(iDRAC, IPMI, ...) via this page.