Subversion Repositories DevTools

Rev

Rev 3611 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
3610 dpurdie 1
<%@LANGUAGE="VBSCRIPT"%>
2
<%
3
'=====================================================
4
'|                                                   |
5
'|                ADMIN Page                         |
6
'|               Build Service                       |
7
'|                                                   |
8
'=====================================================
9
%>
10
<%
11
Option explicit
12
' Good idea to set when using redirect
13
Response.Expires = 0   ' always load the page, dont store
14
%>
15
<!--#include file="common/conf.asp"-->
16
<!--#include file="common/globals.asp"-->
17
<!--#include file="common/formating.asp"-->
18
<!--#include file="common/qstr.asp"-->
19
<!--#include file="common/common_subs.asp"-->
20
<!--#include file="sec/Crypt.asp"-->
21
<!--#include file="common/_form_window_common.asp"-->
22
<!--#include file="_action_buttons.asp"-->
23
 
24
<!--#include file="class/classActionButtonControl.asp"-->
25
 
26
<%
27
'------------ ACCESS CONTROL ------------------
28
%>
29
<!--#include file="_access_control_general.asp"-->
30
<%
31
'------------ Variable Definition -------------
32
Dim objBtnControl
33
Dim Query_String
34
Dim rsTemp
35
Dim scheduled_id
36
'------------ Constants Declaration -----------
37
'------------ Variable Init -------------------
38
Set objBtnControl = New ActionButtonControl
39
'----------------------------------------------
3866 dpurdie 40
 
41
function testFromRegistry (strRegistryKey )
42
    Dim WSHShell, value
43
 
44
    On Error Resume Next
45
    Set WSHShell = CreateObject("WScript.Shell")
46
    value = WSHShell.RegRead( strRegistryKey )
47
 
48
    testFromRegistry = NOT (err.number <> 0)
49
 
50
    set WSHShell = nothing
51
end function                
3610 dpurdie 52
%>
53
 
54
<html>
55
<head>
56
 
57
<title>Admin Test Page</title>
58
 
59
<meta HTTP-EQUIV="Pragma" CONTENT="no-cache">
60
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
61
<link rel="stylesheet" href="images/release_manager_style.css" type="text/css">
62
<link rel="stylesheet" href="images/navigation.css" type="text/css">
63
<script language="JavaScript" src="images/common.js"></script>
64
<!-- DROPDOWN MENUS -->
65
<!--#include file="_menu_def.asp"-->
66
<script language="JavaScript1.2" src="images/popup_menu.js"></script>
67
</head>
68
 
69
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" >
70
<!-- MENU LAYERS -------------------------------------->
71
<div id="popmenu" class="menuskin" onMouseover="clearhidemenu();highlightmenu(event,'on')" onMouseout="highlightmenu(event,'off');dynamichide(event)">
72
</div>
73
<!-- TIPS LAYERS -------------------------------------->
74
<div id="formTipsLayer" style="position: absolute; z-index: 1000; visibility: hidden; left:0; top: 0; width: 10">&nbsp;</div>
75
<!-- HEADER -->
76
<!--#include file="_header.asp"-->
77
 
78
   <%
79
   '-- FROM START ---------------------------------------------------------------------------------------------------------
80
   %>
81
   <tr>
82
      <td background="images/bg_login.gif">
83
         <table width="100%"  border="0" cellspacing="0" cellpadding="0">
84
            <tr>
85
               <td><%=ProgressBar%></td>
86
               <td align="right">&nbsp;          </td>
87
            </tr>
88
         </table>
89
      </td>
90
   </tr>
91
   <tr>
92
      <td>
3611 dpurdie 93
         <table style="margin-left:auto; margin-right:auto; width:50%"  border="0" cellpadding="0" cellspacing="2" bgcolor="#FFCC00">
3610 dpurdie 94
            <!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
95
            <tr>
3611 dpurdie 96
               <td valign="top" nowrap class="body_col">Test</td>
97
               <td valign="top" nowrap class="body_col">Result</td>
3610 dpurdie 98
            </tr>
99
 
100
            <!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
101
            <tr>
