nixCraft Linux Forum

nixCraft

Linux / UNIX Tech Support Forum

Automate drac/ilo reboot

This is a discussion on Automate drac/ilo reboot within the Shell scripting forums, part of the Development/Scripting category; Ok here's the case: a whole bunch of M$ terminal servers that hang after every patch tuesday update. We need ...


Go Back   nixCraft Linux Forum > Development/Scripting > Shell scripting

Linux answers from nixCraft.


Shell scripting You can discuss the shell scripting, request shell scripts and scripting techniques

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 27-11-2009, 01:46 PM
Junior Member
User
 
Join Date: May 2009
Location: Amsterdam
OS: SUSE
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
Clinton is on a distinguished road
Default Automate drac/ilo reboot

Ok here's the case:
a whole bunch of M$ terminal servers that hang after every patch tuesday update. We need to manually reboot them using DRAC and ILO's wich is time consuming. Now these drac and ilo devices support SSH and it is possible to login in and give them a reboot command.
Now I figured I could run a script from a linux server that automatically log in remotely and gives the server(s) the reboot command, thought about using this one:
http://nixcraft.com/shell-scripting/...ng-unix-login-passwords-through-shell-scripts.html

Has anyone ever done this before in such a case? Offcourse the command's for drac and ilo's are different then linux/unix.
Reply With Quote
  #2 (permalink)  
Old 27-11-2009, 03:23 PM
nixcraft's Avatar
Never say die
User
 
Join Date: Jan 2005
Location: BIOS
OS: RHEL
Scripting language: Bash and Python
Posts: 2,710
Thanks: 11
Thanked 245 Times in 184 Posts
Rep Power: 10
nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute
Default

Is it like IPMI over KVM? I'm not aware of drac/ilo reboot commands. But usually, you can do something as follows for IPMI devices:
Code:
sshpass -p 'password' ssh username@server.ip command
sshpass -p 'password' ssh username@server.ip reboot
Also IPMI over KVM got their own IPs with command to reboot, shutdown or restart the remote servers. The following put into Windows SAC (Special Administration Console) from Linux server:
Code:
ipmitool -U root -I lan -H 10.5.1.2 -E shell
You can use expect tool to automate entier login procedure and issue drac/ilo reboot command.
__________________
Vivek Gite
Linux Evangelist
Be proud RHEL user, and let the world know about your enterprise choices! Join RedHat user group.
Always use CODE tags for posting system output and commands!
Do you run a Linux? Let's face it, you need help
Reply With Quote
  #3 (permalink)  
Old 27-11-2009, 03:36 PM
Junior Member
User
 
Join Date: May 2009
Location: Amsterdam
OS: SUSE
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
Clinton is on a distinguished road
Default

Hi Vivek, we have no ipmi support, ilo=integrated lights out from HP and Drac a similar tool from dell. Basically you can approach your server and power off/on if the server is not responding through RDP.
I believe the DRAC command is reset /servername
I am gonna try the expect tool and see what goes
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads

Thread Thread Starter Forum Replies Last Post
Causes of reboot harshal CentOS / RHEL / Fedora 8 11-08-2009 02:56 PM
Mount NFS Shares after client reboot khalil_noura File Servers 3 05-05-2009 01:14 AM
Automate command execution - reboot-command execution ganeshp@moris.org Shell scripting 2 03-12-2008 11:18 AM
command run after reboot kasimani Shell scripting 1 22-03-2007 12:45 AM
Automatically reboot my Windows 2003 Server jerry Windows Xp/2000/2003 server administration 7 10-10-2006 02:23 AM


All times are GMT +5.5. The time now is 05:29 AM.


Powered by vBulletin® Version 3.8.5 - Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2
©2005-2010 nixCraft. All rights reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38