
1.Create a Cron Job
Lab Information The Nautilus system admins team has prepared scripts to automate several day-to-day tasks. They want them to be deployed on all app servers in Stratos DC on a set schedule. Before that they need to test similar functionality with a sample cron job. Therefore, perform the steps below: a. Install cronie package on all Nautilus app servers and start crond service. b. Add a cron */5 * * * * echo hello > /tmp/cron_text for root user. Lab Solutions 🧭 Part 1: Lab Step-by-Step Guidelines 1️⃣ Login to Jump Host ssh thor@jump_host.stratos.xfusioncorp.com Password: mjolnir123 Configure App Server 1 2️⃣ SSH to stapp01 ssh tony@stapp01 Password: Ir0nM@n 3️⃣ Install cronie sudo yum install -y cronie 4️⃣ Start cron service sudo systemctl start crond sudo systemctl enable crond 5️⃣ Add root cron job (FAST METHOD) Instead of opening an editor, run: echo "*/5 * * * * echo hello > /tmp/cron_text" | sudo crontab - Verify: sudo crontab -l Expected: */5 * * * * echo hello > /tmp/cron_text Co
Continue reading on Dev.to
Opens in a new tab