3611 dpurdie 102
               <td valign="top" nowrap background="images/bg_table_col.gif" class="body_col">DataBase Name</td>
103
               <td valign="top" nowrap background="images/bg_table_col.gif" class="body_col"><%=OraDatabase.DatabaseName%></td>
104
            </tr>
105
 
106
            <!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
107
            <tr>
108
               <td valign="top" nowrap background="images/bg_table_col.gif" class="body_col">Archive Server</td>
109
               <td valign="top" nowrap background="images/bg_table_col.gif" class="body_col"><%=archive_server%></td>
110
            </tr>
111
 
112
            <!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
113
            <tr>
3610 dpurdie 114
               <td valign="top" nowrap background="images/bg_table_col.gif" class="body_col">Package Archive Access - Map File System</td>
115
            <%
116
 
117
            Dim objWSH,rv,result
118
            Set objWSH = Server.CreateObject("WScript.Shell")
119
            rv = objWSH.Run ("cmd.exe /c cscript.exe //B //NoLogo " & rootPath & SCRIPTS_FOLDER & "\Admin_Tools.wsf //job:onTestMapArchive", 0, TRUE)
120
            Set objWSH = Nothing
121
            If rv = 0 Then
122
                result = "OK"
123
            Else
124
                result = "Error ("&rv&")"
125
            End IF
126
 
127
            %>
128
               <td valign="top" nowrap background="images/bg_table_col.gif" class="body_col"><%=result%></td>
129
            </tr>
3866 dpurdie 130
 
131
            <!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
132
            <tr>
133
            <%
134
                Dim sKey1, sKey2, sValue1, sValue2, kFragment
135
                kFragment = "rsa2@22:" & archive_server
136
                sKey1 = "HKEY_USERS\S-1-5-20\Software\SimonTatham\PuTTY\SshHostKeys\" & kFragment
137
                sKey2 = "HKEY_USERS\.DEFAULT\Software\SimonTatham\PuTTY\SshHostKeys\" & kFragment
138
                sValue1 = testFromRegistry(sKey1)
139
                sValue2 = testFromRegistry(sKey2)
140
            %>
141
               <td valign="top" nowrap background="images/bg_table_col.gif" class="body_col">Plink Key [<%=sKey1%>]</td>
142
               <td valign="top" nowrap background="images/bg_table_col.gif" class="body_col"><%=sValue1%></td>
143
            </tr>
144
            <tr>
145
               <td valign="top" nowrap background="images/bg_table_col.gif" class="body_col">Plink Key [<%=sKey2%>]</td>
146
               <td valign="top" nowrap background="images/bg_table_col.gif" class="body_col"><%=sValue2%></td>
147
            </tr>
3610 dpurdie 148
 
149
            <!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
150
            <tr>
151
               <td valign="top" nowrap background="images/bg_table_col.gif" class="body_col">Package Archive Access - Remote cmd execution</td>
152
            <%
153
 
154
            Set objWSH = Server.CreateObject("WScript.Shell")
155
            rv = objWSH.Run ("cmd.exe /c cscript.exe //B //NoLogo " & rootPath & SCRIPTS_FOLDER & "\Admin_Tools.wsf //job:onTestArchiveAccess", 0, TRUE)
156
            Set objWSH = Nothing
157
            If rv = 0 Then
158
                result = "OK"
159
            Else
160
                result = "Error ("&rv&")"
161
            End IF
162
 
163
            %>
164
               <td valign="top" nowrap background="images/bg_table_col.gif" class="body_col"><%=result%></td>
165
            </tr>
3611 dpurdie 166
 
3610 dpurdie 167
            <!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
168
            <tr>
169
               <td valign="top" nowrap class="body_col">End of Tests</td>
170
               <td><a class="form_btn" href="admin_build_test_page.asp?rtag_id" title="Refresh Page">Refresh</a></td>
171
            </tr>
172
 
173
         </table>
174
      </td>
175
  </tr>
176
  <input type="hidden" name="action" value="true">
3611 dpurdie 177
  <p>
3610 dpurdie 178
</body>
179
</html>
180
<!-- FOOTER -->
181
<!--#include file="_footer.asp"-->
182
<%
183
Call Destroy_All_Objects
184
%>