-
Notifications
You must be signed in to change notification settings - Fork 2
/
MicrosoftHPCTools.html
5303 lines (5291 loc) · 486 KB
/
MicrosoftHPCTools.html
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
<!DOCTYPE html>
<!--
<auto-generated>
<synopsis>
This code was generated by a tool. on: 09/22/2017 15:52:36
</synopsis>
<description>
If you'd like to regenerate the documentation, please open up powershell and run
> .\psDoc.ps1 -moduleName NameOfYourModule
If the documentation is incomplete, or eronious,
please edit the comments at the top of the module method within it's respecive .ps1 file.
</description>
</auto-generated>
-->
<html lang="en">
<head>
<title>MicrosoftHPCServerTools Documentation</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<link href="https://cdnjs.cloudflare.com/ajax/libs/SyntaxHighlighter/3.0.83/styles/shCore.min.css" rel="stylesheet" charset="utf-8">
<link href="https://cdnjs.cloudflare.com/ajax/libs/SyntaxHighlighter/3.0.83/styles/shCoreDefault.min.css" rel="stylesheet" charset="utf-8">
<link href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.4/css/bootstrap.min.css" rel="stylesheet" charset="utf-8">
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
<script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
<style>
.syntaxhighlighter {
overflow-y: hidden !important;
overflow-x: auto !important;
}
pre {
min-height: 30px;
}
.navbar-nav {
height: 100%;
overflow-y: auto;
}
.form-group {
padding-top: 12px;
padding-left: 12px;
padding-right: 12px;
}
.sidebar-nav .navbar-header {
float: none;
}
.sidebar-nav .navbar li a {
padding-top: 4px;
padding-bottom: 4px;
}
@media (min-width: 768px) {
.sidebar-nav .navbar .navbar-collapse {
padding: 0;
max-height: none;
}
.sidebar-nav .navbar ul {
float: none;
}
.sidebar-nav .navbar ul:not {
display: block;
}
.sidebar-nav .navbar li {
float: none;
display: block;
}
}
</style>
</head>
<body>
<div class="container-fluid">
<div class="row-fluid">
<div><h1>MicrosoftHPCServerTools</h1></div>
</div>
<div class="row-fluid">
<div class="col-lg-3 col-md-4 col-sm-5 col-xs-12">
<div class="sidebar-nav">
<div class="navbar navbar-default" role="navigation">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".sidebar-navbar-collapse">
<span class="sr-only">Toggle</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<span class="visible-xs navbar-brand">click menu to open</span>
</div>
<div class="navbar-collapse collapse sidebar-navbar-collapse">
<div class="form-group">
<input class="form-control" id="searchinput" type="search" placeholder="Filter..." />
</div>
<ul class="nav navbar-nav list-group" id="searchList">
<li class="nav-menu list-group-item"><a href="#ConvertFrom-UnixTime">ConvertFrom-UnixTime</a></li>
<li class="nav-menu list-group-item"><a href="#Convert-HPCClusterTemplate">Convert-HPCClusterTemplate</a></li>
<li class="nav-menu list-group-item"><a href="#ConvertTo-LogscapeCSV">ConvertTo-LogscapeCSV</a></li>
<li class="nav-menu list-group-item"><a href="#ConvertTo-LogscapeJSON">ConvertTo-LogscapeJSON</a></li>
<li class="nav-menu list-group-item"><a href="#Export-HPCClusterDefaultGroupFromTemplate">Export-HPCClusterDefaultGroupFromTemplate</a></li>
<li class="nav-menu list-group-item"><a href="#Export-HPCClusterFullJobHistory">Export-HPCClusterFullJobHistory</a></li>
<li class="nav-menu list-group-item"><a href="#Get-HPCClusterActiveJobCount">Get-HPCClusterActiveJobCount</a></li>
<li class="nav-menu list-group-item"><a href="#Get-HPCClusterActiveJobs">Get-HPCClusterActiveJobs</a></li>
<li class="nav-menu list-group-item"><a href="#Get-HPCClusterBrokerCheck">Get-HPCClusterBrokerCheck</a></li>
<li class="nav-menu list-group-item"><a href="#Get-HPCClusterElements">Get-HPCClusterElements</a></li>
<li class="nav-menu list-group-item"><a href="#Get-HPCClusterGrowCheck">Get-HPCClusterGrowCheck</a></li>
<li class="nav-menu list-group-item"><a href="#Get-HPCClusterIdleDifferentNodes">Get-HPCClusterIdleDifferentNodes</a></li>
<li class="nav-menu list-group-item"><a href="#Get-HPCClusterIdleReadyNodes">Get-HPCClusterIdleReadyNodes</a></li>
<li class="nav-menu list-group-item"><a href="#Get-HPCClusterJobHistoryOutput">Get-HPCClusterJobHistoryOutput</a></li>
<li class="nav-menu list-group-item"><a href="#Get-HPCClusterJobRequirements">Get-HPCClusterJobRequirements</a></li>
<li class="nav-menu list-group-item"><a href="#Get-HPCClusterJobTemplateDetail">Get-HPCClusterJobTemplateDetail</a></li>
<li class="nav-menu list-group-item"><a href="#Get-HPCClusterNodeDetail">Get-HPCClusterNodeDetail</a></li>
<li class="nav-menu list-group-item"><a href="#Get-HPCClusterNodesMappedToRemove">Get-HPCClusterNodesMappedToRemove</a></li>
<li class="nav-menu list-group-item"><a href="#Get-HPCClusterNodesRequired">Get-HPCClusterNodesRequired</a></li>
<li class="nav-menu list-group-item"><a href="#Get-HPCClusterNodesToGrowByTemplate">Get-HPCClusterNodesToGrowByTemplate</a></li>
<li class="nav-menu list-group-item"><a href="#Get-HPCClusterNodesToRemove">Get-HPCClusterNodesToRemove</a></li>
<li class="nav-menu list-group-item"><a href="#Get-HPCClusterNodesToRemoveByUtilisation">Get-HPCClusterNodesToRemoveByUtilisation</a></li>
<li class="nav-menu list-group-item"><a href="#Get-HPCClusterRegistry">Get-HPCClusterRegistry</a></li>
<li class="nav-menu list-group-item"><a href="#Get-HPCClusterRoleInfo">Get-HPCClusterRoleInfo</a></li>
<li class="nav-menu list-group-item"><a href="#Get-HPCClusterShrinkCheck">Get-HPCClusterShrinkCheck</a></li>
<li class="nav-menu list-group-item"><a href="#Get-HPCClusterStatus">Get-HPCClusterStatus</a></li>
<li class="nav-menu list-group-item"><a href="#Get-HPCClusterWorkload">Get-HPCClusterWorkload</a></li>
<li class="nav-menu list-group-item"><a href="#Get-HPCCoreUtilisation">Get-HPCCoreUtilisation</a></li>
<li class="nav-menu list-group-item"><a href="#Get-HPCJobTaskTime">Get-HPCJobTaskTime</a></li>
<li class="nav-menu list-group-item"><a href="#Get-LogFileName">Get-LogFileName</a></li>
<li class="nav-menu list-group-item"><a href="#Invoke-HPCClusterAzureAutoScaleUp">Invoke-HPCClusterAzureAutoScaleUp</a></li>
<li class="nav-menu list-group-item"><a href="#Invoke-HPCClusterBrokerRepair">Invoke-HPCClusterBrokerRepair</a></li>
<li class="nav-menu list-group-item"><a href="#Invoke-HPCClusterHybridAutoScaler">Invoke-HPCClusterHybridAutoScaler</a></li>
<li class="nav-menu list-group-item"><a href="#Invoke-HPCClusterHybridScaleUp">Invoke-HPCClusterHybridScaleUp</a></li>
<li class="nav-menu list-group-item"><a href="#Invoke-HPCClusterHybridShrink">Invoke-HPCClusterHybridShrink</a></li>
<li class="nav-menu list-group-item"><a href="#Invoke-HPCClusterSimpleAutoScaler">Invoke-HPCClusterSimpleAutoScaler</a></li>
<li class="nav-menu list-group-item"><a href="#Invoke-HPCClusterSwitchNodesToRequiredTemplate">Invoke-HPCClusterSwitchNodesToRequiredTemplate</a></li>
<li class="nav-menu list-group-item"><a href="#Measure-Cron">Measure-Cron</a></li>
<li class="nav-menu list-group-item"><a href="#Optimize-HPCCluster">Optimize-HPCCluster</a></li>
<li class="nav-menu list-group-item"><a href="#Remove-HPCClusterGroups">Remove-HPCClusterGroups</a></li>
<li class="nav-menu list-group-item"><a href="#Remove-HPCClusterNodesFromScheduler">Remove-HPCClusterNodesFromScheduler</a></li>
<li class="nav-menu list-group-item"><a href="#Set-HPCClusterNodeRole">Set-HPCClusterNodeRole</a></li>
<li class="nav-menu list-group-item"><a href="#Set-HPCClusterNodesOffline">Set-HPCClusterNodesOffline</a></li>
<li class="nav-menu list-group-item"><a href="#Set-HPCClusterNodesUndeployedOrOffline">Set-HPCClusterNodesUndeployedOrOffline</a></li>
<li class="nav-menu list-group-item"><a href="#Set-HPCClusterOneNodePerGroup">Set-HPCClusterOneNodePerGroup</a></li>
<li class="nav-menu list-group-item"><a href="#Start-HPCClusterNodes">Start-HPCClusterNodes</a></li>
<li class="nav-menu list-group-item"><a href="#Sync-HPCClusterJobAndNodeTemplates">Sync-HPCClusterJobAndNodeTemplates</a></li>
<li class="nav-menu list-group-item"><a href="#Write-LogError">Write-LogError</a></li>
<li class="nav-menu list-group-item"><a href="#Write-LogInfo">Write-LogInfo</a></li>
<li class="nav-menu list-group-item"><a href="#Write-LogWarning">Write-LogWarning</a></li>
</ul>
</div><!--/.nav-collapse -->
</div>
</div>
</div>
<div class="col-lg-9 col-md-8 col-sm-7 col-xs-12">
<div id="ConvertFrom-UnixTime" class="toggle_container">
<div class="page-header">
<h2> ConvertFrom-UnixTime </h2>
<p>This converts a Unix time into a Powershell Date object</p>
<p>Does what it says on the tin</p>
</div>
<div>
<h3> Syntax </h3>
</div>
<div class="panel panel-default">
<div class='panel-body'>
<pre class="brush: ps">ConvertFrom-UnixTime [-UnixTime] <Int64> [<CommonParameters>]</pre>
</div>
</div>
<div>
<h3> Parameters </h3>
<table class="table table-striped table-bordered table-condensed visible-on">
<thead>
<tr>
<th>Name</th>
<th class="visible-lg visible-md">Alias</th>
<th>Description</th>
<th class="visible-lg visible-md">Required?</th>
<th class="visible-lg">Pipeline Input</th>
<th class="visible-lg">Default Value</th>
</tr>
</thead>
<tbody>
<tr>
<td><nobr>-UnixTime</nobr></td>
<td class="visible-lg visible-md"></td>
<td>The Unix Time needing conversion</td>
<td class="visible-lg visible-md">true</td>
<td class="visible-lg">true (ByValue)</td>
<td class="visible-lg">0</td>
</tr>
</tbody>
</table>
</div>
<div>
<h3> Outputs </h3>
<p>The output type is the type of the objects that the cmdlet emits.</p>
<ul><li>PowerShell Date Object</li></ul>
</div>
<div class='panel panel-default'>
<div class='panel-heading'>
<h3 class='panel-title'> Note </h3>
</div>
<div class='panel-body'>Simple and probably can do this in a neater way!</div>
</div>
<div>
<h3> Examples </h3>
</div>
<div class='panel panel-default'>
<div class='panel-body'>
<strong>EXAMPLE 1</strong>
<pre class="brush: ps">Convert-From-UnixTime 21345678</pre>
<div></div>
</div>
</div>
<p class='pull-right'><a onclick='document.body.scrollTop = document.documentElement.scrollTop = 0;' style='cursor: pointer;'>Top of page</a>
<div>
<h3> Links </h3>
<div>
<ul>
<li class='psLink'><a href='#www.excelian.com' target='_top'>www.excelian.com</a></li>
</ul>
</div>
</div>
</div>
<div id="Convert-HPCClusterTemplate" class="toggle_container">
<div class="page-header">
<h2> Convert-HPCClusterTemplate </h2>
<p>This swaps offline Nodes to templates currently in demand. It assumes that the groups are being used as discriminators and that the Nodes have already had their groups stripped. Designed for ComputeNodes rather than AzureNodes (will not take UnDeployed Nodes).</p>
<p></p>
</div>
<div>
<h3> Syntax </h3>
</div>
<div class="panel panel-default">
<div class='panel-body'>
<pre class="brush: ps">Convert-HPCClusterTemplate [[-LogFilePrefix] <String>] [[-Logging] <Boolean>] [[-Scheduler]
<String>] [[-ExcludedNodes] <String[]>] [[-ExcludedGroups] <String[]>] [[-ExcludedNodeTemplates]
<String[]>] [-NodesToGrow] <HpcNode[]> [<CommonParameters>]</pre>
</div>
</div>
<div>
<h3> Parameters </h3>
<table class="table table-striped table-bordered table-condensed visible-on">
<thead>
<tr>
<th>Name</th>
<th class="visible-lg visible-md">Alias</th>
<th>Description</th>
<th class="visible-lg visible-md">Required?</th>
<th class="visible-lg">Pipeline Input</th>
<th class="visible-lg">Default Value</th>
</tr>
</thead>
<tbody>
<tr>
<td><nobr>-LogFilePrefix</nobr></td>
<td class="visible-lg visible-md"></td>
<td>Determines the prefixed log name</td>
<td class="visible-lg visible-md">false</td>
<td class="visible-lg">true (ByPropertyName)</td>
<td class="visible-lg"></td>
</tr>
<tr>
<td><nobr>-Logging</nobr></td>
<td class="visible-lg visible-md"></td>
<td>Boolean whether or not to create a log or just display host output</td>
<td class="visible-lg visible-md">false</td>
<td class="visible-lg">true (ByPropertyName)</td>
<td class="visible-lg">False</td>
</tr>
<tr>
<td><nobr>-Scheduler</nobr></td>
<td class="visible-lg visible-md"></td>
<td>Determines the scheduler used - defaults to the environment variable</td>
<td class="visible-lg visible-md">false</td>
<td class="visible-lg">true (ByPropertyName)</td>
<td class="visible-lg">$env:CCP_SCHEDULER</td>
</tr>
<tr>
<td><nobr>-ExcludedNodes</nobr></td>
<td class="visible-lg visible-md"></td>
<td></td>
<td class="visible-lg visible-md">false</td>
<td class="visible-lg">true (ByPropertyName)</td>
<td class="visible-lg">@()</td>
</tr>
<tr>
<td><nobr>-ExcludedGroups</nobr></td>
<td class="visible-lg visible-md"></td>
<td></td>
<td class="visible-lg visible-md">false</td>
<td class="visible-lg">true (ByPropertyName)</td>
<td class="visible-lg">@()</td>
</tr>
<tr>
<td><nobr>-ExcludedNodeTemplates</nobr></td>
<td class="visible-lg visible-md"></td>
<td></td>
<td class="visible-lg visible-md">false</td>
<td class="visible-lg">true (ByPropertyName)</td>
<td class="visible-lg">@()</td>
</tr>
<tr>
<td><nobr>-NodesToGrow</nobr></td>
<td class="visible-lg visible-md"></td>
<td>A collection of Nodes you want to grow. Should be recieved from Remove-HPCClusterGroups if using <br>groups as discriminators.</td>
<td class="visible-lg visible-md">true</td>
<td class="visible-lg">true (ByValue, ByPropertyName)</td>
<td class="visible-lg">@()</td>
</tr>
</tbody>
</table>
</div>
<div class='panel panel-default'>
<div class='panel-heading'>
<h3 class='panel-title'> Note </h3>
</div>
<div class='panel-body'>Once given a collection of Nodes, will discover which groups need assigning and assign them.</div>
</div>
<div>
<h3> Examples </h3>
</div>
<div class='panel panel-default'>
<div class='panel-body'>
<strong>EXAMPLE 1</strong>
<pre class="brush: ps">Get-HPCClusterIdleDifferentNodes | Remove-HPCClusterGroups | Convert-HPCClusterTemplate</pre>
<div></div>
</div>
</div>
<p class='pull-right'><a onclick='document.body.scrollTop = document.documentElement.scrollTop = 0;' style='cursor: pointer;'>Top of page</a>
<div>
<h3> Links </h3>
<div>
<ul>
<li class='psLink'><a href='#www.excelian.com' target='_top'>www.excelian.com</a></li>
</ul>
</div>
</div>
</div>
<div id="ConvertTo-LogscapeCSV" class="toggle_container">
<div class="page-header">
<h2> ConvertTo-LogscapeCSV </h2>
<p>This converts an object to a Logscape compatibile CSV String, plus a timestamp</p>
<p>Logscape likes to have ALL STRING JSON... or at least it did. This helps.<br>Also whacks a timestamp ahead of it so we know when it was generated.</p>
</div>
<div>
<h3> Syntax </h3>
</div>
<div class="panel panel-default">
<div class='panel-body'>
<pre class="brush: ps">ConvertTo-LogscapeCSV [-Input] <Object> [[-TimeStamp] <Boolean>] [[-Delimiter] <String>]
[[-AddHeaders] <Boolean>] [<CommonParameters>]</pre>
</div>
</div>
<div>
<h3> Parameters </h3>
<table class="table table-striped table-bordered table-condensed visible-on">
<thead>
<tr>
<th>Name</th>
<th class="visible-lg visible-md">Alias</th>
<th>Description</th>
<th class="visible-lg visible-md">Required?</th>
<th class="visible-lg">Pipeline Input</th>
<th class="visible-lg">Default Value</th>
</tr>
</thead>
<tbody>
<tr>
<td><nobr>-Input</nobr></td>
<td class="visible-lg visible-md"></td>
<td>The Object needing conversion</td>
<td class="visible-lg visible-md">true</td>
<td class="visible-lg">true (ByValue)</td>
<td class="visible-lg"></td>
</tr>
<tr>
<td><nobr>-TimeStamp</nobr></td>
<td class="visible-lg visible-md"></td>
<td></td>
<td class="visible-lg visible-md">false</td>
<td class="visible-lg">true (ByValue)</td>
<td class="visible-lg">True</td>
</tr>
<tr>
<td><nobr>-Delimiter</nobr></td>
<td class="visible-lg visible-md"></td>
<td></td>
<td class="visible-lg visible-md">false</td>
<td class="visible-lg">false</td>
<td class="visible-lg">,</td>
</tr>
<tr>
<td><nobr>-AddHeaders</nobr></td>
<td class="visible-lg visible-md"></td>
<td>A boolean, defaults to false. Standard Powershell CSV export pumps out headers each time - <br>unsuitable for Logging purposes. Leave as false unless you want them!</td>
<td class="visible-lg visible-md">false</td>
<td class="visible-lg">true (ByValue)</td>
<td class="visible-lg">False</td>
</tr>
</tbody>
</table>
</div>
<div class='panel panel-default'>
<div class='panel-heading'>
<h3 class='panel-title'> Note </h3>
</div>
<div class='panel-body'>Only required because Logscape likes it's JSON with a touch of buggery</div>
</div>
<div>
<h3> Examples </h3>
</div>
<div class='panel panel-default'>
<div class='panel-body'>
<strong>EXAMPLE 1</strong>
<pre class="brush: ps">Get-HpcClusterOverview | ConvertTo-LogscapeJSON</pre>
<div></div>
</div>
</div>
<p class='pull-right'><a onclick='document.body.scrollTop = document.documentElement.scrollTop = 0;' style='cursor: pointer;'>Top of page</a>
<div>
<h3> Links </h3>
<div>
<ul>
<li class='psLink'><a href='#www.excelian.com' target='_top'>www.excelian.com</a></li>
</ul>
</div>
</div>
</div>
<div id="ConvertTo-LogscapeJSON" class="toggle_container">
<div class="page-header">
<h2> ConvertTo-LogscapeJSON </h2>
<p>This converts an object to a Logscape compatibile JSON String, plus a timestamp</p>
<p></p>
</div>
<div>
<h3> Syntax </h3>
</div>
<div class="panel panel-default">
<div class='panel-body'>
<pre class="brush: ps">ConvertTo-LogscapeJSON [-Input] <Object> [[-Timestamp] <Boolean>] [<CommonParameters>]</pre>
</div>
</div>
<div>
<h3> Parameters </h3>
<table class="table table-striped table-bordered table-condensed visible-on">
<thead>
<tr>
<th>Name</th>
<th class="visible-lg visible-md">Alias</th>
<th>Description</th>
<th class="visible-lg visible-md">Required?</th>
<th class="visible-lg">Pipeline Input</th>
<th class="visible-lg">Default Value</th>
</tr>
</thead>
<tbody>
<tr>
<td><nobr>-Input</nobr></td>
<td class="visible-lg visible-md"></td>
<td>The Object needing conversion</td>
<td class="visible-lg visible-md">true</td>
<td class="visible-lg">true (ByValue)</td>
<td class="visible-lg"></td>
</tr>
<tr>
<td><nobr>-Timestamp</nobr></td>
<td class="visible-lg visible-md"></td>
<td>Remove Timestamp - Boolean</td>
<td class="visible-lg visible-md">false</td>
<td class="visible-lg">true (ByValue)</td>
<td class="visible-lg">True</td>
</tr>
</tbody>
</table>
</div>
<div>
<h3> Examples </h3>
</div>
<div class='panel panel-default'>
<div class='panel-body'>
<strong>EXAMPLE 1</strong>
<pre class="brush: ps">Get-HpcClusterOverview | ConvertTo-LogscapeJSON</pre>
<div></div>
</div>
</div>
<p class='pull-right'><a onclick='document.body.scrollTop = document.documentElement.scrollTop = 0;' style='cursor: pointer;'>Top of page</a>
<div>
<h3> Links </h3>
<div>
<ul>
<li class='psLink'><a href='#www.excelian.com' target='_top'>www.excelian.com</a></li>
</ul>
</div>
</div>
</div>
<div id="Export-HPCClusterDefaultGroupFromTemplate" class="toggle_container">
<div class="page-header">
<h2> Export-HPCClusterDefaultGroupFromTemplate </h2>
<p>This extracts the default Group for a Job Template. Can Take either one template or generate a hash table for all.</p>
<p>When you read this code, you will possibly question my sanity. Why oh why is such a thing necessary? <br>The simple answer is this... we need to be able to determine which Nodes (governed by Node <br>Templates) can recieve which Jobs.<br>Jobs are determined by Job Templates, which can only reference Groups. Groups are not attached to <br>Job Templates in any sensible way.<br>So we have to export the Job Template, inspect the Groups permitted and reference them back to the <br>Job Template.</p>
</div>
<div>
<h3> Syntax </h3>
</div>
<div class="panel panel-default">
<div class='panel-body'>
<pre class="brush: ps">Export-HPCClusterDefaultGroupFromTemplate [[-LogFilePrefix] <String>] [[-Logging] <Boolean>]
[[-Scheduler] <String>] [[-Templates] <HpcJobTemplate[]>] [<CommonParameters>]</pre>
</div>
</div>
<div>
<h3> Parameters </h3>
<table class="table table-striped table-bordered table-condensed visible-on">
<thead>
<tr>
<th>Name</th>
<th class="visible-lg visible-md">Alias</th>
<th>Description</th>
<th class="visible-lg visible-md">Required?</th>
<th class="visible-lg">Pipeline Input</th>
<th class="visible-lg">Default Value</th>
</tr>
</thead>
<tbody>
<tr>
<td><nobr>-LogFilePrefix</nobr></td>
<td class="visible-lg visible-md"></td>
<td>Determines the prefixed log name</td>
<td class="visible-lg visible-md">false</td>
<td class="visible-lg">true (ByPropertyName)</td>
<td class="visible-lg"></td>
</tr>
<tr>
<td><nobr>-Logging</nobr></td>
<td class="visible-lg visible-md"></td>
<td>Boolean whether or not to create a log or just display host output</td>
<td class="visible-lg visible-md">false</td>
<td class="visible-lg">true (ByPropertyName)</td>
<td class="visible-lg">False</td>
</tr>
<tr>
<td><nobr>-Scheduler</nobr></td>
<td class="visible-lg visible-md"></td>
<td>Determines the scheduler used - defaults to the environment variable</td>
<td class="visible-lg visible-md">false</td>
<td class="visible-lg">true (ByPropertyName)</td>
<td class="visible-lg">$env:CCP_SCHEDULER</td>
</tr>
<tr>
<td><nobr>-Templates</nobr></td>
<td class="visible-lg visible-md"></td>
<td>You can specify which Job Template to analyse, otherwise it will just get them all. Needs a Template <br>object</td>
<td class="visible-lg visible-md">false</td>
<td class="visible-lg">true (ByPropertyName)</td>
<td class="visible-lg">@()</td>
</tr>
</tbody>
</table>
</div>
<div>
<h3> Outputs </h3>
<p>The output type is the type of the objects that the cmdlet emits.</p>
<ul><li>A Hashtable of Job Templates and their default groups. Underlying workhorse for Syncing Job and Node
Templates</li></ul>
</div>
<div class='panel panel-default'>
<div class='panel-heading'>
<h3 class='panel-title'> Note </h3>
</div>
<div class='panel-body'>Used to ensure the right groups are assigned later.</div>
</div>
<div>
<h3> Examples </h3>
</div>
<div class='panel panel-default'>
<div class='panel-body'>
<strong>EXAMPLE 1</strong>
<pre class="brush: ps">Export-HPCClusterDefaultGroupFromTemplate -Logging $False -Templates JobTemplate1,JobTemplate2</pre>
<div></div>
</div>
</div>
<p class='pull-right'><a onclick='document.body.scrollTop = document.documentElement.scrollTop = 0;' style='cursor: pointer;'>Top of page</a>
<div>
<h3> Links </h3>
<div>
<ul>
<li class='psLink'><a href='#www.excelian.com' target='_top'>www.excelian.com</a></li>
</ul>
</div>
</div>
</div>
<div id="Export-HPCClusterFullJobHistory" class="toggle_container">
<div class="page-header">
<h2> Export-HPCClusterFullJobHistory </h2>
<p>This collects the recent Job History and adds data from the SQL database to give accurate task times.</p>
<p></p>
</div>
<div>
<h3> Syntax </h3>
</div>
<div class="panel panel-default">
<div class='panel-body'>
<pre class="brush: ps">Export-HPCClusterFullJobHistory [[-Scheduler] <String>] [[-PositionFolder] <String>]
[[-LastKnownPositionFile] <String>] [[-Duration] <Int32>] [[-InitialCollection] <Int32>]
[[-Delimiter] <Object>] [<CommonParameters>]</pre>
</div>
</div>
<div>
<h3> Parameters </h3>
<table class="table table-striped table-bordered table-condensed visible-on">
<thead>
<tr>
<th>Name</th>
<th class="visible-lg visible-md">Alias</th>
<th>Description</th>
<th class="visible-lg visible-md">Required?</th>
<th class="visible-lg">Pipeline Input</th>
<th class="visible-lg">Default Value</th>
</tr>
</thead>
<tbody>
<tr>
<td><nobr>-Scheduler</nobr></td>
<td class="visible-lg visible-md"></td>
<td>Which scheduler should be tapped for the history</td>
<td class="visible-lg visible-md">false</td>
<td class="visible-lg">true (ByPropertyName)</td>
<td class="visible-lg">$env:CCP_SCHEDULER</td>
</tr>
<tr>
<td><nobr>-PositionFolder</nobr></td>
<td class="visible-lg visible-md"></td>
<td>Where the timestamp record should be stored</td>
<td class="visible-lg visible-md">false</td>
<td class="visible-lg">true (ByPropertyName)</td>
<td class="visible-lg">"..\HPCAppRecords_DONOTDELETE\$Scheduler"</td>
</tr>
<tr>
<td><nobr>-LastKnownPositionFile</nobr></td>
<td class="visible-lg visible-md"></td>
<td>The name of the timestamp record</td>
<td class="visible-lg visible-md">false</td>
<td class="visible-lg">true (ByPropertyName)</td>
<td class="visible-lg">.\JobHistory_LastKnownPosition</td>
</tr>
<tr>
<td><nobr>-Duration</nobr></td>
<td class="visible-lg visible-md"></td>
<td></td>
<td class="visible-lg visible-md">false</td>
<td class="visible-lg">true (ByPropertyName)</td>
<td class="visible-lg">5400</td>
</tr>
<tr>
<td><nobr>-InitialCollection</nobr></td>
<td class="visible-lg visible-md"></td>
<td></td>
<td class="visible-lg visible-md">false</td>
<td class="visible-lg">true (ByPropertyName)</td>
<td class="visible-lg">90</td>
</tr>
<tr>
<td><nobr>-Delimiter</nobr></td>
<td class="visible-lg visible-md"></td>
<td>What should the delimiter be</td>
<td class="visible-lg visible-md">false</td>
<td class="visible-lg">false</td>
<td class="visible-lg">|</td>
</tr>
</tbody>
</table>
</div>
<div>
<h3> Examples </h3>
</div>
<div class='panel panel-default'>
<div class='panel-body'>
<strong>EXAMPLE 1</strong>
<pre class="brush: ps">Export-HPCClusterFullJobHistory -LastKnownPositionFile "Output.txt"</pre>
<div></div>
</div>
</div>
<p class='pull-right'><a onclick='document.body.scrollTop = document.documentElement.scrollTop = 0;' style='cursor: pointer;'>Top of page</a>
</div>
<div id="Get-HPCClusterActiveJobCount" class="toggle_container">
<div class="page-header">
<h2> Get-HPCClusterActiveJobCount </h2>
<p>This counts how many Jobs are active on the grid at the current time.
This function is Deprecated - Use Get-HPCClusterActiveJobs Object and Count the Result</p>
<p></p>
</div>
<div>
<h3> Syntax </h3>
</div>
<div class="panel panel-default">
<div class='panel-body'>
<pre class="brush: ps">Get-HPCClusterActiveJobCount [[-LogFilePrefix] <String>] [[-Scheduler] <String>] [[-JobTemplates]
<String[]>] [[-JobState] <String[]>] [[-Logging] <Boolean>] [<CommonParameters>]</pre>
</div>
</div>
<div>
<h3> Parameters </h3>
<table class="table table-striped table-bordered table-condensed visible-on">
<thead>
<tr>
<th>Name</th>
<th class="visible-lg visible-md">Alias</th>
<th>Description</th>
<th class="visible-lg visible-md">Required?</th>
<th class="visible-lg">Pipeline Input</th>
<th class="visible-lg">Default Value</th>
</tr>
</thead>
<tbody>
<tr>
<td><nobr>-LogFilePrefix</nobr></td>
<td class="visible-lg visible-md"></td>
<td>Determines the prefixed log name</td>
<td class="visible-lg visible-md">false</td>
<td class="visible-lg">true (ByPropertyName)</td>
<td class="visible-lg"></td>
</tr>
<tr>
<td><nobr>-Scheduler</nobr></td>
<td class="visible-lg visible-md"></td>
<td>Determines the scheduler used - defaults to the environment variable</td>
<td class="visible-lg visible-md">false</td>
<td class="visible-lg">true (ByPropertyName)</td>
<td class="visible-lg">$env:CCP_SCHEDULER</td>
</tr>
<tr>
<td><nobr>-JobTemplates</nobr></td>
<td class="visible-lg visible-md"></td>
<td></td>
<td class="visible-lg visible-md">false</td>
<td class="visible-lg">true (ByPropertyName)</td>
<td class="visible-lg">@()</td>
</tr>
<tr>
<td><nobr>-JobState</nobr></td>
<td class="visible-lg visible-md"></td>
<td></td>
<td class="visible-lg visible-md">false</td>
<td class="visible-lg">true (ByPropertyName)</td>
<td class="visible-lg">@("Running","Queued")</td>
</tr>
<tr>
<td><nobr>-Logging</nobr></td>
<td class="visible-lg visible-md"></td>
<td>Boolean whether or not to create a log or just display host output</td>
<td class="visible-lg visible-md">false</td>
<td class="visible-lg">true (ByPropertyName)</td>
<td class="visible-lg">False</td>
</tr>
</tbody>
</table>
</div>
<div>
<h3> Outputs </h3>
<p>The output type is the type of the objects that the cmdlet emits.</p>
<ul><li>Int - The number of Jobs</li></ul>
</div>
<div class='panel panel-default'>
<div class='panel-heading'>
<h3 class='panel-title'> Note </h3>
</div>
<div class='panel-body'>Used as a shortcut check, If 0, no need to continue.</div>
</div>
<div>
<h3> Examples </h3>
</div>
<div class='panel panel-default'>
<div class='panel-body'>
<strong>EXAMPLE 1</strong>
<pre class="brush: ps">Get-HPCClusterActiveJobCount</pre>
<div></div>
</div>
</div>
<p class='pull-right'><a onclick='document.body.scrollTop = document.documentElement.scrollTop = 0;' style='cursor: pointer;'>Top of page</a>
<div>
<h3> Links </h3>
<div>
<ul>
<li class='psLink'><a href='#www.excelian.com' target='_top'>www.excelian.com</a></li>
</ul>
</div>
</div>
</div>
<div id="Get-HPCClusterActiveJobs" class="toggle_container">
<div class="page-header">
<h2> Get-HPCClusterActiveJobs </h2>
<p>This collects all running and queued HPC Job Objects.</p>
<p>When determining the current state of the Grid, it's important to be able to grab jobs. This was <br>written as a wrapper function for the Get-HPCJob call, <br>mainly due to the fact that the standard function errors on 0 jobs.</p>
</div>
<div>
<h3> Syntax </h3>
</div>
<div class="panel panel-default">
<div class='panel-body'>
<pre class="brush: ps">Get-HPCClusterActiveJobs [[-LogFilePrefix] <String>] [[-JobTemplates] <String[]>] [[-Scheduler]
<String>] [[-Logging] <Boolean>] [[-JobState] <String[]>] [<CommonParameters>]</pre>
</div>
</div>
<div>
<h3> Parameters </h3>
<table class="table table-striped table-bordered table-condensed visible-on">
<thead>
<tr>
<th>Name</th>
<th class="visible-lg visible-md">Alias</th>
<th>Description</th>
<th class="visible-lg visible-md">Required?</th>
<th class="visible-lg">Pipeline Input</th>
<th class="visible-lg">Default Value</th>
</tr>
</thead>
<tbody>
<tr>
<td><nobr>-LogFilePrefix</nobr></td>
<td class="visible-lg visible-md"></td>
<td>Determines the prefixed log name</td>
<td class="visible-lg visible-md">false</td>
<td class="visible-lg">true (ByPropertyName)</td>
<td class="visible-lg"></td>
</tr>
<tr>
<td><nobr>-JobTemplates</nobr></td>
<td class="visible-lg visible-md"></td>
<td>Used to limit the search to a specific Job Template Name</td>
<td class="visible-lg visible-md">false</td>
<td class="visible-lg">true (ByPropertyName)</td>
<td class="visible-lg"></td>
</tr>
<tr>
<td><nobr>-Scheduler</nobr></td>
<td class="visible-lg visible-md"></td>
<td>Determines the scheduler used - defaults to the environment variable</td>
<td class="visible-lg visible-md">false</td>
<td class="visible-lg">true (ByPropertyName)</td>
<td class="visible-lg">$env:CCP_SCHEDULER</td>
</tr>
<tr>
<td><nobr>-Logging</nobr></td>
<td class="visible-lg visible-md"></td>
<td>Boolean whether or not to create a log or just display host output</td>
<td class="visible-lg visible-md">false</td>
<td class="visible-lg">true (ByPropertyName)</td>
<td class="visible-lg">False</td>
</tr>
<tr>
<td><nobr>-JobState</nobr></td>
<td class="visible-lg visible-md"></td>
<td>Used to determine which Jobs should be included. Defaults to running and queued.</td>
<td class="visible-lg visible-md">false</td>
<td class="visible-lg">true (ByPropertyName)</td>
<td class="visible-lg">@("Running","Queued")</td>
</tr>
</tbody>
</table>
</div>
<div>
<h3> Outputs </h3>
<p>The output type is the type of the objects that the cmdlet emits.</p>
<ul><li>HPC Job Objects</li></ul>
</div>
<div class='panel panel-default'>
<div class='panel-heading'>
<h3 class='panel-title'> Note </h3>
</div>
<div class='panel-body'>Used as a shortcut to collect Job Objects.</div>
</div>
<div>
<h3> Examples </h3>
</div>
<div class='panel panel-default'>
<div class='panel-body'>
<strong>EXAMPLE 1</strong>
<pre class="brush: ps">Get-HPCClusterActiveJobs -Jobstate queued -JobTemplates Default_Job_Template</pre>
<div>Get-HPCClusterActiveJobs</div>
</div>
</div>
<p class='pull-right'><a onclick='document.body.scrollTop = document.documentElement.scrollTop = 0;' style='cursor: pointer;'>Top of page</a>
<div>
<h3> Links </h3>
<div>
<ul>
<li class='psLink'><a href='#www.excelian.com' target='_top'>www.excelian.com</a></li>
</ul>
</div>
</div>
</div>
<div id="Get-HPCClusterBrokerCheck" class="toggle_container">
<div class="page-header">
<h2> Get-HPCClusterBrokerCheck </h2>
</div>
<div>
<h3> Parameters </h3>
<table class="table table-striped table-bordered table-condensed visible-on">
<thead>
<tr>
<th>Name</th>
<th class="visible-lg visible-md">Alias</th>
<th>Description</th>
<th class="visible-lg visible-md">Required?</th>
<th class="visible-lg">Pipeline Input</th>
<th class="visible-lg">Default Value</th>
</tr>
</thead>
<tbody>
<tr>
<td><nobr>-BrokerThreshold</nobr></td>
<td class="visible-lg visible-md">None</td>
<td></td>
<td class="visible-lg visible-md">false</td>
<td class="visible-lg">false</td>
<td class="visible-lg"></td>
</tr>
<tr>
<td><nobr>-Scheduler</nobr></td>
<td class="visible-lg visible-md">None</td>
<td></td>
<td class="visible-lg visible-md">false</td>
<td class="visible-lg">false</td>
<td class="visible-lg"></td>
</tr>
</tbody>
</table>
</div>
</div>
<div id="Get-HPCClusterElements" class="toggle_container">
<div class="page-header">
<h2> Get-HPCClusterElements </h2>
<p>This gets the current elements and setup of the Grid in the form of an object.</p>
<p>Collates the information about the Grid (spread across various areas) and produces a single object. <br>Not the most performant of calls but does allow you to grab what you need.<br>Part of the problem is that it has to go and get the services available!</p>
</div>
<div>
<h3> Syntax </h3>
</div>
<div class="panel panel-default">
<div class='panel-body'>
<pre class="brush: ps">Get-HPCClusterElements [[-LogFilePrefix] <String>] [[-Logging] <Boolean>] [[-Scheduler] <String>]
[[-FetchServices] <Boolean>] [[-ServiceConfigLocation] <String>] [<CommonParameters>]</pre>
</div>
</div>
<div>
<h3> Parameters </h3>
<table class="table table-striped table-bordered table-condensed visible-on">
<thead>
<tr>
<th>Name</th>
<th class="visible-lg visible-md">Alias</th>
<th>Description</th>
<th class="visible-lg visible-md">Required?</th>
<th class="visible-lg">Pipeline Input</th>
<th class="visible-lg">Default Value</th>
</tr>
</thead>
<tbody>
<tr>
<td><nobr>-LogFilePrefix</nobr></td>
<td class="visible-lg visible-md"></td>
<td>Determines the prefixed log name</td>
<td class="visible-lg visible-md">false</td>
<td class="visible-lg">true (ByPropertyName)</td>
<td class="visible-lg"></td>
</tr>
<tr>
<td><nobr>-Logging</nobr></td>
<td class="visible-lg visible-md"></td>
<td></td>
<td class="visible-lg visible-md">false</td>
<td class="visible-lg">true (ByPropertyName)</td>
<td class="visible-lg">False</td>
</tr>
<tr>
<td><nobr>-Scheduler</nobr></td>
<td class="visible-lg visible-md"></td>
<td>Determines the scheduler used - defaults to the environment variable</td>
<td class="visible-lg visible-md">false</td>
<td class="visible-lg">true (ByPropertyName)</td>
<td class="visible-lg">$env:CCP_SCHEDULER</td>
</tr>
<tr>
<td><nobr>-FetchServices</nobr></td>
<td class="visible-lg visible-md"></td>
<td>Getting services takes a little longer (needs access to ServiceConfig path) - turn it off if you <br>don't need it</td>
<td class="visible-lg visible-md">false</td>
<td class="visible-lg">true (ByPropertyName)</td>
<td class="visible-lg">True</td>
</tr>
<tr>
<td><nobr>-ServiceConfigLocation</nobr></td>
<td class="visible-lg visible-md"></td>
<td>In order to get the services, we need to know the location on the Scheduler of the <br>HpcServiceRegistration folder - which is set to the default. If you've changed it, you'll need to <br>set it</td>
<td class="visible-lg visible-md">false</td>
<td class="visible-lg">true (ByPropertyName)</td>
<td class="visible-lg">HpcServiceRegistration</td>
</tr>