RHEL7 Reboot

Exported on 19-Aug-2021 08:55:59

Reboot server and wait for it to start booting.

Parameters

Name Type Script Reference Default Value Comment
Linux: Root User Linux OS Credential linuxRootUser
Target Server: Lin Linux / Unix Server targetServerLin The target server is a generic placeholder, usually used for the server a script will run on. For example, the server being built if the procedure is building a server.

1 - RHEL7 Reboot Server now

Reboot server now without waiting.

The connection details have changed from the last step.

Login as user on node

Connect via SSH
ssh user@hostname
This is a Bash Script make sure you run it with bash -l from a terminal session
nohup shutdown -r now &

2 - RHEL7 Reboot Wait

Ping server until it is offline and then wait 20 seconds for it to finish rebooting.

The connection details have changed from the last step.

on node

Check if tcp port 22 is listening make sure it goes down for 1 seconds, once its up, wait 20 seconds .

Use Telnet to check if the TCP service is accepting connections.