# PaCkAgE DaTaStReAm powerdown 1 66 # end of header 0707010005708d000081a4000000000000000000000001436a07a400000102000000660000000000000000000000000000001200000000powerdown/pkginfoPKG=powerdown NAME=powerdown ARCH=i386 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 0707010005708c000081a4000000000000000000000001436a07a400000337000000660000000000000000000000000000001100000000powerdown/pkgmap: 1 66 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 17980 28435 1131022244 1 f none /usr/share/man/man1/powerdown.1 0644 root root 3483 47138 1131022123 1 i pkginfo 258 21147 1131022244 07070100000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000b00000000TRAILER!!!0707010005708d000081a4000000000000000000000001436a07a400000102000000660000000000000000000000000000000800000000pkginfoPKG=powerdown NAME=powerdown ARCH=i386 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 0707010005708c000081a4000000000000000000000001436a07a400000337000000660000000000000000000000000000000700000000pkgmap: 1 66 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 17980 28435 1131022244 1 f none /usr/share/man/man1/powerdown.1 0644 root root 3483 47138 1131022123 1 i pkginfo 258 21147 1131022244 0707010005708e000041ed000000000000000000000004436a07a400000000000000660000000000000000000000000000000500000000root0707010005708f000041ed000000000000000000000003436a07a400000000000000660000000000000000000000000000000900000000root/etc07070100057090000041ed000000000000000000000002436a07a400000000000000660000000000000000000000000000001000000000root/etc/init.d07070100057091000081e4000000000000000000000001436a072b0000021c000000660000000000000000000000000000001a00000000root/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 07070100057092000081e4000000000000000000000001436a072b00000140000000660000000000000000000000000000001400000000root/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" 07070100057093000081e4000000000000000000000001436a072b0000019d000000660000000000000000000000000000001200000000root/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 07070100057094000041ed000000000000000000000004436a07a400000000000000660000000000000000000000000000000900000000root/usr07070100057095000041ed000000000000000000000002436a07a400000000000000660000000000000000000000000000000e00000000root/usr/sbin07070100057096000081e4000000000000000000000001436a07a40000463c000000660000000000000000000000000000001800000000root/usr/sbin/powerdownELF4A4 (44<<<<<===/usr/lib/ld.so.1YU !$')*+,-/136789:;<=>@ADGHIKMNPQS  "#%&(.0245?BCEFJLORT>>H )x0:2 @xGxCNX8^clxh8X8 ?! 1 ( H>0E hx"|C) ?1(7h= N2T r<"= 0 Cx C>!  1u >{ ((X"(/7>? Y w2B<7/. 2i X, 'H__dso_handle_edataalarmopenmemsetvfprintfmemcpymd5_initsendtooptarginet_ntoaclosebindrecvfromsigemptysetfwritevsysloggetoptinet_pton__iobstrerror_Jv_RegisterClassesmd5_finishhtonlforksetsid_startopenlog_environ__fpstartcloselogusageatexitstrcathtonstimeoptind_mcountindexumask__fsr_init_value_fini__1cG__CrunMdo_exit_code6F_v__GLOBAL_OFFSET_TABLE_srand_get_exit_frame_monitor_DYNAMICmd5_appendpower__register_frame_info_basessnprintf_endmainencode_string__longdouble_used_exit__fsr_xstatsleepsystemsprintf___Argv_PROCEDURE_LINKAGE_TABLE___deregister_frame_info_basessetsockopt_lib_versionerrno_etextsigactiongethostnamedecode_stringdupselectsocketatoisig_handlergethostbynamelibsocket.so.1SUNW_0.7libnsl.so.1SUNW_1.7SUNWprivate_1.1libc.so.1SUNW_1.1/usr/sfw/lib (=  0'= qN .'= 8qN *<C=3=>, ?'BGxC |C%<!<<:<F<C=3 ==<==S== =$= (=,= 0=Q4=@8=?<=4@=D=H=OL=P=(T=X=\=`="d=h=#l=p=Pt=Dx= |=K=T==J=== ==N=)=$=H=.==>==/5<%<%<h%<h%<h%<h%<h %=h(% =h0%=h8p%=h@`%=hHP%=hP@% =hX0%$=h` %(=hh%,=hp%0=hx%4=h%8=h%<=h%@=h%D=h%H=h%L=h%P=hp%T=h`%X=hP%\=h@%`=h0%d=h %h=h%l=h%p=h%t=h%x=h%|=h%=h%=h %=h(%=h0%=h8p%=h@`%=hHP%=hP@%=hX0%=h` %=hh%=hp%=hx%=h%=h%=hjj=t Rh2>t>t PE>u T>RU >RPo"= x PPfnURQt`|$у> D$td$у`tƒ 3fd$f T$tfd$f L$l$YZ]ÐUS[)R$t :ҋu鋃t Pƃ$]ÐUS[w)P$tSj(P P{t,t Pe]U RPjYUWVS C ]} uuPVWˀS=e[^_ÉRVWh@?3PVWˀSe[^_ÐUVS] ۋut$QSh@4h@? ShL4jth@?jjh^4 Vhg4h@?h@?jjhw4 h@?jIjh5h@?j8jh6h4hX6h@?|h@?jI S:@C @Dž<P Dž88jSj VjSjQjSjDC1׹ h;ױ󥤹уIQR1C DžPC DžjSj66bm j;$/$#XZjhZ5%$)$$!1C %Cjjjh;j\ CPjjhhC^$$љr19}}`љ ;hCtC)hCC0à 58C hd5j۸ 1;PhjW$hC 5C/Phz5hW[ C Czf1JC1ۃ jCCPhjWX5CPh5hWT<,t ChXC1҉zuC' 5B Ph;jPh Ch5j\ j$<Cw1 5B[ Ph;{h8u 6 5B- Ph5ji 5BPhph <P?W 5BP5 Do not search for a PowerAgent, use this one -s Path to the shutdown script (default path is %s) -c Path to the cancellation script -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 echo "PowerAgent says: %s" | wallError trying to notify users of message received Registered with PowerAgent %s Error while receiving on port %i (%s) Error while waiting for reply (%s) PowerDown version %d.%d build %d Invalid PowerAgent IP address specifiedś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ߝާǯLЧUJPowerDown version %d.%d build %d started Error trying to open socket (%s) Error while initialising signal handling (%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 retrieve local IP address =.>N^n~.>N^n~.>N^n~ . 2 2AA N omoH o  oo<>@(#)SunOS 5.10 Generic January 2005@(#)SunOS 5.10 Generic January 2005@(#)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)@(#)SunOS 5.10 Generic January 2005ld: Software Generation Utilities - Solaris Link Editors: 5.10-1.477.shstrtab.interp.hash.dynsym.dynstr.SUNW_version.rel.text.rel.got.rel.data.rel.bss.rel.plt.init.fini.rodata.rodata.str1.1.rodata.str1.4.dynamic.ctors.dtors.eh_frame.jcr.data.rel.local.comment  P!N)H H 7    A   J   T   ]    a@; f22l22r22` z2@4@4255 E<<==N>>8>>>>>>>>>>X?? ?@07070100057097000041ed000000000000000000000003436a07a400000000000000660000000000000000000000000000000f00000000root/usr/share07070100057098000041ed000000000000000000000003436a07a400000000000000660000000000000000000000000000001300000000root/usr/share/man07070100057099000041ed000000000000000000000002436a07a400000000000000660000000000000000000000000000001800000000root/usr/share/man/man10707010005709a000081a4000000000000000000000001436a072b00000d9b000000660000000000000000000000000000002400000000root/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!!!