- Community Home
- >
- Servers and Operating Systems
- >
- HPE ProLiant
- >
- ProLiant Servers (ML,DL,SL)
- >
- DL380 G1 wakes up at midnight. How stop?
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-14-2008 01:18 AM
08-14-2008 01:18 AM
DL380 G1 wakes up at midnight. How stop?
Does anybody know how to stop it?
(There was similar issue on DL140 http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=664807 )
(Machine is on UPS. I have erased the systen w/ Compaq utils, searched through all settings in BIOS, in RILOE II card, updated all firmwares, nothing helps. At the moment the machine is running Ubuntu 8.04 server; I can change it to any pretty recent Linux system if necessary).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-14-2008 12:33 PM
08-14-2008 12:33 PM
Re: DL380 G1 wakes up at midnight. How stop?
Remove the RILOE II and connect the keyboard, mouse and video cables to the normal system board ports instead just to check if the RILOE II is somehow responsible using it's virtual power button capabilities.
I can't remember if you need to disable the onboard video when you install a RILOE II in a DL380 G1 but if you don't get video check the maintenance switchpack and just make sure only switch 3 is on (For Rack System). The top cover will show you what each switch function is.
I hope this helps.
Brian
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-14-2008 11:27 PM
08-14-2008 11:27 PM
Re: DL380 G1 wakes up at midnight. How stop?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-15-2008 01:43 AM
08-15-2008 01:43 AM
Re: DL380 G1 wakes up at midnight. How stop?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-17-2008 02:46 AM
08-17-2008 02:46 AM
Re: DL380 G1 wakes up at midnight. How stop?
Proliant's wake up clock can be controlled through standard linux rtc driver. It is possible to change the wake-up hour in a standard way (echoing new alarm settings to the /proc/acpi/alarm), but this way the alarm cannot be disabled. By using direct ioctls we can bypass the sanity checks for the alarm settings and set an alarm to, say, 25:61:61... which should prevent machine from waking up (disabling alarm IRQ only will not work). I did that, and for two days my machine slept like a baby, and after powering up there were no negative side-effects. The hack seem to survive resets and reboots, but to be sure I've added it to my /etc/rc.local. Ok, so here's the code (it works for me, but may fry any other server, so use it on your own risk) - I guess it's short enough to be inlined:
/*
* Compaq Proliant wake-up disable hack.
*
* Copyright (C) 2008, Marcin Gomulkiewicz
*
* Most of it is taken from Real Time Clock Driver Test/Example Program
* Copyright (C) 1996, Paul Gortmaker.
*
* Released under the GNU General Public License, version 2.
*/
#include
#include
#include
#include
#include
#include
#include
#include
int main(int argc, char **argv)
{
int fd, retval, verbose = 0;
struct rtc_time rtc_tm;
const char *rtc = "/dev/rtc";
switch (argc) {
case 3:
rtc = argv[2];
/* FALLTHROUGH */
case 2:
verbose = (!strcmp(argv[1],"-v")) || (!strcmp(argv[1],"--verbose"));
if (!verbose) {
rtc = argv[1];
}
/* FALLTHROUGH */
case 1:
break;
default:
fprintf(stderr, "usage: %s [-v|--verbose][rtcdev]\n",argv[0]);
return 1;
}
if (verbose) {
fprintf(stderr,"Opening %s...",rtc);
}
fd = open(rtc, O_RDONLY);
if (fd == -1) {
if (verbose) {
perror(" failed");
}
exit(errno);
}
/* Read the RTC time/date */
if (verbose) {
fprintf(stderr," done.\nReading the clock...");
}
retval = ioctl(fd, RTC_RD_TIME, &rtc_tm);
if (retval == -1) {
if (verbose) {
perror(" failed. RTC_RD_TIME ioctl");
}
exit(errno);
}
if (verbose) {
fprintf(stderr," done.\nSetting the clock to bogus values...");
}
/* Set the alarm to bogus values */
rtc_tm.tm_sec = 61;
rtc_tm.tm_min = 61;
rtc_tm.tm_hour = 25;
retval = ioctl(fd, RTC_ALM_SET, &rtc_tm);
if (retval == -1) {
if (verbose) {
perror(" failed. RTC_ALM_SET ioctl");
}
exit(errno);
}
if (verbose) {
fprintf(stderr," done.\nReading current alarm settings...");
}
/* Read the current alarm settings */
retval = ioctl(fd, RTC_ALM_READ, &rtc_tm);
if (retval == -1) {
if (verbose) {
perror(" failed. RTC_ALM_READ ioctl");
}
exit(errno);
}
if (verbose) {
fprintf(stderr, " done.\nAlarm time now set to %02d:%02d:%02d.\nDisabling alarm interrupts...",
rtc_tm.tm_hour, rtc_tm.tm_min, rtc_tm.tm_sec);
}
/* Disable alarm interrupts */
retval = ioctl(fd, RTC_AIE_OFF, 0);
if (retval == -1) {
if (verbose) {
perror(" failed. RTC_AIE_OFF ioctl");
}
exit(errno);
}
if (verbose) {
fprintf(stderr, " done.\n");
}
close(fd);
return EXIT_SUCCESS;
}
It would be nice if someone could confirm this hack and/or write similar program(s) for other operating systems. Unfortunately, I am linux-only guy.
Best regards,
Marcin