<?xml version = '1.0' encoding = 'UTF-8'?>

<ctrl:page xmlns="http://bali.us.oracle.com/cabo/baja"
      xmlns:baja="http://bali.us.oracle.com/cabo/baja" 
      xmlns:marlin="http://bali.us.oracle.com/cabo/marlin"
      xmlns:uix="http://bali.us.oracle.com/cabo/marlin"
      xmlns:html="http://www.w3.org/TR/REC-html40"
      xmlns:ctrl="http://xmlns.oracle.com/uix/controller"      
      xmlns:data="http://bali.us.oracle.com/cabo/marlin">

  <!-- Title -->
  <baja:head xmlns="http://bali.us.oracle.com/cabo/marlin"
             xmlns:uix="http://bali.us.oracle.com/cabo/marlin"
             xmlns:html="http://www.w3.org/TR/REC-html40">
    <dataScope>
      <contents>
        <html:title>
          <text data:text="title@uiData" />
        </html:title>
       </contents>
       <provider>
	  <data name="uiData">
	    <method class="oracle.sysman.eml.ecm.ui.EcmUIUtil"
                  method="getUIDataObject"/>
        </data>	  	
       </provider>
    </dataScope>
  </baja:head>


  <baja:content xmlns="http://bali.us.oracle.com/cabo/marlin">
    <dataScope>

      <contents>











        <!-- pageLayout xmlns="http://bali.us.oracle.com/cabo/marlin" -->

	<include baja:node="../../em2go/em2goGlobalBanner"/>                


		<!--contents  -->
		
		

       <rowLayout>
	<contents>
	 <flowLayout>
	  <contents>
	    <link data:text="header@hostInfoBasic"
                  data:destination="targetDest@hostInfoBasic"/>                                    
	  </contents>
	 </flowLayout>
	</contents>
       </rowLayout>                                        

		
		
		
		<form name="os_command">


                  
                  
	   <contents>                   
                  
		                <formValue name="hostSitemapChoice" value="osComm"/>                                    
                  
                  
                  
            <styledText styleClass="OraHeaderSubSub" 
			   text="OS Commands"/>       


                    <textInput name="commandString"
                                   data:text="osCommand@ctrl:httpSession"
                                   columns="60"
                                   rows="3"/>


                <rowLayout>
                <contents>
                <switcher data:childName="showResult@ctrl:httpSession">                       
                <case name="no">  
                <stackLayout>
                    <contents>
                          
                    <styledText styleClass="OraInlineInfoText" text="You can enter more than one command seperated by ;"/>                   
             
                    </contents>
                  </stackLayout>
                    </case>
                    </switcher>
                </contents>
                </rowLayout>
                <rowLayout>
                <contents>
                 <submitButton text="Clear"  name="event" value="clear" /> 
	              <submitButton text="Execute"  name="event" value="apply" /> 
              
                </contents>
                </rowLayout>

                       
            <switcher data:childName="Output3@ctrl:httpSession">
              <case name="?">
	        <styledText styleClass="OraDataText" text="Error in script" />
              </case>
            </switcher>                       
                       
                       

                       
            <switcher data:childName="showResult@ctrl:httpSession">                       
              <case name="yes">  
                <stackLayout>
                  <contents>
                                      
                    <styledText styleClass="OraHeaderSubSub" 
			   text="Output"/>                   


                    <rowLayout>
                      <contents>
                        <rawText data:text="rawtextResult@ctrl:httpSession"/>
                      </contents>
                    </rowLayout>

                  </contents>
                </stackLayout>
              </case>
            </switcher>                       
            
                       


              
                  
	   	   </contents>                   
                  
                  
                  

             </form>
           <!-- /contents -->
    <!-- /pageLayout -->
    
    
	<include baja:node="../../em2go/em2goGlobalFooter"/>                                
    
    
  </contents>



      <provider>
      
        <data name="hostInfoBasic">
          <method class="oracle.sysman.eml.mntr.host.em2go.HostOverviewDataObjectEm2go"
                  method="getHostOverviewLink"/>
        </data>        

      </provider>

    </dataScope>
  </baja:content>

  <handlers>

   <event name="apply">
      <method class="oracle.sysman.eml.mntr.host.em2go.HostOverviewDataObjectEm2go"
              method="doChoice"/>
    </event>  

  <event name="clear">
      <method class="oracle.sysman.eml.mntr.host.em2go.HostOverviewDataObjectEm2go"
              method="doClear"/>
    </event>  
  </handlers>

</ctrl:page>


