# PaCkAgE DaTaStReAm powerdown 1 68 # end of header 070701000570ad000081a4000000000000000000000001436a0d9900000103000000660000000000000000000000000000001200000000powerdown/pkginfoPKG=powerdown NAME=powerdown ARCH=sparc VERSION=1.0 CATEGORY=utility DESC=A daemon which manages events and messages from a PowerAgent VENDOR=(C) 2005 Multenet Technologies (Pty) Ltd EMAIL=techsupport@multenet.com BASEDIR=/ CLASSES=none PSTAMP=20051021 16:41 070701000570ac000081a4000000000000000000000001436a0d9900000337000000660000000000000000000000000000001100000000powerdown/pkgmap: 1 68 1 d none /etc 0755 root root 1 d none /etc/init.d 0755 root root 1 f none /etc/init.d/powerdown 0744 root root 540 43714 1131022123 1 f none /etc/power-down 0744 root root 320 27744 1131022123 1 f none /etc/power-up 0744 root root 413 36487 1131022123 1 d none /etc/rc0.d 0755 root root 1 s none /etc/rc0.d/K01powerdown=../init.d/powerdown 1 d none /etc/rc1.d 0755 root root 1 s none /etc/rc1.d/K01powerdown=../init.d/powerdown 1 d none /etc/rc2.d 0755 root root 1 s none /etc/rc2.d/S99powerdown=../init.d/powerdown 1 d none /etc/rcS.d 0755 root root 1 s none /etc/rcS.d/K01powerdown=../init.d/powerdown 1 d none /usr/sbin 0755 root root 1 f none /usr/sbin/powerdown 0744 root root 18780 13145 1131023581 1 f none /usr/share/man/man1/powerdown.1 0644 root root 3483 47138 1131022123 1 i pkginfo 259 21418 1131023769 07070100000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000b00000000TRAILER!!!070701000570ad000081a4000000000000000000000001436a0d9900000103000000660000000000000000000000000000000800000000pkginfoPKG=powerdown NAME=powerdown ARCH=sparc VERSION=1.0 CATEGORY=utility DESC=A daemon which manages events and messages from a PowerAgent VENDOR=(C) 2005 Multenet Technologies (Pty) Ltd EMAIL=techsupport@multenet.com BASEDIR=/ CLASSES=none PSTAMP=20051021 16:41 070701000570ac000081a4000000000000000000000001436a0d9900000337000000660000000000000000000000000000000700000000pkgmap: 1 68 1 d none /etc 0755 root root 1 d none /etc/init.d 0755 root root 1 f none /etc/init.d/powerdown 0744 root root 540 43714 1131022123 1 f none /etc/power-down 0744 root root 320 27744 1131022123 1 f none /etc/power-up 0744 root root 413 36487 1131022123 1 d none /etc/rc0.d 0755 root root 1 s none /etc/rc0.d/K01powerdown=../init.d/powerdown 1 d none /etc/rc1.d 0755 root root 1 s none /etc/rc1.d/K01powerdown=../init.d/powerdown 1 d none /etc/rc2.d 0755 root root 1 s none /etc/rc2.d/S99powerdown=../init.d/powerdown 1 d none /etc/rcS.d 0755 root root 1 s none /etc/rcS.d/K01powerdown=../init.d/powerdown 1 d none /usr/sbin 0755 root root 1 f none /usr/sbin/powerdown 0744 root root 18780 13145 1131023581 1 f none /usr/share/man/man1/powerdown.1 0644 root root 3483 47138 1131022123 1 i pkginfo 259 21418 1131023769 070701000570ae000041ed000000000000000000000004436a0d9900000000000000660000000000000000000000000000000500000000root070701000570af000041ed000000000000000000000003436a0d9900000000000000660000000000000000000000000000000900000000root/etc070701000570b0000041ed000000000000000000000002436a0d9900000000000000660000000000000000000000000000001000000000root/etc/init.d070701000570b1000081e4000000000000000000000001436a072b0000021c000000660000000000000000000000000000001a00000000root/etc/init.d/powerdown#!/bin/sh # # powerdown This shell script enables the automatic loading of powerdown. # # Author: Multenet Technologies # # chkconfig: 35 99 01 # description: A daemon which manages events and messages from a PowerAgent. # processname: powerdown # daemon="powerdown" start() { echo "Starting $daemon" /usr/sbin/$daemon } stop() { echo "Stopping $daemon" /usr/bin/pkill $daemon } case "$1" in start) start ;; stop) stop ;; *) echo "Usage: $0 {start|stop}" exit 1 esac exit 0 070701000570b2000081e4000000000000000000000001436a072b00000140000000660000000000000000000000000000001400000000root/etc/power-down#!/bin/sh # Solaris Version ( 1005 ) # # This script will be called whenever the PowerDown client receives # the PFN (Power Failure Notification) from the local PowerAgent. # Thus this script must initiate the shutdown procedure. # # shutdown /usr/sbin/shutdown -y -g $1 -i 5 "System shutdown initiated by PowerAgent" 070701000570b3000081e4000000000000000000000001436a072b0000019d000000660000000000000000000000000000001200000000root/etc/power-up#!/bin/sh # Solaris Version ( 1005 ) # # This script will be called whenever the PowerDown client receives the # PFCN (Power Failure Cancelation Notification) from the local PowerAgent. # Thus this script should cancel the shutdown procedure initiated by the # shutdown script # # notify all users echo "System shutdown cancelled by PowerAgent" | /usr/sbin/wall -a # stop the shutdown /usr/bin/pkill shutdown 070701000570b4000041ed000000000000000000000004436a0d9900000000000000660000000000000000000000000000000900000000root/usr070701000570b5000041ed000000000000000000000002436a0d9900000000000000660000000000000000000000000000000e00000000root/usr/sbin070701000570b6000081e4000000000000000000000001436a0cdd0000495c000000660000000000000000000000000000001800000000root/usr/sbin/powerdownELF4EL4 (44?@?@?@?@?@BBB/usr/lib/ld.so.1SQ !"#$&'(*+/0256789;=?ABCDEFGJLNP  %),-.134:<>@HIKMOD! 2L )@03 >AC@K@RB\?a5 gAlAr\ ~E[?38 A0A`A @At @@A2< @dDA@(?@@B @X@@pA"@)4 7A$<l BDI?@ P?hj?s@|AlDxACC8@!@A<5 AC8@A@L?@D|xl@A5 B   ?"@|)@3AH?AxDE@4N dAk?jAsAT}@_environ_Jv_RegisterClassesmd5_appendmemcmpencode_stringopenopenlogstrcat_DYNAMIC_exit_finistat.umulsig_handler_endmd5_finishgethostnameforksocketstrcmpsrand_startatoidupmd5_initsnprintfoptindinet_ntoa_GLOBAL_OFFSET_TABLE_getopt.uremsystemsendtoalarm.remstrlendecode_stringbindusageoptarg_etext_PROCEDURE_LINKAGE_TABLE_vfprintfrecvfromsetsiderrnotime_edata__iobselectgethostbynamememcpysetsockoptsprintfatexitindexpowerumask_lib_version__dso_handle__deregister_frame_infomainvsyslogmemsetinet_ptonsigemptysetclosestrerror__register_frame_infosleepcloselogsigactionfwritelibsocket.so.1SISCD_2.3libnsl.so.1SUNW_1.7SUNWprivate_1.1libc.so.1SUNW_1.1/usr/sfw/lib zt0 =' Nq ='?`B?dK?\DIC88Dx0D*D?;? ??B?K??-?D?M@P@&@#@(@4J@@@L:@X"@d@p$@|E@4@.@<@@F@@@ @@>A A A9A$(A0A<5AHGATOA`Al/AxHAAA?A1AAA%ALANA7A B! @D# @L/M!@L+@ , @ "@@L @L!㿐#/K` @  ` @@`" `@$@``` ``@K` +㿐㿐/Kͮ@`$ ` @K ``` `@K܁㿐ddddddddddddddddddddddddddddddddddddddddddddddddd(d<dd|㿐'X`L'L'P'T` #X@K @K㿐M#Mb(    7@K~XMbpِ MX  @Kv"Mb@KnXMX  @Kk"MX  I@Ke"MX  8@K_#MPb8@KWXMX  <@KT#`Mb8@KLXMX  K@KI#NX  ?@KC N`@@K;XNX p  4@K71N @K4X㿈`| $ @K/   @K+ 8   @K''@K&`xN`qo ?P@K*?N `1"`2`0,\ Z `|``-NR `|``2M NaI ``$`@J NNa 0`<@J@J 6?4 `` Na8+ ) `& ``NN$`aP0`@@JА@Jѐ ? NX$@@JȐ@JÐ 6NNa N؀`-@J-|``|`#`| `#h @J  82 +   ?x+@ @ `#?x''   @J耢  $ @J |'< 8$ X@J< `|`a  \@ [  &? |N`!2 |`Q``r@Ji % "| 'D@JDDHN h D @JJ@@J0@@  ????' %N@@J'Ƞ  `@J7 w, @J2  $p|@J    ?v`2 @J  ^N`!` @J % Na@J  N@J a؀ "v  B|q    @I X`x ]|`0```@I % )Na@I N@Ia؀ 2|  @"I $ '@@I@Na > @I`xN bp>?@IN`!N `%z  !?@I   N`! N `% 0@IN?c @$ @It?Nb(  `|    ` ``#```#`0%N|bP  x@I^  @Io  ` $ @Ik??ƀ`<D(``@N@b`\ N#Hbx  @I R N@bL `|#`@@I` 2N$@I" N@I9bN@I5cN@I1c8N@I-cN@I)cO@I%``O`@I!@H@ O@I!  |``#`@I   `@H   |` '@HϐO@H!( O@/a0 |``}#``|x#`<`@N| '@HO@Hѐ!( }O <``McP$ < <@HӒ  @`Mc$ @@H @  `cp| cq4 4 (4 *4 $ ,  @H G$ 8 ?'c @H  8 ; (@H  Z@H p@H   @ ,  * * *Fb'D@HH@'@ @H ' @H   @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 @@@@ c@0`(` @ @@@=Қ@c`@0`(`@ @@@/@`p@0` (`@ @@@ &ߚ@bƂ@0`(`@ @@@:I@c@0`(` @ @@@5;̚@`@0`(`@ @@@"@a@0` (`@ @@@@6u4`9@0`(`@ @@@9@a@0`(` @ @@@蟚@`@0`(`@ @@@1+@be@0` (`@ @6@@= H@bD@0`(`@ @6@@ʿ@c@0`(` @ @7@@*@ c@0`(`@ @6@@?$@`9@0` (`@ @6@@V֚@aÂ@0`(`@ @6@@#3@`@0`(` @ @7@@?@`}@0`(`@ @6@@!a@ aт@0` (`@ @6@@@bO@0`(`@ @6@@?9@b@0`(` @ @7@@(P@c@0`(`@ @6@@@a@0` (`@ @6@@@=߂b@0`(`@ @6@@/N@b5@0`(` @ @7@@ @b@0`(`@ @6@@:ᴚ@ c@0` (`@ @@@D""" " H`vc" " ;j&.c`" " " "㿐3 `?2. >  @ %& &  @`@!#@ @CΔ`?$@ ? ?`@ 0݂`@C 㿈   @ (`3@*0` 7" ?Ma  @`+`3 .@  㿐 Oc8 0'., `: `/@Cx@Cj   @Cm .+`8`@#@@ `ނ.㿐 Oc8 0".  `@CM @ .`/@CAN@C3    N` ` @@ .㿐/B`@?㿐㿠㿠] Error: %s (default path is %s) Option Error: %s Usage: %s [pscqfvh] where the options are: -p Do not search for a PowerAgent, use this one -s Path to the shutdown script /etc/power-down -c Path to the cancellation script /etc/power-up -q Log PowerAgent messages only to the system log -f Dont daemonize, stay in foreground -v Print %s's version -h Print this help message Error while sending to %s on port %i (%s) Cancelling shutdown procedure Shutdown procedure initiated %s %s %i &/bin/shPowerAgent says: %s %s %s &echo "PowerAgent says: %s" | wallError trying to notify users of message received %s%%%s%s%02Xno;yes;Registered with PowerAgent %s Error while receiving on port %i (%s) Error while waiting for reply (%s) hvfqie:s:c:p:Unknown option usedPowerDown version %d.%d build %d Missing option argumentśOXҾG鷘͡Qϱ@:]BN5_STABdFB?\IM3fhVA-9YUEF"DD䵫[S:ܿTCHS׭XS6c۱UAV̢̾hTF.VR7[4`KcCFIަKRd`_Aܪ[UȺc^26mGIGTKGL`UPݴW-WM;fSNT4HXTT>#׭MFEfVP˒P;.eV9S;HI_P=K8^žG3\ѽBB?ڸGo][\RA:ջi^kƫΰ˝3؏ȱQըcF˒cF˘N֧ޱKϿZ^7ߝާ%s0.0.0.0Invalid PowerAgent IP address specified255.255.255.255/dev/nullPowerDown version %d.%d build %d started ?%s=%s;PowerDown terminated ?%s=ok;Error trying to open socket (%s) Error while initialising signal handling (%s) Unable to fork (%s) Error binding to port %i (%s) Unable to find shutdown script %s (%s) Unable to retrieve local host name (%s) Unable to find cancellation script %s (%s) Unable to daemonize (%s) Unable to retrieve local IP address p*LU3BC CCCCC00<0H0T0`0l0x00000000000000 0,080D0P0\0h0t0000000000000~0{0x(0u40r@0oL0lX0id0fp0c|0`0]0Z0W 5 5  oo to| D  oo?hC@(#)SunOS 5.10 Generic January 2005GCC: (GNU) 3.4.3 (csl-sol210-3_4-branch+sol_rpath)GCC: (GNU) 3.4.3 (csl-sol210-3_4-branch+sol_rpath)GCC: (GNU) 3.4.3 (csl-sol210-3_4-branch+sol_rpath)GCC: (GNU) 3.4.3 (csl-sol210-3_4-branch+sol_rpath)GCC: (GNU) 3.4.3 (csl-sol210-3_4-branch+sol_rpath)ld: Software Generation Utilities - Solaris Link Editors: 5.10-1.479.shstrtab.interp.hash.dynsym.dynstr.SUNW_version.rela.got.rela.bss.rela.plt.text.init.fini.rodata.rodata.str1.8.dynamic.data.ctors.dtors.eh_frame.jcr.data.rel.local.comment  !) t tp7 $ A  < K D D| U&[55a55g55Po26(6( <?@?@(P?h?h ~BBBB BBCCC C CCCCFCCCnD070701000570b7000041ed000000000000000000000003436a0d9900000000000000660000000000000000000000000000000f00000000root/usr/share070701000570b8000041ed000000000000000000000003436a0d9900000000000000660000000000000000000000000000001300000000root/usr/share/man070701000570b9000041ed000000000000000000000002436a0d9900000000000000660000000000000000000000000000001800000000root/usr/share/man/man1070701000570ba000081a4000000000000000000000001436a072b00000d9b000000660000000000000000000000000000002400000000root/usr/share/man/man1/powerdown.1.TH POWERDOWN 1 "October 21, 2005" .LO 1 .SH NAME powerdown \- A daemon which manages events and messages from a PowerAgent. .SH SYNOPSIS \fBpowerdown\fP [\fB-qfvh\fP] [\fB-p\fP poweragent_IP] [\fB-s\fP shutdown_script] [\fB-c\fP cancellation_script] .SH DESCRIPTION \fBpowerdown\fP is a daemon which registers with a \fIPowerAgent\fP on the local network. The daemon will then listen for events and messages sent by that \fIPowerAgent\fP. It will log all events and messages received, and will notify the users on the system via a message to all active terminals. It will also initiate and cancel system shutdown when necessary. See the \fBEVENTS AND MESSAGES\fP and \fBLICENCES\fP sections for more information. .SH OPTIONS .TP .B \-p IP Do not search for a \fIPowerAgent\fP on the LAN, use the one whose IP Address is specified. If this option is omitted, \fBpowerdown\fP will search for any available \fIPowerAgent\fP on the LAN. .TP .B \-s script Use this script to initiate the shutdown procedure. Default is \fI/etc/power-down\fP. .TP .B \-c script Use this script to cancel the shutdown procedure. Default is \fI/etc/power-up\fP. .TP .B \-q Quiet mode. Log \fIPowerAgent\fP messages to the system log only. Messages will not be sent to all the open terminals. .TP .B \-f Do not become a daemon, stay running in the foreground. .TP .B \-v Prints the current \fBpowerdown\fP version information. .TP .B \-h Prints help information. .SH EVENTS AND MESSAGES .TP .B Events There are two types of events \fBpowerdown\fP can receive from the \fIPowerAgent\fP. The first one is the shutdown event. This will notify \fBpowerdown\fP to start the shutdown procedure. The second event is a cancellation event to stop an already initiated shutdown procedure (if there is still time). .TP .B Messages Messages from the \fIPowerAgent\fP are user configurable notifications usually associated with UPS alerts and/or traps. Messages are configured on the \fIPowerAgent\fP. Use the \fB-q\fP option if you do not want these messages to be printed to all open terminals, but only logged to the system log. Messages will be logged to syslog's local0 facility. .SH LICENSES Each \fBpowerdown\fP requires one available license on the \fIPowerAgent\fP for registration to succeed. If registration fails, \fBpowerdown\fP will not be able to receive any events or messages from a \fIPowerAgent\fP. \fBpowerdown\fP will however try to re-register once a minute until it succeed, where after \fBpowerdown\fP will be required to renew its license with the \fIPowerAgent\fP every 10 minutes. .SH FILES .TP .B /etc/power-down When \fBpowerdown\fP receives a shutdown event from the \fIPowerAgent\fP it will execute this script. The script should contains the basic commands needed to shutdown the machine. The script will receive one argument which specifies the number of seconds before the actual shutdown is to commence. .TP .B /etc/power-up When \fBpowerdown\fP receives a shutdown cancellation event from the \fIPowerAgent\fP, it will execute this script. The script should contains the basic commands to cancel an already initiated shutdown procedure. No arguments are passed to the script. .SH RESOURCES \fBpowerdown\fP uses UDP ports \fB6000\fP and \fB6001\fP. .SH SEE ALSO \fBshutdown\fP(1), \fBwall\fP(1), \fBsyslogd\fP(1) .SH COPYRIGHT \fBpowerdown\fP Copyright (c) 2005 Multenet Technologies (Pty) Ltd. .SH AUTHORS Multenet 07070100000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000b00000000TRAILER!!!