/*
 * $Revision: /main/PULSAR/10 $
 * $Date: 1998/07/24 16:47 UTC $
 */
Application "Remote Power On"
{
    Description {
	"HP OpenView",
 	"This operation provides the ability to bring a system to ",
	"a fully-powered state from a reduced-power state by sending ",
	"a special network packet to the system."
    }

    DisplayString "Remote Power On ";
    
    Version "NNM Release B.06.01  Apr 09 1999";

    Copyright {
	"Copyright (c) 1990-1999 Hewlett-Packard Company",
	"All rights reserved"
    }

    /*
     * Use -Shared so that only one instance of the process is executed.
     */
    Command -Shared "xnmappmon";


    MenuBar "Tools"  _T
    {
     	<100>	"Remote Power On"	_w	f.menu "WakeUp Opt";
    }

    Menu "WakeUp Opt"
    {
        "Power On"		CONTEXT "AllContexts || isIP || isIPX" f.action "wakeup";
	"Power On and Ping"	CONTEXT "AllContexts || isIP || isIPX" f.action "wakeup_confirm";
    }

    Action "wakeup" {
	MinSelected 1;
	SelectionRule	(isNode || isInterface) && (isIP || isIPX);
	CallbackArgs "-helpBrowser ovw:poweron \
                      -appendSelectList -appendSelectListToTitle \
	              -singleDialog \
                      -headingLine 1 -commandTitle \"Power On\" \
                      -iconName \"Remote Power On\" \
                      -cmd remotepoweron" 

    }

    Action "wakeup_confirm" {
	MinSelected 1;
	SelectionRule	(isNode || isInterface) && (isIP || isIPX);
	CallbackArgs "-helpBrowser ovw:poweronping \
                      -appendSelectList -appendSelectListToTitle \
	              -singleDialog \
                      -headingLine 1 -commandTitle \"Power On and Ping\" \
                      -iconName \"Power On and Ping\" \
                      -cmd remotepoweron -c" 


    }

    
}
