forked from psteiwer/DeepSeeButtons
-
Notifications
You must be signed in to change notification settings - Fork 0
/
DeepSeeButtons.xml
executable file
·3785 lines (3664 loc) · 136 KB
/
DeepSeeButtons.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<?xml version="1.0" encoding="UTF-8"?>
<Export generator="Cache" version="25" zv="Cache for UNIX (SUSE Linux Enterprise Server for x86-64) 2017.2.1 (Build 801)" ts="2018-06-08 16:03:03">
<Routine name="DeepSeeButtons" type="MAC" languagemode="0" timestamp="64807,57580.995057"><![CDATA[
DeepSeeButtons(namespace="ask", cubeString="ask", getLogs="", LogFile="", tracking="")
#include %occConstant
;DeepSeeButtons: routine to log system and DeepSee information
;Install it in the %SYS namespace and launch it as:
;%SYS> Do ^DeepSeeButtons
;
;You can use the following optional arguments:
;namespace: namespace where this routine will run, e.g. "SAMPLES". If "" the current namespace will be chosen
;cubeString: comma separated list of cubes, e.g. "patients,holefoods", "ALL", or "" for no cubes at all
;getLogs: ""/0/1/anything to ask to/do not/do/do not include cconsole.log, Query Log, and DeepSee logs, respectively
;LogFile: output file. By default the output file will be stored in the /mgr directory
;tracking: Used by the UI in SMP to log into ^IRIS.Temp.DeepSeeButtonsTrack and track this routine
;
;Example using arguments:
;Do ^DeepSeeButtons("SAMPLES","PATIENTS",1,"/home/amarin/Desktop/DSbuttons.html",0)
;
;
;DeepSee Buttons includes the following general information
; 1) DeepSee Setup
; -Agent Count and cores
; -DeepSee.AuditCode, DeepSee.AuditQueryCode
; -Most recent activity in Cube manager
; -Config section of cpf file
; -Important mappings
; -Server Initialization Code
; -Deepsee enabled webapps
; 2) Server Details
; -Configuration
; -Customer name
; -License
; -Fully Qualified Host Name
; -User and date
; -Cache startup
; -$ZV
; -Locale
; -Operating system
; -Disk space
; -RAM
; 3) Cubes in namespace
; -Cubes table with Cube Name, Display name, Source Class, Cube Class, Related Cubes, Related Cubes
; -Versioned cubes
; -Abstract cubes
; -Cubes with Source Classes Based on SQL Storage
; -Cubes Based on Data Connectors
; -Build Order for Related Cubes
; 4) Build/Synch
; -DSTIME
; -BuildSynchTable Table with Cube Name, Fact Count, Build Time, Build Rate, Build Errors, DSTIME,
; Last Compile, Last Build/Synch, Related Cubes
; -Build Errors
; 5) Cube Registry Map
; 6) Cube Info: Optional Extra data on a particular cube
; 6A) Cube Info: display name, cube type, subject area class, inherits from, resource, source class,
; fact class, caption, fact count,
; build restrictions (maxfacts, buildrestriction/filterspec property, %OnProcessFact, and %OnGetFilterSpec),
; last modified, DSTIME & DSINTERVAL, cube registry, build errors
; 6B) Dimensions: dimension list, ^DeepSee.CalcMbrs, %Analyze, FieldNameToSpec, %AnalyzeMissing
; 6C) Other Elements: Pivot variables, listing fields, listings, resources
; 7) Query Log
; -Number of users runnign queries
; -User and Queries run
; -^DeepSee.LastQuery
; -Last 5 queries run by each user
; 8) DeepSee Logs
; 9) CPF file (includes mappings)
; 10) cconsole.log
; 11) Mappings - Show global mappings in the namespace
; 12) Local Databases
; 13) Task schedule
; 14) Journaling
; 15) Alerts
StartDialog
New (namespace,cubeString,getLogs,LogFile,tracking)
Set origNS=$Namespace
Try {
Do:tracking WriteTrack("setup","Starting DeepSeeButtons","")
Set PDev=$Principal
Use PDev
Write !,"DeepSee Diagnostic Report Evidence Logging Tool"
Write !,"This reporting tool provides the information required for"
Write !,"InterSystems Technical Support to analyze DeepSee issues. "
Set namespace=$$GetNamespace(namespace)
Quit:namespace=""
Set cubeList=$$GetCubesToLog(cubeString,namespace,tracking)
//Later do not ask to confirm to proceed if anything was passed to getLogs argument
Set proceed=(getLogs'="")
Do:getLogs="" GetLogsConfirm
Do:'proceed ReadLogTypeConfirm
Quit:'proceed
Kill:tracking ^IRIS.Temp.DeepSeeButtonsTrack
Do LaunchLogs(namespace,cubeList,getLogs)
} Catch(ex) {
Set tSC = ex.AsStatus()
Set msg = $System.Status.GetErrorText(tSC)
Do:tracking WriteTrack("error","","",msg)
Use $Principal
Write !,msg
}
zn origNS
Quit
GetNamespace(namespace) {
//If namespace is "" choose the current namespace
If namespace="" {
Set namespace = $Namespace
Write !,"Running in namespace: "_namespace
}
//Ask user if the namespace variable is not given
Set:namespace="ask" namespace=""
Set namespace=$$ValidateNamespace(namespace) //Make sure input namespace exists
While namespace="" { //User didn't enter a namespace when calling routine
Write !!,"Type namespace ["_$Namespace_"]"
Read namespace
Set:namespace="" namespace = $Namespace
Set namespace=$$ValidateNamespace(namespace)
}
Quit namespace
}
GetCubesToLog(cubeString,namespace,tracking=0) {
If cubeString="ask" {
Set allcubeList=$$DialogCubes(namespace)
} ElseIf cubeString="" {
Set allcubeList=""
} ElseIf $LISTVALID(cubeString) {
Set allcubeList=cubeString
} ElseIf cubeString="ALL"{
Set cubeString=$$GetAllCubes(namespace)
Set allcubeList=$LFS(cubeString,",")
} Else {
Set allcubeList=$LFS(cubeString,",")
}
Set cubeList=$$VerifyInputCubes(allcubeList,namespace,tracking)
Quit cubeList
}
GetLogsConfirm
ZN "%SYS"
Write !, "Include cconsole.log, Query Log, and DeepSee Logs? [Y] "
Read getLogs
Set getLogs=$ZCONVERT(getLogs,"U")
If (getLogs="") {
Set getLogs=1 //If the user did not make a selection, add console and query logs
} ElseIf (getLogs="N")||(getLogs="NO") {
Set getLogs=0
} ElseIf (getLogs="Y")||(getLogs="YES") {
Set getLogs=1
} ElseIf (getLogs=+getLogs) {
//secret option: if getLogs is a number it controls the number of queries by user shown
//Just pass getLogs on
} Else {
Write !,"Please enter Y or N"
Set getLogs=""
Goto GetLogsConfirm
}
Quit
ReadLogTypeConfirm
Write !,"Continue? [Y] " Read LogType
Set LogType=$ZCONVERT(LogType,"U")
If ((LogType="NO")!(LogType="N")!(LogType="Q")!(LogType="QUIT")) {
Set proceed=0 }
ElseIf ((LogType="YES")!(LogType="Y")!(LogType="")) {
Set proceed=1
} Else {
Write !,"Please enter Y or N" Goto ReadLogTypeConfirm
}
Quit proceed
LaunchLogs(namespace,cubeList,getLogs)
Try {
Set CacheVerNumber=$System.Version.GetNumber()
If +CacheVerNumber<5 { //Do Quit Return
Set Message="*** Wrong version of Diagnostic Report utility ! ***"_$Char(13,10)_$Char(13,10)_"You are running on Cache "_
CacheVerNumber_" and this is the code for Cache 5.0 and later"
Use PDev Write:$X ! Write !,Message
Set Return="0|"_Message
Quit
}
Use PDev Write:$X !
Write "Collecting information, please do not interrupt this process.",!,"Do not close terminal until the process has completed"
Break 0
Set EOF=$ZUtil(68,40)
//Start logging with the DeepSee Setup section
Set output=$$LogSections(cubeList,getLogs,LogFile)
If $E(output,1,5)="Error" {
Do:tracking WriteTrack("error","","",output_". Check your output path and permissions")
W !,output," Abort",!
Return
} Else {
Set LogFile = output
}
Set rc=$$$OK
If $ZUtil(68,40,EOF) //Reset $ZEOF to the original setting
Break 1
If LogFile="" { //Do Quit Return
Set Message="*** Log file could not be created in "_LogDirectory_". Check directory permissions. ***"
Use PDev Write:$X ! Write !,Message
Set Return="0|"_Message
Quit
}
Use PDev
Write:$X ! Write !,"DeepSeeButtons report saved to: ",!,LogFile
Write !,"Please send the html file above to InterSystems Support."
} Catch(ex) {
Set tSC = ex.AsStatus()
Do $System.Status.DisplayError(tSC)
Do:tracking WriteTrack("error","","",$System.Status.GetErrorText(tSC))
}
Quit
OpenLogFile(LogFile,FileOpenTimeOut) {
//Compared to ^Buttons the file is opened here, not in NewFile
Open LogFile:"RWNSK\UTF8\":FileOpenTimeOut
If '$Test Quit "Error opening file "_LogFile
Quit LogFile
}
LogSections(cubeList,getLogs,LogFile)
New (LogDirectory,namespace,cubeList,getLogs,LogFile,MgrDir,tracking)
Do Init
Set LogFile = $$InitLogFile
Set out = $$OpenLogFile(LogFile,FileOpenTimeOut)
If $E(out,1,5)="Error" Quit out
If OS?1"***".e Quit ""
Do LogHead(cubeList,getLogs)
Do LogOpenMainDiv
Do LogDeepSeeSetupSection //Note Ale: here rs.%Execute("") messes up my ZW in DumpToFile
Do LogServerSetup
Do LogCubeSection
Do LogBuildSynchSection
Do LogCubeRegistry
Do:(($D(cubeList)'=0) && (cubeList'="")) LogDetailedCubeInfo
Do:getLogs>0 LogQuerylog
Do:getLogs>0 LogDeepSeelog
Do LogCPF
Do:getLogs>0 LogCConsole
Do LogMappings
Do LogDataBases
Do LogTasks
Do LogJournal
Do LogAlerts
Do LogTrailer
Do LogSidePanel(cubeList,getLogs,$G(alerts,0))
Do LogCloseBody
ZN "%SYS"
Close LogFile
Quit LogFile
///Log* Helper functions that log the section of a DeepSeeButtons report
LogHead(cubeList,getLogs)
//Writes the Header record
Try {
New %DAT,%TIM,x //,Build
//Set x=$Text(+1),Build=$Piece(x,";",5),Build=$Piece(Build," ",2)
Set colspan=12 If OS="UNIX" Set colspan=13
Use LogFile
Do WriteLog("<!DOCTYPE html>")
Do WriteLog("<html>")
Do WriteLog("<head>")
Do WriteLog("<meta charset=""UTF-8"">")
Do WriteLog("<meta http-equiv=""Content-type"" content=""text/html; charset=UTF-8"">")
Do WriteLog("<title>",2)
Do WriteLog("DeepSee Diagnostic Log for "_CustomerName ,4)
Do WriteLog("</title>",2)
Do WriteLog("<meta http-equiv=""Content-Type"" content=""text/html; charset=UTF-8"">",2)
Do WriteLog("<script type=""text/javascript"">",2)
/// toggle function
Do WriteLog("function toggle(showHideDiv, switchTextDiv) {",4)
Do WriteLog("var ele = document.getElementById(showHideDiv);",6)
Do WriteLog("var text = document.getElementById(switchTextDiv);",6)
Do WriteLog("if(ele.style.display == ""block"") {",6)
Do WriteLog("ele.style.display = ""none"";",8)
Do WriteLog("text.innerHTML = ""▸ Expand"";",8)
Do WriteLog("}",6)
Do WriteLog("else {",6)
Do WriteLog("ele.style.display = ""block"";",8)
Do WriteLog("text.innerHTML = ""▾ Collapse"";",8)
Do WriteLog("}",6)
Do WriteLog("}",4)
/// openNav function
Do WriteLog("function openNav() {",4)
Do WriteLog("document.getElementById(""mySidenav"").style.width = ""200px"";",6)
Do WriteLog("document.getElementById(""main"").style.marginLeft = ""200px"";",6)
Do WriteLog("}",4)
Do WriteLog("function closeNav() {",4)
Do WriteLog("document.getElementById(""mySidenav"").style.width = ""0px"";",6)
Do WriteLog("document.getElementById(""main"").style.marginLeft= ""0px"";",6)
Do WriteLog("}",4)
/// highlightLink function
Do WriteLog("function highlightLink(obj, mousein) {",4)
Do WriteLog("bkg=(mousein ? 'rgb(68, 168, 223)' : '');",6)
Do WriteLog("color=(mousein ? 'white' : '');",6)
Do WriteLog("document.getElementById('l'+obj.id).style.background=bkg;",6)
Do WriteLog("document.getElementById('l'+obj.id).style.color=color;",6)
Do WriteLog("}",4)
/// sortTable function
Do WriteLog("function sortTable(elem,n,stringSort) {",4)
Do WriteLog("var table, rows, switching, i, x1, x2, shouldSwitch, dir, switchcount = 0;",6)
Do WriteLog("//Climb up the table structure to find the <table> element",6)
Do WriteLog("table = elem;",6)
Do WriteLog("while(table.tagName!=""TABLE"") {",6)
Do WriteLog("table = table.parentElement;",8)
Do WriteLog("}",6)
Do WriteLog("switching = true;",6)
Do WriteLog("//Set the sorting direction to ascending:",6)
Do WriteLog("dir = 'asc'; ",6)
Do WriteLog("while (switching) {",6)
Do WriteLog("switching = false;",8)
Do WriteLog("rows = table.getElementsByTagName('TR');",8)
Do WriteLog("//Loop through all table rows after the first",8)
Do WriteLog("for (i = 1; i < (rows.length - 1); i++) {",8)
Do WriteLog("shouldSwitch = false;",10)
Do WriteLog("//Get the two adjacent elements to be compared",10)
Do WriteLog("x1 = rows[i].getElementsByTagName('TD')[n].innerHTML;",10)
Do WriteLog("x2 = rows[i+1].getElementsByTagName('TD')[n].innerHTML;",10)
Do WriteLog("//Get sorting if undefined: string or number?",10)
Do WriteLog("if (typeof stringSort === 'undefined') {",10)
Do WriteLog("var stringSort = isNaN(x1) | isNaN(x2)",12)
Do WriteLog("}",10)
Do WriteLog("x1val = stringSort ? x1.toLowerCase() : +x1.replace(/,/g, '');",10)
Do WriteLog("x2val = stringSort ? x2.toLowerCase() : +x2.replace(/,/g, '');",10)
Do WriteLog("//When sorting numerically empty string or NA as -Infinity",10)
Do WriteLog("if ((!stringSort)&&((x1=='')||(x1=='NA'))) {",10)
Do WriteLog("x1val = -Infinity;",12)
Do WriteLog("}",10)
Do WriteLog("if ((!stringSort)&&((x2=='')||(x2=='NA'))) {",10)
Do WriteLog("x2val = -Infinity;",12)
Do WriteLog("}",10)
Do WriteLog("if (dir == 'asc') {",10)
Do WriteLog("if (x1val > x2val) {",12)
Do WriteLog("//Mark as a switch and break the loop",14)
Do WriteLog("shouldSwitch= true;",14)
Do WriteLog("break;",14)
Do WriteLog("}",12)
Do WriteLog("} else if (dir == 'desc') {",10)
Do WriteLog("if (x1val < x2val) {",12)
Do WriteLog("//Mark as a switch and break the loop",14)
Do WriteLog("shouldSwitch= true;",14)
Do WriteLog("break;",14)
Do WriteLog("}",12)
Do WriteLog("}",10)
Do WriteLog("}",8)
Do WriteLog("if (shouldSwitch) {",8)
Do WriteLog("//Make the switch when marked",10)
Do WriteLog("rows[i].parentNode.insertBefore(rows[i + 1], rows[i]);",10)
Do WriteLog("switching = true;",10)
Do WriteLog("switchcount ++; ",10)
Do WriteLog("} else {",8)
Do WriteLog("//If no switching AND dir = as,set dir to desc and rerun while loop",10)
Do WriteLog("if (switchcount == 0 && dir == 'asc') {",10)
Do WriteLog("dir = 'desc';",12)
Do WriteLog("switching = true;",12)
Do WriteLog("}",10)
Do WriteLog("}",8)
Do WriteLog("}",6)
Do WriteLog("//Show or remove the triangles",6)
Do WriteLog("console.log('Table: ',table.id,', Column: ',n,', Sorting: ',dir,stringSort?'string':'numeric')",6)
Do WriteLog("var ths = table.getElementsByTagName('TH')",6)
Do WriteLog("for (i = 0; i < ths.length; i++) {",6)
Do WriteLog("ths[i].innerHTML = ths[i].innerHTML.replace(' \u25B4','');",8)
Do WriteLog("ths[i].innerHTML = ths[i].innerHTML.replace(' \u25BE','');",8)
Do WriteLog("if (i == n) {",8)
Do WriteLog("ths[i].innerHTML = ths[i].innerHTML + ((dir == 'asc') ? ' ▾': ' ▴');",10)
Do WriteLog("}",8)
Do WriteLog("}",6)
Do WriteLog("}",4)
/// onload: call openNav to open the side panel
Do WriteLog("window.onload = openNav;",4)
Do WriteLog("</script>",2)
/// Style section
Do WriteLog("<style>",2)
Do WriteLog("pre {",4)
Do WriteLog("white-space: pre-wrap; /* css-3 */",6)
Do WriteLog("white-space: -moz-pre-wrap; /* Mozilla, since 1999 */",6)
Do WriteLog("white-space: -pre-wrap; /* Opera 4-6 */",6)
Do WriteLog("white-space: -o-pre-wrap; /* Opera 7 */",6)
Do WriteLog("word-wrap: break-word; /* Internet Explorer 5.5+ */",6)
Do WriteLog("}",4)
Do WriteLog(".sidenav {",4)
Do WriteLog("box-sizing: border-box;",6)
Do WriteLog("height: 100%;",6)
Do WriteLog("width: 0;",6)
Do WriteLog("resize: horizontal;",6)
Do WriteLog("position: fixed;",6)
Do WriteLog("z-index: 1;",6)
Do WriteLog("top: 0;",6)
Do WriteLog("left: 0;",6)
Do WriteLog("background-color: rgb(220,231,241);",6)
Do WriteLog("overflow-x: hidden;",6)
Do WriteLog("transition: 0.75s;",6)
Do WriteLog("padding-top: 60px;",6)
Do WriteLog("}",4)
Do WriteLog(".sidenav a {",4)
Do WriteLog("font-family: Arial, Helvetica, sans-serif;",6)
Do WriteLog("font-weight: bold;",6)
Do WriteLog("padding: 8px 8px 8px 8px;",6)
Do WriteLog("text-decoration: none;",6)
Do WriteLog("font-size: 20px;",6)
Do WriteLog("color: blue;",6)
Do WriteLog("display: block;",6)
Do WriteLog("transition: 0.3s;",6)
Do WriteLog("}",4)
Do WriteLog(".sidenav a:hover, .offcanvas a:focus{",4)
Do WriteLog("font-family: Arial, Helvetica, sans-serif;",6)
Do WriteLog("color: white;",6)
Do WriteLog("}",4)
Do WriteLog(".sidenav .closebtn {",4)
Do WriteLog("position: absolute;",6)
Do WriteLog("top: 0;",6)
Do WriteLog("right: 0px;",6)
Do WriteLog("font-size: 36px;",6)
Do WriteLog("margin-left: 50px;",6)
Do WriteLog("}",4)
Do WriteLog(".sidenav .red {",4)
Do WriteLog("color: red;",6)
Do WriteLog("}",4)
Do WriteLog("#main {",4)
Do WriteLog("transition: margin-left .5s;",6)
Do WriteLog("padding: 16px;",6)
Do WriteLog("}",4)
Do WriteLog("@media screen and (max-height: 450px) {",4)
Do WriteLog(".sidenav {padding-top: 15px;}",6)
Do WriteLog(".sidenav a {font-size: 18px;}",6)
Do WriteLog("}",4)
Do WriteLog(".sidenav .cubelinks {",4)
Do WriteLog("font-size: 14px;",6)
Do WriteLog("text-decoration: none;",6)
Do WriteLog("margin-left: 30px;",6)
Do WriteLog("}",4)
Do WriteLog(".trapezoid {",4)
Do WriteLog("top: 0px;",6)
Do WriteLog("width: 0px;",6)
Do WriteLog("left: 0px;",6)
Do WriteLog("opacity: 0.5;",6)
Do WriteLog("text-align: center;",6)
Do WriteLog("height: 25px; ",6)
Do WriteLog("position:fixed;",6)
Do WriteLog("border-top: 20px solid transparent;",6)
Do WriteLog("border-left: 25px solid rgb(185,207,227);",6)
Do WriteLog("border-bottom: 20px solid transparent;",6)
Do WriteLog("box-sizing: content-box;",6)
Do WriteLog("}",4)
Do WriteLog(".trapezoid span { ",4)
Do WriteLog("position: absolute;",6)
Do WriteLog("left: -20px;",6)
Do WriteLog("top: 15%;",6)
Do WriteLog("color: blue;",6)
Do WriteLog("}",4)
Do WriteLog(".trapezoid span:hover, .offcanvas a:focus{",4)
Do WriteLog("color: rgb(104,30,30);",6)
Do WriteLog("opacity: 0.1;",6)
Do WriteLog("}",4)
Do WriteLog(".zebraStriped tbody tr:nth-child(odd) {",4)
Do WriteLog("background-color: #ccc;",6)
Do WriteLog("border-right: 2px solid #D0D0D0;",6)
Do WriteLog("border-left: 2px solid #D0D0D0;",6)
Do WriteLog("border-bottom: 2px solid #D0D0D0;",6)
Do WriteLog("border-top: 2px solid #D0D0D0;",6)
Do WriteLog("}",4)
Do WriteLog(".zebraStriped td {",4)
Do WriteLog("border-right: 2px solid #D0D0D0;",6)
Do WriteLog("border-left: 2px solid #D0D0D0;",6)
Do WriteLog("border-bottom: 2px solid #D0D0D0;",6)
Do WriteLog("border-top: 2px solid #D0D0D0;",6)
Do WriteLog("}",4)
Do WriteLog(".scrollable {",4)
Do WriteLog("overflow:auto;",6)
Do WriteLog("resize:both;",6)
Do WriteLog("}",4)
Do WriteLog(".wrapped {",4)
Do WriteLog("white-space: -moz-pre-wrap; /* Mozilla, supported since 1999 */",6)
Do WriteLog("white-space: -pre-wrap; /* Opera */",6)
Do WriteLog("white-space: -o-pre-wrap; /* Opera */",6)
Do WriteLog("white-space: pre-wrap; /* CSS3 - Text module (Candidate Recommendation) http://www.w3.org/TR/css3-text/#white-space */",6)
Do WriteLog("word-wrap: break-word; /* IE 5.5+ */",6)
Do WriteLog("}",4)
Do WriteLog(".tableWithBorders {",4)
Do WriteLog("position: relative;",6)
Do WriteLog("visibility: visible;",6)
Do WriteLog("table-layout: fixed;",6)
Do WriteLog("padding: 0px;",6)
Do WriteLog("height: auto;",6)
Do WriteLog("font-family: Arial;",6)
Do WriteLog("border-collapse: collapse;",6)
Do WriteLog("border-right: 2px solid #D0D0D0;",6)
Do WriteLog("border-left: 2px solid #D0D0D0;",6)
Do WriteLog("border-bottom: 2px solid #D0D0D0;",6)
Do WriteLog("border-top: 2px solid #D0D0D0;",6)
Do WriteLog("}",4)
Do WriteLog(".tableWithBorders th {",4)
Do WriteLog("height: 22px;",6)
Do WriteLog("overflow: hidden;",6)
Do WriteLog("text-align: left;",6)
Do WriteLog("border-bottom: 2px solid #D0D0D0;",6)
Do WriteLog("}",4)
Do WriteLog(".tableWithBorders td {",4)
Do WriteLog("border-right: 1px solid #E8E8E8;",6)
Do WriteLog("border-bottom: 1px solid #E8E8E8;",6)
Do WriteLog("overflow: hidden;",6)
//Do WriteLog("word-wrap:break-word;",6)
//Do WriteLog("background: white;",6)
Do WriteLog("}",4)
Do WriteLog(".grey {",4)
Do WriteLog("background: #ccc;",6)
Do WriteLog("}",4)
Do WriteLog(".darkgrey {",4)
Do WriteLog("background: #7a7a7a",6)
Do WriteLog("}",4)
Do WriteLog(".red {",4)
Do WriteLog("color: red;",6)
Do WriteLog("}",4)
Do WriteLog(".bold {",4)
Do WriteLog("font-size: 15px;",6)
Do WriteLog("font-weight: bold;",6)
Do WriteLog("}",4)
Do WriteLog(".tableTabbed p,h5 {",4)
Do WriteLog("padding-left: 4ch;",6)
Do WriteLog("}",4)
Do WriteLog("div a:hover {",4)
Do WriteLog("background: rgb(40,94,124);",6)
Do WriteLog("}",4)
Do WriteLog("</style>",2)
Do WriteLog("</head>")
} Catch(ex) {
Set tSC = ex.AsStatus()
Do WriteLog(tSC)
}
Quit
LogOpenMainDiv()
Do WriteLog("<body bgcolor=""#FFFFFF"" text=""#000000"">")
Do WriteLog("<div id=""main"">")
Do WriteLog("<a name=""top""></a>")
Do WriteLog("<h1 title=""Version v0.1.7"">DeepSeeButtons - DeepSee diagnostic report</h1>")
Quit
LogDeepSeeSetupSection
//Begin body tag
Try {
//Do WriteLog("<body bgcolor=""#FFFFFF"" text=""#000000"">")
Do WriteLog("<div class=""trapezoid"">")
Do WriteLog("<span onclick=""openNav()""> ☰ </span>",2)
Do WriteLog("</div>")
Do WriteUpdate("Getting system information")
Do:tracking WriteTrack("setup","Getting system information","")
Do WriteLog("<div id=""DSSetupDiv"" onmouseover=""highlightLink(this,1)"" onmouseout=""highlightLink(this,0)"">")
Do WriteParagraph("deepseesetup","DeepSee Setup in "_namespace,0)
//Agent Count
ZN namespace
Set count=##class(%DeepSee.Utils).%GetAgentCount()
If count=""{
Set tCPU=##class(%SYSTEM.CPU).%New()
Set cores = tCPU.nCores
Set counthigh=cores*4
Set defaultagents="Default agent count"
Set countstring=cores_" cores x 8 = "_(counthigh*2)_" agents ("_counthigh_" high- and "_counthigh_" low-priority agents)"
} Else {
Set defaultagents="Non-default agent count"
Set countstring=(count*2)_" agents ("_count_" high- and "_count_" low-priority agents)"
}
ZN "%SYS"
Use LogFile
Do WriteLog("<table id=""DSSetupTable"" cellpadding=""7"" cellspacing=""3"" "_
"class=""tableWithBorders tableTabbed"">",2)
Do WriteLog("<tbody>",4)
Do WriteLog("<tr>",6)
Do WriteLog("<td>",8)
Do WriteHeader4("Agent Count",10)
Do WriteLog("<p>"_defaultagents_"</p>",10)
Do WriteLog("<p>"_countstring_"</p>",10)
Do WriteLog("</td>",8)
Do WriteLog("</tr>",6)
Do WriteLog("<tr>",6)
Do WriteLog("<td>",8)
//Audit section
Do GetDeepSeeAuditCode
Do WriteLog("</td>",8)
Do WriteLog("</tr>",6)
Do WriteLog("<tr>",6)
Do WriteLog("<td>",8)
Do WriteHeader4("Most Recent Activity in Cube Manager",10)
ZN namespace
Set msgbuild=$$GetLastBuild("Build") //Get last build, synch, and update info
Set msgsynch=$$GetLastBuild("Synch")
Set msgupdate=$$GetLastBuild("Update")
Set msgrepair=$$GetLastBuild("Repair")
Do WriteLog("<p>Build event: "_msgbuild_"</p>",10)
Do WriteLog("<p>Synch event: "_msgsynch_"</p>",10)
Do WriteLog("<p>Registry Update event: "_msgupdate_"</p>",10)
Do WriteLog("<p>Repair event: "_msgrepair_"</p>",10)
//Cycle through all enabled cubes in cube manager and alert if ther are no build or repair events
Set rs=##class(%ResultSet).%New("%DeepSee.CubeManager.RegistryMap:RegistryMapTableView")
Set registered = ""
Set state = ""
Do rs.Execute()
While (rs.Next()) {
Set cube=rs.Get("CubeKey")
Set state = rs.Get("Disabled")
Set state = $S(state="Yes":"disabled",state="No":"enabled",1:"unknown")
If ((rs.Get("IsRegistered")="Yes") && (rs.Get("Disabled")="No")) {
Set msgbuild=$$GetLastBuild("Build",cube) //Get last build
Set msgrepair=$$GetLastBuild("Repair",cube) //Get last repair
Do:(state="enabled") alertInitialBuildCubeManager(cube,msgrepair,msgbuild,.alerts)
}
}
ZN "%SYS"
Do WriteLog("</td>",8)
Do WriteLog("</tr>",6)
/// Important Mappings subsection
Set NsMap=""
Set MirCount=0
Set ECPCount=0
Set isMirror=0
Set isECP=0
Set GlobalKSize=""
Set RoutineSize=""
Set bbsiz=""
Do WriteLog("<tr>",6)
Do WriteLog("<td>",8)
Do WriteHeader4("Config section of cpf file",8)
Open ConfigFile:"R":FileOpenTimeOut
If '$Test {
Do WriteLog("<p>Error: could not open Caché Configuration File "_ConfigFile_"</p>",10)
} Else {
For {
Use ConfigFile
Read x:FileReadTimeOut
If $p(x,".",1)="[Map" { //Grab namespace we are mapping from
Set NsMap=x //Returns eg [Map.Analytics]
Set NsMap=$p($p(NsMap,".",2),"]",1) //Returns eg Analytics
Set MapCount=0 //Reset counter for number of mappings within this namespace
}
If x["Global_OBJ.DSTIME"{ //Grab OBJ.DSTIME mapping
Set DSTimeMapTo=$p(x,"=",2) //Namespace it is mapped to
Set DSTimeMapFrom(NsMap)=DSTimeMapTo
}
If x["Global_DeepSee"{ //Create array of DeepSee.* global mappings within this namespace
Set MapCount=$I(MapCount)
Set DeepSeeMap(NsMap,MapCount)=x
}
If x["[Mirrors]" Set isMirror=1 //We are in mirror section
If isMirror=1{
If x=""{
Set isMirror=0 //Mirror section has ended
} Else { //Store mirror information
Set MirCount=$I(MirCount)
Set MirArray(MirCount)=x
}
}
If x["[ECPServers]" Set isECP=1 //We are in ECP section
If isECP=1{
If x=""{
Set isECP=0 //ECP section has ended
} ElseIf x'["[ECPServers]" {
Set ECPCount=$I(ECPCount) //Store ECP info
Set ECPArray(ECPCount)=x
}
}
//Store important values from cpf - Config section
If x["[config]" Set configSect=1 //We are in Config section
If x["[Miscellaneous]" Kill configSect //Config section is over
If $D(configSect) {
If x["globals" Set GlobalKSize=$P(x,"globals=",2)
If x["routines=" Set RoutineSize= $P(x,"routines=",2)
If x["bbsiz=" Set bbsiz= $P(x,"=",2)
}
Quit:x["[Miscellaneous]" //We have passed all information we are interested in, just quit
}
Close ConfigFile
Do WriteLog("<p>globals="_GlobalKSize_"</p>",10)
Do WriteLog("<p>routines="_RoutineSize_"</p>",10)
Do WriteLog("<p>bbsiz="_bbsiz_"</p>",10)
Set sc = $$alertGlobalKSize(GlobalKSize,.alerts)
Set sc = $$alertRoutineSize(RoutineSize,.alerts)
}
Do WriteLog("</td>",8)
Do WriteLog("</tr>",6)
//Important mapppings
Do WriteLog("<tr>",6)
Do WriteLog("<td>",8)
Do WriteHeader4("Important Mappings",10)
ZN "%SYS"
Set status=##Class(Config.Namespaces).Get(namespace,.nsprop)
Do:status=1 WriteLog("<p>Default DBs for globals and routines: "_nsprop("Globals")_", "_nsprop("Routines")_"</p>",10)
If '$D(DSTimeMapFrom(namespace)){
Do WriteLog("<p>^OBJ.DSTIME: no mappings defined</p>",10)
} Else{
Do WriteLog("<p>^OBJ.DSTIME: mapped to "_DSTimeMapFrom((namespace))_"</p>",10)
}
//DeepSeeMap is structured as follows: DeepSeeMap(namespace,mapping number)
If NsMap'="" {
If $D(DeepSeeMap(namespace,1)){
Set NumMaps=$O(DeepSeeMap(namespace,""))
While NumMaps {
Do WriteLog("<p>"_DeepSeeMap(namespace,NumMaps)_"</p>",10)
Set NumMaps=$O(DeepSeeMap(namespace,NumMaps))
}
}
Set sc = $$alertCacheMappings(namespace,.alerts)
Set sc = $$alertJoinIndexMappings(namespace,.alerts)
If $D(DSTimeMapFrom(namespace)){
Set sc = $$alertDStimeRW(DSTimeMapFrom(namespace),.alerts)
}
}
Do WriteLog("</td>",8)
Do WriteLog("</tr>",6)
If ECPCount'=0{
Do WriteLog("<tr>",6)
Do WriteLog("<td>",8)
Do WriteHeader4("ECP Servers",10)
Do WriteLog("<p>",10)
For i=1:1:ECPCount{
Write ECPArray(i),!
}
Do WriteLog("</p>",10)
Do WriteLog("</td>",8)
Do WriteLog("</tr>",6)
}
If MirCount'=0{
Do WriteLog("<tr>",6)
Do WriteLog("<td>",8)
Do WriteHeader4("Mirroring Info",10)
Do WriteLog("<p>",10)
For i=1:1:MirCount{
Write MirArray(i),!
}
Do WriteLog("</p>")
Do WriteLog("</td>",8)
Do WriteLog("</tr>",6)
}
//Initialization code
Do WriteLog("<tr>",6)
Do WriteLog("<td>",8)
Do WriteHeader4("Server Initialization Code",8,"Defined in the ^DeepSee.InitCode global")
Try {
If $D(^[namespace]DeepSee.InitCode){
Set initcode=$g(^[namespace]DeepSee.InitCode)
Do WriteLog("<p>^DeepSee.InitCode: "_initcode_"</p>",10)
} Else{
Do WriteLog("<p>^DeepSee.InitCode is undefined"_initcode_"</p>",10)
}
} Catch {
Do WriteLog("<p>Not Available</p>",10)
}
Do WriteLog("</td>",8)
Do WriteLog("</tr>",6)
//Webapps that are deepsee enabled
Do WriteLog("<tr>",6)
Do WriteLog("<td>",8)
Do WriteHeader4("DeepSee-enabled namespaces",10)
Do ##class(%CSP.Portal.Utils).%GetNamespaceList(.nsList)
SET ns=$o(nsList(""))
While ns'="" {
If ##class(%DeepSee.Utils).%IsDeepSeeEnabled(ns) {
Do WriteLog("<p>"_ns_" with default webapp: "_$system.CSP.GetDefaultApp(ns)_"</p>",10)
}
Set ns=$O(nsList(ns))
}
Do WriteLog("</td>",8)
Do WriteLog("</tr>",6)
/*
Do WriteLog("<tr>",6)
Do WriteLog("<td>",8)
Do WriteHeader4("DeepSee-enabled webapps",10)
Set rsWeb=##class(%ResultSet).%New("Security.Applications:Detail")
Do rsWeb.Execute()
Set onefound=0
For {
Quit:'rsWeb.Next()
If rsWeb.DeepSeeEnabled="Yes" {
Do WriteLog("<p>"_rsWeb.Name_"</p>",10)
Set onefound=1
}
Do WriteLog("<p>"_rsWeb.Name_"</p>",10)
If $D(^SYS("Security", "CSP", "AllowPrefix", rsWeb.Name_"/","%DeepSee.")) {
Do WriteLog("<p>--"_rsWeb.Name_"</p>",10)
}
}
Do:'onefound WriteLog("<p>-</p>",10)
Do WriteLog("</td>",8)
Do WriteLog("</tr>",6)
*/
//DeepSee overrides
If (isInsight || isTrak) {
If (nOverrides<10) {
Do WriteLog("<tr>",4)
Do WriteLog("<td>",6)
Do WriteHeader4("DeepSee Overrides",10)
Do PrintGlobal(namespace,"^DeepSee.Overrides",10)
Do WriteLog("</td>",8)
Do WriteLog("</tr>",6)
Do WriteLog("</tbody>",4)
Do WriteLog("</table>",2)
} Else {
//If there are many overrides place them in a scrollable div
Do WriteLog("</tbody>",4)
Do WriteLog("</table>",2)
Do WriteLog("<hr noshade size=""4"">")
Do WriteLog("<a name=""overrides""</a>")
Do WriteLog("<h2>DeepSee Overrides</h2>")
Do WriteLog("<div class=""scrollable"" style=""width:100%;height:400px;"">")
Do PrintGlobal(namespace,"^DeepSee.Overrides",2)
Do WriteLog("</div>")
}
} Else {
Do WriteLog("</tbody>",4)
Do WriteLog("</table>",2)
}
} Catch(ex) {
Set tSC = ex.AsStatus()
Do WriteLog("Error in LogDeepSeeSetupSection: "_tSC,0)
Do WriteLog("</tbody>",4)
Do WriteLog("</table>",2)
}
Do WriteLog("</div>")
Quit
LogServerSetup()
///Server Details section
Do WriteLog("<div id=""ServerDetailsDiv"" onmouseover=""highlightLink(this,1)"""_
" onmouseout=""highlightLink(this,0)"">")
Do WriteParagraph("serverdetails","Server Details",1)
///The old "Configuration" section
Do WriteLog("<table id=""ServerDetailsTable"" cellpadding=""7"" cellspacing=""3"" "_
"class=""tableWithBorders tableTabbed"">",2)
Do WriteLog("<tbody>",4)
Do WriteLog("<tr>",6)
Do WriteLog("<td>",8)
Do WriteHeader4("Configuration",10)
Do WriteLog("<p>"_ConfigName_" on Machine """_HostName_""""_"</p>",10)
Do WriteLog("</td>",8)
Do WriteLog("</tr>",6)
Do WriteLog("<tr>",6)
Do WriteLog("<td>",8)
If CustomerName'?1a.e Set CustomerName="Unknown"
Do WriteHeader4("Customer Name",10)
Do WriteLog("<p>"_CustomerName_"</p>",10)
Do WriteLog("</td>",8)
Do WriteLog("</tr>",6)
Do WriteLog("<tr>",6)
Do WriteLog("<td>",8)
Do WriteHeader4("License Order Number",10)
Do WriteLog("<p>"_OrderNumber_"</p>",10)
Do WriteLog("</td>",8)
Do WriteLog("</tr>",6)
Do WriteLog("<tr>",6)
Do WriteLog("<td>",8)
Do WriteHeader4("Fully Qualified Host Name",10)
Do WriteLog("<p>"_FullHostName_" with IP Address: "_IPAddr_"</p>",10)
Do INT^%D,INT^%T
Do WriteLog("</td>",8)
Do WriteLog("</tr>",6)
Do WriteLog("<tr>",6)
Do WriteLog("<td>",8)
Do WriteHeader4("Log created by User",10)
Do WriteLog("<p>"_CurUser_" on "_$ZD($ZDH(%DAT,7),3)_" at "_%TIM_"</p>",10)
Do WriteLog("</td>",8)
Do WriteLog("</tr>",6)
//Last Caché Startup
Do WriteLog("<tr>",6)
Do WriteLog("<td>",8)
Do WriteHeader4("Last Caché Startup",10)
Do WriteLastStartup
Do WriteLog("</td>",8)
Do WriteLog("</tr>",6)
Do WriteLog("<tr>",6)
Do WriteLog("<td>",8)
Do WriteHeader4("Caché Version String",10)
Do WriteLog("<p>"_CacheVerStr_"</p>",10)
//Set isInsight=$$isHealthInsight(namespace) //Determine if this is a Health Insight namespace (1 if yes)
Do:isInsight WriteLog("<p>"_##class(%ZHSLIB.HealthShareMgr).VersionInfo()_"</p>",8)
Do WriteAdhocPatch //write information on Adhoc patch
//Current Locale subsection
Do WriteLog("</td>",8)
Do WriteLog("</tr>",6)
Do WriteLog("<tr>",6)
Do WriteLog("<td>",8)
Do NLS
Do WriteLog("</td>",8)
Do WriteLog("</tr>",6)
//Operating System Version section
Do WriteLog("<tr>",6)
Do WriteLog("<td>",8)
Do OSVer
Do WriteLog("</td>",8)
Do WriteLog("</tr>",6)
/*Do WriteLog("<tr>",6)
Do WriteLog("<td>",8)
Do WriteLog("<h4>Operating System</h4>",10)
Do WriteLog("<p>",10)
Do OSVer^Buttons
Do WriteLog("</p>",10)
Do WriteLog("</td>",8)
Do WriteLog("</tr>",6)
*/
//Disk space
Do WriteLog("<tr>",6)
Do WriteLog("<td>",8)
Do DiskSpace
Do WriteLog("</td>",8)
Do WriteLog("</tr>",6)
//RAM physical memory space
Do WriteLog("<tr>",6)
Do WriteLog("<td>",8)
Do RAM
Do WriteLog("</td>",8)
Do WriteLog("</tr>",6)
//Close the table
Use PDev
If OS?1"Win".e!(OS="VMS"),OS'="Win9x"
Use LogFile
Do WriteLog("</tbody>",4)
Do WriteLog("</table>",2)
Do WriteLog("</div>")
Use PDev
Quit
LogCubeSection
Try {
Do WriteUpdate("Getting cube information")
Do:tracking WriteTrack("cubelog","Getting cube information","")
Do WriteLog("<div id=""CubesDiv"" onmouseover=""highlightLink(this,1)"" onmouseout=""highlightLink(this,0)"">")
Do WriteParagraph("cubelist","Cubes in "_namespace)
Use PDev
ZN namespace
Do ##class(%DeepSee.Utils).%GetCubeList(.plist)
Set cubenode=$order(plist(""))
If cubenode=""{
Do WriteLog("<p>There are no cubes in this namespace</p>")
} Else {
Use LogFile
Do WriteLog("<table id=""CubeTable"" border=""0"" cellpadding=""7"" cellspacing=""3"" "_
"class=""zebraStriped"">",2)
Do WriteLog("<tbody>",4)
Do WriteLog("<tr>",6)
Do WriteLog("<th onclick=""sortTable(this,0,1)"">Cube Name</th>",8)
Do WriteLog("<th onclick=""sortTable(this,1,1)"">Display Name</th>",8)
Do WriteLog("<th onclick=""sortTable(this,2,1)"">Source Class</th>",8)
Do WriteLog("<th onclick=""sortTable(this,3,1)"">Cube Class</th>",8)
Do WriteLog("<th onclick=""sortTable(this,4,1)"" title=""Does not reflect build order"">Related Cubes</th>",8)
Do WriteLog("</tr>",6)
Set storageList=""
Set dataConnectorList=""
Set abstractcount = 0
Set versionedcount = 0
For {
Quit:cubenode="" //Do the work to get info and write out the table
Set cubename=$list(plist(cubenode),1)
Try {
Set versionedCube = ##class(%DeepSee.CubeVersion.Utils).%GetVersionedCubeName(cubename)
Set isVersioned = ##class(%DeepSee.CubeVersion.Utils).%IsVersion(versionedCube)
} Catch {
Set versionedCube = cubename
Set isVersioned = 0
}
If ##class(%DeepSee.Utils).%IsCubeAbstract(cubenode){ //cube is abstract
//Don't run if Health insight because there are too many abstract cubes
Set:('isInsight) abstractList($I(abstractcount)) = cubenode
} ElseIf isVersioned {
Set versionedList($I(versionedcount)) = versionedCube
} ElseIf (cubename'="") {
Do WriteLog("<tr>",6)
Do WriteLog("<td>"_cubename_"</td>",8) //cubename
Set cubecaption=##class(%DeepSee.Utils).%GetCubeCaption(cubename)
Do WriteLog("<td>"_cubecaption_"</td>",8)
Set cubeclass=##class(%DeepSee.Utils).%GetCubeClass(cubename) //cube class
Set lastmod=$zdt($LG(plist(cubenode),3),3) //last cube compile
Set type=$LG(plist(cubenode),4) //subject area or cube?
Set sourceClass = $$GetSourceClass(cubenode,type)
Do WriteLog("<td>"_sourceClass_"</td>",8) //writes sourceClass
Do WriteLog("<td>"_cubeclass_"</td>",8)
Write !,?8,"<td>" Do GetRelationships(cubenode) Write "</td>" //RelatedCubes
Do WriteLog("</tr>",6)
}
Set cubenode=$order(plist(cubenode))
}
Do WriteLog("</tbody>",4)
Do WriteLog("</table>",2)
//Write out list of special cubes: versioned, abstract, with SQL Storage, based on Data Connectors
Do WriteHeader4("Versioned Cubes",2)
If versionedcount {
Set ind = $O(versionedList(""))
While ind {
Do WriteLog("<p>"_versionedList(ind)_"</p>",2)
Set ind = $O(versionedList(ind))