Automate This
Use the Attune GUI for your Scripts
You've automated: Build Linux Machine with PiKVM
Get the most out of automation with our get started videos, product demonstrations, and more.
The following steps will guide you through the manual process.
Connect via ssh:
ssh {automationworkerlinuxuser}@{automationworkerlinuxnode}
Execute the following script:
CURL_OUTPUT=$(curl --insecure \
--header X-KVMD-User:{pikvmUserAdmin.user} \
--header X-KVMD-Passwd:{pikvmUserAdmin.password} \
https://{pikvmIpAddress}/api/auth/check)
echo "${CURL_OUTPUT}" | jq '.'
OK=$(echo "${CURL_OUTPUT}" | jq '.ok')
if [ "${OK}" != "true" ]
then
echo "Error"
exit 1
fi
Execute the following script:
CURL_OUTPUT=$(curl --insecure \
--header X-KVMD-User:{pikvmUserAdmin.user} \
--header X-KVMD-Passwd:{pikvmUserAdmin.password} \
https://{pikvmIpAddress}/api/info)
echo "${CURL_OUTPUT}" | jq '.'
OK=$(echo "${CURL_OUTPUT}" | jq '.ok')
if [ "${OK}" != "true" ]
then
echo "Error"
exit 1
fi
Execute the following script:
curl --insecure \
--header X-KVMD-User:{pikvmUserAdmin.user} \
--header X-KVMD-Passwd:{pikvmUserAdmin.password} \
https://{pikvmIpAddress}/api/atx
Execute the following script:
curl --insecure \
--request POST \
--header X-KVMD-User:{pikvmUserAdmin.user} \
--header X-KVMD-Passwd:{pikvmUserAdmin.password} \
"https://{pikvmIpAddress}/api/atx/click?button=power_long" \
| jq '.'
Execute the following script:
CURL_OUTPUT=$(curl --insecure \
--header X-KVMD-User:{pikvmUserAdmin.user} \
--header X-KVMD-Passwd:{pikvmUserAdmin.password} \
https://{pikvmIpAddress}/api/msd)
echo "${CURL_OUTPUT}" | jq '.'
Execute the following script:
curl --insecure --verbose \
--request POST \
--header X-KVMD-User:{pikvmUserAdmin.user} \
--header X-KVMD-Passwd:{pikvmUserAdmin.password} \
https://{pikvmIpAddress}/api/msd/set_connected?connected=0 \
| jq '.'
Execute the following script:
curl --insecure \
--request POST \
--header X-KVMD-User:{pikvmUserAdmin.user} \
--header X-KVMD-Passwd:{pikvmUserAdmin.password} \
https://{pikvmIpAddress}/api/msd/reset | jq '.'
Execute the following script:
curl --insecure --verbose \
--request POST \
--header X-KVMD-User:{pikvmUserAdmin.user} \
--header X-KVMD-Passwd:{pikvmUserAdmin.password} \
https://{pikvmIpAddress}/api/msd/remove?image=kickstart_{newNode.fqn}.iso
Execute the following script:
cd {automationWorkerBaseDirectory}
curl --insecure \
-T "kickstart_{newNode.fqn}.iso" \
-X POST \
--header X-KVMD-User:{pikvmUserAdmin.user} \
--header X-KVMD-Passwd:{pikvmUserAdmin.password} \
https://{pikvmIpAddress}/api/msd/write?image=kickstart_{newNode.fqn}.iso
Execute the following script:
curl --insecure \
--request POST \
--header X-KVMD-User:{pikvmUserAdmin.user} \
--header X-KVMD-Passwd:{pikvmUserAdmin.password} \
"https://{pikvmIpAddress}/api/msd/set_params?image=kickstart_{newNode.fqn}.iso&cdrom=1" \
| jq '.'
Execute the following script:
curl --insecure --verbose \
--request POST \
--header X-KVMD-User:{pikvmUserAdmin.user} \
--header X-KVMD-Passwd:{pikvmUserAdmin.password} \
https://{pikvmIpAddress}/api/msd/set_connected?connected=1 \
| jq '.'
Execute the following script:
curl --insecure --verbose \
--request POST \
--header X-KVMD-User:{pikvmUserAdmin.user} \
--header X-KVMD-Passwd:{pikvmUserAdmin.password} \
https://{pikvmIpAddress}/api/atx/power?action=on \
| jq '.'
Check if TCP Port 0 is listening.
Use Telnet to check if the TCP Service is accepting connections.
Connect via ssh:
ssh {automationworkerlinuxuser}@{automationworkerlinuxnode}
Execute the following script:
curl --insecure --verbose \
--request POST \
--header X-KVMD-User:{pikvmUserAdmin.user} \
--header X-KVMD-Passwd:{pikvmUserAdmin.password} \
https://{pikvmIpAddress}/api/msd/set_connected?connected=0 \
| jq '.'
Execute the following script:
curl --insecure --verbose \
--request POST \
--header X-KVMD-User:{pikvmUserAdmin.user} \
--header X-KVMD-Passwd:{pikvmUserAdmin.password} \
https://{pikvmIpAddress}/api/msd/remove?image=kickstart_{newNode.fqn}.iso
You have completed this instruction.
Join our Discord channel and connect with like-minded individuals who share your passion. Engage in lively discussions, gain valuable insights, and stay updated on the latest trends in our industry. Don't miss out on this opportunity to network, learn, and grow together.
Click the link below and become a part of our vibrant community on Discord today!