Jump to content

User:Caleb Cooper/sandbox: Difference between revisions

From pool
Content deleted Content added
No edit summary
Tag: 2017 source edit
Replaced content with "{{Dragon|test}}"
Tags: Replaced 2017 source edit
Line 1: Line 1:
{{col-begin}}
{{Dragon|test}}
{{col-break}}
<pre>
# one
#:&lt;pre&gt;
#::some stuff
#::some more stuff&lt;/pre&gt;
# two
</pre>
{{col-break}}
# one
#:<pre>
#::some stuff
#::some more stuff</pre>
# two
{{col-break}}
{{col-end}}

asdf

[[wikipedia:CALC]]

[[File:Mcafee.png|150px]]

<math>{}_pF_q\left({a_1, \ldots, a_p \atop b_1, \ldots, b_q}; z\right)</math>


<math>\begin{bmatrix}
3 & \cdots & 9 \\
\vdots & \ddots & \vdots \\
1 & \cdots & 7
\end{bmatrix}</math>

== Issue 1 (no issue in 1.35) ==
<pre class="shell">
Driver Status: Ok
RAID LUN 0 Degraded.<point-here-tr>
*!! RAID LUN contains 256 lost blocks. !!*
(raidtool -W 0) clears blocks.
(raidtool -w 0) lists blocks.
14 Drives (f,2,14,11,8,10,12,1,3,5,4,9,15,13)
<box>RAID 50</box> (64KB sectPerSU)
Capacity 5,185,085,374,464 bytes vc
</pre>
<br/>
{| class="wikitable"
|+
!1
!2
!2
!
|-
|
|k
|
|
|-
|e
|
|
|2
|-
|
|3
|r
|
|}
<br />

<syntaxhighlight lang="text" highlight="4,7" class="scroll">
PagePool PagePool Folder Class Speed DiskClassStr Unallocated Unallocated Total Disk AddSpa AddSpa AddSpace AddSpace AddSpace AddSpace Restripe Active
Index ClassInd Index Index Index PageCount BlockCount BlockCount Count Stats Failur Failure OptimalBlockCou OptimalPageCoun Debug Reserved Controller
======= ======== ====== ======== === =============== ============= =============== ============= ====== ==== ====== ====== =============== ============= ============================== ========= ==========
1 4 3 6 1 <box>Write-Intensive</box> 503203 4122238784 7814439360 20 0 0 (0) Fals 244201230 59620 (1) None 61640
1 5 3 6 1 Write-Intensive 805125 4122238784 7814439360 20 0 0 (0) Fals 390721968 95392 (1) None 61640
1 6 3 6 1 Write-Intensive 885638 4122238784 7814439360 20 0 0 (0) Fals 429794164 104931 (1) None 61640
1 13 3 2 2 10K 3401762 27867228535 33405320535 95 0 0 (0) Fals 1043916266 254863 (1) None 61640
1 14 3 2 2 10K 5442819 27867228535 33405320535 95 0 0 (0) Fals 1670266026 407780 (1) None 61640
1 15 3 2 2 10K 5987100 27867228535 33405320535 95 0 0 (0) Fals 1837292629 448558 (1) None 61640
1 16 3 2 1 10K 11039261 90433618553 133621282425 95 0 0 (0) Fals 4175665075 1019450 (1) None 61640
1 17 3 2 1 10K 17662817 90433618553 133621282425 95 0 0 (0) Fals <point-here-tl>6681064120 1631120 (1) None 61640
1 18 3 2 1 10K 19429098 90433618553 133621282425 95 1 0 (0) Fals 7349170532 1794232 (1) None 61640
Walk: Display 9 of 9
</syntaxhighlight>


== Issue 2 ==
{{Expand|This expands|
<pre>
asdf
<box>asfs</box>
asdf
</pre>}}


== Issue 3 ==
: {{code|zmq_cmd_cleanup_dummy_storage_network.py}}
<syntaxhighlight lang=bash line highlight=36>
#!/usr/bin/python
###########################################################################
# Copyright (C) Dell EMC 2018
# All rights reserved.
# Licensed material -- property of Dell EMC
#
###########################################################################

import json
import sys

sys.path.append('/cyc_host/cyc_service/lib')
sys.path.append('/cyc_host/cyc_service/lib/util')

from zmq_cp_command import *
from util import file_util, log_service


###########################################################################
# Class to send a request to the CP to clean up storage dummy network.
###########################################################################
class ZmqCpCmdCleanupStorageDummyNetwork(ZmqCpCommand):
cp_command_path = "com.emc.cyclone.contexts.networkconfiguration.domain.commands.ndu.CleanupDummyStorageNetworkCommand"

def __init__(self, debug=False, timeout_in_secs=None):

super(ZmqCpCmdCleanupStorageDummyNetwork, self).__init__("cleanup_storage_dummy_network", self.cp_command_path,
debug=debug, timeout_in_secs=timeout_in_secs)

def response_validator(self):
''' response_validator
Determine if the response has all required info.'''
super(ZmqCpCmdCleanupStorageDummyNetwork, self).response_validator()


<box>def cleanup_storage_dummy_network():</box>
"""
This method cleans up storage dummy network.
"""

try:
rsp = ZmqCpCmdCleanupStorageDummyNetwork().execute()
if rsp[ZmqCpCommand.response_status_tag] == "OK":
returnval = "SUCCESS"
else:
returnval = "FAILURE"

except ZmqCpCommandException as err:
log_service.get_logger().error("Failed to execute upload zmq command: {}".format(err))
returnval = "FAILURE"
return returnval



if __name__ == '__main__':
ret = cleanup_storage_dummy_network()
if ret == "SUCCESS":
print("Dummy storage network has been removed successfully")
else:
print("Failed to remove dummy storage network")

</syntaxhighlight>

Revision as of 14:05, 17 May 2023

 
Here be Dragons!   
test