Jump to content

User:Caleb Cooper/sandbox: Difference between revisions

From pool
Content deleted Content added
No edit summary
No edit summary
Tag: 2017 source edit
 
(37 intermediate revisions by the same user not shown)
Line 1: Line 1:
{| class="wikitable filterable" width="300"
{{#drawio:ChartName|type=svg|max-width=500px}}
|-

!ID
[[File:Mcafee.png|150px]]
! class="unfilterable" |Name
!Class
!Gender
!Test
|-
|001||Tom||A||M
|
|-
|002||Dan||A||M
|
|-
|003||Ryan||B||M
|
|-
|004||Christine||C||F
|
|-
|005||Jane||D||F
|
|-
|006||Albert||D||M
|
|-
|007||Rose||A||F
|
|-
|008||Viola||B||F
|
|-
|009||Jeramy||C||M
|
|-
|010||Ken||D||M
|
|}


{| class="wikitable sortable" width="300"

== 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
!
|-
|-
!ID
! class="unfilterable" |Name
!Class
!Gender
!Test
|-
|001||Tom||A||M
|
|
|k
|-
|002||Dan||A||M
|
|
|-
|003||Ryan||B||M
|
|
|-
|-
|004||Christine||C||F
|e
|
|
|-
|005||Jane||D||F
|
|
|-
|006||Albert||D||M
|
|
|-
|-
|007||Rose||A||F
|
|
|-
|008||Viola||B||F
|
|
|r
|-
|009||Jeramy||C||M
|
|-
|010||Ken||D||M
|
|
|}
|}

<br />

<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
</pre>
<br/><br/>


<syntaxhighlight lang="text" highlight="4,7" class="scroll">
<syntaxhighlight lang="text" highlight="4,7" class="scroll">
Line 56: Line 106:
</syntaxhighlight>
</syntaxhighlight>


== Issue Two ==

== Issue 2 ==
{{Expand|This expands|
{{Expand|This expands|
<pre>
<pre>
Line 64: Line 113:
asdf
asdf
</pre>}}
</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>

Latest revision as of 10:54, 16 April 2024

ID Name Class Gender Test
001 Tom A M
002 Dan A M
003 Ryan B M
004 Christine C F
005 Jane D F
006 Albert D M
007 Rose A F
008 Viola B F
009 Jeramy C M
010 Ken D M
ID Name Class Gender Test
001 Tom A M
002 Dan A M
003 Ryan B M
004 Christine C F
005 Jane D F
006 Albert D M
007 Rose A F
008 Viola B F
009 Jeramy C M
010 Ken D M


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



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

Issue Two

This expands
asdf
<box>asfs</box>
asdf