| Line 17... |
Line 17... |
| 17 |
<!--#include file="common/qstr.asp"-->
|
17 |
<!--#include file="common/qstr.asp"-->
|
| 18 |
<!--#include file="common/common_subs.asp"-->
|
18 |
<!--#include file="common/common_subs.asp"-->
|
| 19 |
<!--#include file="common/_form_window_common.asp"-->
|
19 |
<!--#include file="common/_form_window_common.asp"-->
|
| 20 |
<!--#include file="_action_buttons.asp"-->
|
20 |
<!--#include file="_action_buttons.asp"-->
|
| 21 |
<!--#include file="class/classActionButtonControl.asp"-->
|
21 |
<!--#include file="class/classActionButtonControl.asp"-->
|
| - |
|
22 |
<!--#include file="common/daemon_instructions.asp"-->
|
| 22 |
<%
|
23 |
<%
|
| 23 |
' Set rfile parameter. This is a return page after Login
|
24 |
' Set rfile parameter. This is a return page after Login
|
| 24 |
Call objPMod.StoreParameter ( "rfile", "rtree.asp" )
|
25 |
Call objPMod.StoreParameter ( "rfile", "rtree.asp" )
|
| 25 |
objPMod.PersistInQryString("proj_id")
|
26 |
objPMod.PersistInQryString("proj_id")
|
| 26 |
'------------ ACCESS CONTROL ------------------
|
27 |
'------------ ACCESS CONTROL ------------------
|
| Line 406... |
Line 407... |
| 406 |
<td valign="top" nowrap background="images/bg_table_col.gif" class="body_col">Hostname</td>
|
407 |
<td valign="top" nowrap background="images/bg_table_col.gif" class="body_col">Hostname</td>
|
| 407 |
<td valign="top" nowrap background="images/bg_table_col.gif" class="body_col">GBE Machtype</td>
|
408 |
<td valign="top" nowrap background="images/bg_table_col.gif" class="body_col">GBE Machtype</td>
|
| 408 |
<td valign="top" nowrap background="images/bg_table_col.gif" class="body_col">Mode</td>
|
409 |
<td valign="top" nowrap background="images/bg_table_col.gif" class="body_col">Mode</td>
|
| 409 |
<td valign="top" nowrap background="images/bg_table_col.gif" class="body_col">Run Level</td>
|
410 |
<td valign="top" nowrap background="images/bg_table_col.gif" class="body_col">Run Level</td>
|
| 410 |
<td valign="top" nowrap background="images/bg_table_col.gif" class="body_col">Current Package</td>
|
411 |
<td valign="top" nowrap background="images/bg_table_col.gif" class="body_col">Current Package</td>
|
| - |
|
412 |
<td valign="top" nowrap background="images/bg_table_col.gif" class="body_col">Last Change<br>Delta (secs)</td>
|
| 411 |
<td valign="top" nowrap background="images/bg_table_col.gif" class="body_col">Switch State</td>
|
413 |
<td valign="top" nowrap background="images/bg_table_col.gif" class="body_col">Switch State</td>
|
| 412 |
</tr>
|
414 |
</tr>
|
| 413 |
<%
|
415 |
<%
|
| 414 |
' Get the number of release configurations for this RTAG_ID, and iterate through them
|
416 |
' Get the number of release configurations for this RTAG_ID, and iterate through them
|
| 415 |
query_string = " select * from release_config rc, gbe_machtype gm"&_
|
417 |
query_string = " select * from release_config rc, gbe_machtype gm"&_
|
| Line 425... |
Line 427... |
| 425 |
Dim pkgName
|
427 |
Dim pkgName
|
| 426 |
Dim currentRunLevel
|
428 |
Dim currentRunLevel
|
| 427 |
|
429 |
|
| 428 |
' For this release configuration, get its entry from the run_level table. This table may not
|
430 |
' For this release configuration, get its entry from the run_level table. This table may not
|
| 429 |
' have an entry so we must handle that outcome too.
|
431 |
' have an entry so we must handle that outcome too.
|
| - |
|
432 |
query_string = " select rl.pause, rl.current_run_level, rl.current_pkg_id_being_built, "&_
|
| - |
|
433 |
" TRUNC (86400*(SYSDATE - rl.KEEP_ALIVE)) as delta" &_
|
| 430 |
query_string = " select * from run_level rl"&_
|
434 |
" from run_level rl"&_
|
| 431 |
" where rl.rcon_id = "& rcon_id
|
435 |
" where rl.rcon_id = "& rcon_id
|
| 432 |
|
436 |
|
| 433 |
Set rsQry2 = OraDatabase.DbCreateDynaset( query_string, ORADYN_DEFAULT )
|
437 |
Set rsQry2 = OraDatabase.DbCreateDynaset( query_string, ORADYN_DEFAULT )
|
| 434 |
|
438 |
|
| 435 |
currentRunLevel = -1
|
439 |
currentRunLevel = -1
|
| Line 465... |
Line 469... |
| 465 |
<td nowrap class="body_rowg"><%=rsQry("daemon_hostname")%></td>
|
469 |
<td nowrap class="body_rowg"><%=rsQry("daemon_hostname")%></td>
|
| 466 |
<td nowrap class="body_rowg"><%=rsQry("gbe_value")%></td>
|
470 |
<td nowrap class="body_rowg"><%=rsQry("gbe_value")%></td>
|
| 467 |
<td nowrap class="body_rowg"><%=Get_Daemon_Mode(rsQry("daemon_mode"))%></td>
|
471 |
<td nowrap class="body_rowg"><%=Get_Daemon_Mode(rsQry("daemon_mode"))%></td>
|
| 468 |
<td nowrap class="body_rowg"><%=Get_Run_Level(currentRunLevel, indefinitelyPaused)%></td>
|
472 |
<td nowrap class="body_rowg"><%=Get_Run_Level(currentRunLevel, indefinitelyPaused)%></td>
|
| 469 |
<td nowrap class="body_rowg"><%=Get_Package_Name(pkgName)%></td>
|
473 |
<td nowrap class="body_rowg"><%=Get_Package_Name(pkgName)%></td>
|
| - |
|
474 |
<td nowrap class="body_rowg"><%=rsQry2("delta")%></td>
|
| 470 |
<td nowrap class="body_rowg">
|
475 |
<td nowrap class="body_rowg">
|
| 471 |
<%
|
476 |
<%
|
| 472 |
If (rsQry2.RecordCount > 0) AND NOT indefinitelyPaused Then
|
477 |
If (rsQry2.RecordCount > 0) AND NOT indefinitelyPaused Then
|
| 473 |
If objAccessControl.UserLogedIn Then
|
478 |
If objAccessControl.UserLogedIn Then
|
| 474 |
If IsNull(rsQry2("pause")) Then
|
479 |
If IsNull(rsQry2("pause")) Then
|
| Line 511... |
Line 516... |
| 511 |
<td background="images/lbox_bg_blue.gif" valign="bottom"><img src="images/lbox_bl_cnr_b.gif" width="13" height="13"></td>
|
516 |
<td background="images/lbox_bg_blue.gif" valign="bottom"><img src="images/lbox_bl_cnr_b.gif" width="13" height="13"></td>
|
| 512 |
<td background="images/lbox_bg_blue.gif"></td>
|
517 |
<td background="images/lbox_bg_blue.gif"></td>
|
| 513 |
<td background="images/lbox_bg_blue.gif" valign="bottom" align="right"><img src="images/lbox_br_cnr_b.gif" width="13" height="13"></td>
|
518 |
<td background="images/lbox_bg_blue.gif" valign="bottom" align="right"><img src="images/lbox_br_cnr_b.gif" width="13" height="13"></td>
|
| 514 |
</tr>
|
519 |
</tr>
|
| 515 |
</table>
|
520 |
</table>
|
| - |
|
521 |
|
| - |
|
522 |
<table width="10" border="0" cellspacing="0" cellpadding="0">
|
| - |
|
523 |
<tr>
|
| - |
|
524 |
<td width="1%"></td>
|
| - |
|
525 |
<td width="100%">
|
| - |
|
526 |
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
| - |
|
527 |
<tr>
|
| - |
|
528 |
<td nowrap class="form_ttl"><p> </p>
|
| - |
|
529 |
<p>DAEMON INSTRUCTIONS FOR THIS RELEASE</p>
|
| - |
|
530 |
</td>
|
| - |
|
531 |
<td align="right" valign="bottom"></td>
|
| - |
|
532 |
</tr>
|
| - |
|
533 |
</table>
|
| - |
|
534 |
</td>
|
| - |
|
535 |
<td width="1%"></td>
|
| - |
|
536 |
</tr>
|
| - |
|
537 |
<tr>
|
| - |
|
538 |
<td align="left" valign="top" background="images/lbox_bg_blue.gif"><img src="images/lbox_tl_cnr_b.gif" width="13" height="13"></td>
|
| - |
|
539 |
<td background="images/lbox_bg_blue.gif" class="lbox_ttl_w"><img src="images/h_trsp_dot.gif" width="600" height="15"></td>
|
| - |
|
540 |
<td align="right" valign="top" background="images/lbox_bg_blue.gif"><img src="images/lbox_tr_cnr_b.gif" width="13" height="13"></td>
|
| - |
|
541 |
</tr>
|
| - |
|
542 |
<tr>
|
| - |
|
543 |
<td bgcolor="#FFFFFF"><img src="images/h_trsp_dot.gif" width="10" height="100"></td>
|
| - |
|
544 |
<td bgcolor="#FFFFFF" valign="top">
|
| - |
|
545 |
<table width="100%" border="0" cellspacing="2" cellpadding="0">
|
| - |
|
546 |
<tr>
|
| - |
|
547 |
<td align="left" nowrap background="images/bg_table_col.gif" class="body_col">OPERATION</td>
|
| - |
|
548 |
<td align="left" nowrap background="images/bg_table_col.gif" class="body_col">PACKAGE</td>
|
| - |
|
549 |
<td align="left" nowrap background="images/bg_table_col.gif" class="body_col">VERSION</td>
|
| - |
|
550 |
<td align="left" nowrap background="images/bg_table_col.gif" class="body_col">SCHEDULED TIME<br>(<SPAN style=color:Red>Red</SPAN> = overdue)<br>(<SPAN style=color:Green>Green</SPAN> = ready)</td>
|
| - |
|
551 |
<td align="left" nowrap background="images/bg_table_col.gif" class="body_col">REPEAT</td>
|
| - |
|
552 |
<td align="left" nowrap background="images/bg_table_col.gif" class="body_col">IN PROGRESS</td>
|
| - |
|
553 |
</tr>
|
| - |
|
554 |
<%
|
| - |
|
555 |
Dim PkgId
|
| - |
|
556 |
Dim PkgVersion
|
| - |
|
557 |
Dim UserName
|
| - |
|
558 |
Dim UserEmail
|
| - |
|
559 |
Dim bInProgress
|
| - |
|
560 |
Dim bIsOverdue
|
| - |
|
561 |
Dim bIsReady
|
| - |
|
562 |
|
| - |
|
563 |
Set rsQry = OraDatabase.DbCreateDynaset( "SELECT DAEMON_INSTRUCTIONS_ID,"&_
|
| - |
|
564 |
" OP_CODE,"&_
|
| - |
|
565 |
" RTAG_ID,"&_
|
| - |
|
566 |
" PV_ID,"&_
|
| - |
|
567 |
" SCHEDULED_DATETIME,"&_
|
| - |
|
568 |
" REPEAT_SECS,"&_
|
| - |
|
569 |
" ADDED_DATETIME,"&_
|
| - |
|
570 |
" USER_ID,"&_
|
| - |
|
571 |
" IN_PROGRESS,"&_
|
| - |
|
572 |
" (CASE WHEN SCHEDULED_DATETIME <= SYSDATE THEN 1 ELSE 0 END) AS READY,"&_
|
| - |
|
573 |
" (CASE WHEN (SCHEDULED_DATETIME + (1/144)) < SYSDATE THEN 1 ELSE 0 END) AS OVERDUE"&_
|
| - |
|
574 |
" FROM DAEMON_INSTRUCTIONS "&_
|
| - |
|
575 |
" WHERE RTAG_ID = "& parRtagId &_
|
| - |
|
576 |
" ORDER BY PV_ID, SCHEDULED_DATETIME, DAEMON_INSTRUCTIONS_ID", ORADYN_DEFAULT )
|
| - |
|
577 |
While (NOT rsQry.BOF) AND (NOT rsQry.EOF)
|
| - |
|
578 |
|
| - |
|
579 |
If IsNull(rsQry("IN_PROGRESS")) OR rsQry("IN_PROGRESS") = "0" Then
|
| - |
|
580 |
bInProgress = False
|
| - |
|
581 |
Else
|
| - |
|
582 |
bInProgress = True
|
| - |
|
583 |
End If
|
| - |
|
584 |
|
| - |
|
585 |
' only flag as overdue if time threshold has been met but the daemon has not marked the instruction as being in progress.
|
| - |
|
586 |
If rsQry("OVERDUE") AND NOT bInProgress Then
|
| - |
|
587 |
bIsOverdue = True
|
| - |
|
588 |
Else
|
| - |
|
589 |
bIsOverdue = False
|
| - |
|
590 |
End If
|
| - |
|
591 |
|
| - |
|
592 |
If rsQry("READY") Then
|
| - |
|
593 |
bIsReady = True
|
| - |
|
594 |
Else
|
| - |
|
595 |
bIsReady = False
|
| - |
|
596 |
End If
|
| - |
|
597 |
|
| - |
|
598 |
' Get as much info about the package as we can
|
| - |
|
599 |
PkgId = 0
|
| - |
|
600 |
PkgName = "N/A"
|
| - |
|
601 |
PkgVersion = "N/A"
|
| - |
|
602 |
If (NOT IsNull(rsQry("PV_ID"))) AND (rsQry("PV_ID") <> "") Then
|
| - |
|
603 |
Call Get_Pkg_Short_Info(rsQry("PV_ID"), PkgId, PkgName, PkgVersion, NULL, NULL, NULL)
|
| - |
|
604 |
End If
|
| - |
|
605 |
|
| - |
|
606 |
%>
|
| - |
|
607 |
<tr>
|
| - |
|
608 |
|
| - |
|
609 |
<td align="left" valign="top" class="body_txt">
|
| - |
|
610 |
<%=DaemonInstructionOperationName(rsQry("OP_CODE"))%>
|
| - |
|
611 |
</td>
|
| - |
|
612 |
|
| - |
|
613 |
<td align="left" valign="top" class="body_txt">
|
| - |
|
614 |
<%If (NOT IsNull(rsQry("PV_ID"))) AND (rsQry("PV_ID") <> "") Then%>
|
| - |
|
615 |
<a href='fixed_issues.asp?rtag_id=<%=rsQry("RTAG_ID")%>&pv_id=<%=rsQry("PV_ID")%>'><%=PkgName%>
|
| - |
|
616 |
<%Else%>
|
| - |
|
617 |
<%=PkgName%>
|
| - |
|
618 |
<%End If%>
|
| - |
|
619 |
</td>
|
| - |
|
620 |
|
| - |
|
621 |
<td align="left" valign="top" class="body_txt">
|
| - |
|
622 |
<%=PkgVersion%>
|
| - |
|
623 |
</td>
|
| - |
|
624 |
|
| - |
|
625 |
<td align="left" valign="top" class="body_txt" <%If bIsOverdue Then%>style=color:Red<%Elseif bIsReady Then%>style=color:Green<%End If%>><%=EuroDateTime(rsQry("SCHEDULED_DATETIME"))%></td>
|
| - |
|
626 |
|
| - |
|
627 |
<td align="left" valign="top" class="body_txt"><%=DaemonInstructionRepeatString(rsQry("OP_CODE"), rsQry("REPEAT_SECS"))%></td>
|
| - |
|
628 |
|
| - |
|
629 |
<td align="left" valign="top" class="body_txt">
|
| - |
|
630 |
<%If bInProgress Then%>
|
| - |
|
631 |
YES
|
| - |
|
632 |
<%Else%>
|
| - |
|
633 |
NO
|
| - |
|
634 |
<%End If%>
|
| - |
|
635 |
</td>
|
| - |
|
636 |
</tr>
|
| - |
|
637 |
<tr>
|
| - |
|
638 |
<td colspan="6" background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
| - |
|
639 |
</tr>
|
| - |
|
640 |
<%
|
| - |
|
641 |
rsQry.MoveNext()
|
| - |
|
642 |
Wend
|
| - |
|
643 |
rsQry.Close()
|
| - |
|
644 |
Set rsQry = nothing
|
| - |
|
645 |
%>
|
| - |
|
646 |
</table>
|
| - |
|
647 |
</td>
|
| - |
|
648 |
<td background="images/lbox_bgside_white.gif"> </td>
|
| - |
|
649 |
</tr>
|
| - |
|
650 |
<tr>
|
| - |
|
651 |
<td background="images/lbox_bg_blue.gif" valign="bottom"><img src="images/lbox_bl_cnr_b.gif" width="13" height="13"></td>
|
| - |
|
652 |
<td background="images/lbox_bg_blue.gif"></td>
|
| - |
|
653 |
<td background="images/lbox_bg_blue.gif" valign="bottom" align="right"><img src="images/lbox_br_cnr_b.gif" width="13" height="13"></td>
|
| - |
|
654 |
</tr>
|
| - |
|
655 |
</table>
|
| - |
|
656 |
|
| 516 |
</td>
|
657 |
</td>
|
| 517 |
<td width="1" valign="top"><img src="images/h_trsp_dot.gif" width="1" height="1"></td>
|
658 |
<td width="1" valign="top"><img src="images/h_trsp_dot.gif" width="1" height="1"></td>
|
| 518 |
</tr>
|
659 |
</tr>
|
| 519 |
<tr>
|
660 |
<tr>
|
| 520 |
<td valign="bottom" align="center" background="images/bg_home_orange.gif"><img src="images/img_vtree.gif" width="86" height="99" vspace="20" hspace="30"></td>
|
661 |
<td valign="bottom" align="center" background="images/bg_home_orange.gif"><img src="images/img_vtree.gif" width="86" height="99" vspace="20" hspace="30"></td>
|