Systems Engineer I Interview Questions in Herndon, VA | Glassdoor

Systems Engineer I Interview Questions in Herndon, VA

1

Systems engineer i interview questions shared by candidates

Top Interview Questions

Sort: RelevancePopular Date

For example, the first question might be "If there is a this one line "xxx" in the log file, then you have to reboot the server. How would you write a script for that?" Second follow up question would be "What if you had 100+ servers?" Third follow up question would be "What if you only need to reboot if the host had not been rebooted in the last 24 hours?"

1 Answer

I would creat a power shell script with conditional loops, get child item, and restart-computer force. I use this order as it is tuned for performance. The logic is check uptime of all servers in the list obtained by gci for each loop. If uptime is more than 24 hours then move to next condition. Get-content on the log file txt and use search string cmdlet to query the file for string “xxx”. If both of these conditions are met then force restart the computer. This script can be set as a scheduled task to repeat at any occurrence. You will want to script logic with availability in mind. If all of your web servers meet these conditions then you’ll have a service outage when all machines reboot at once. Hope this helps. Cheers.