Jump to content

Template:Set: Difference between revisions

From pool
[unchecked revision][unchecked revision]
Content deleted Content added
No edit summary
No edit summary
Line 1: Line 1:
{{#switch: {{{warning|{{#lst:Cli:{{{1}}}|warning}}}}}| VeryDangerous = <div style="float:left" title="IMPORTANT:This set command can cause Data Unavailable or Data Loss if used incorrectly, CSE only!">[[File:Skull_sm_40.png]]</div>| NotDangerous = <div style="float:left" title="Careful Now!">[[File:One_Pixel.png]]</div>| #default = <div style="float:left" title="IMPORTANT:No set command should ever be run without Senior Engineer verification!">[[File:Warn_sm_20.png]]</div>}}
{{#switch: {{{warning|{{#lst:Cli:{{{1}}}|warning}}}}}| VeryDangerous = <div style="float:left" title="IMPORTANT:This set command can cause Data Unavailable or Data Loss if used incorrectly, CSE only!">[[File:Skull_sm_40.png]]</div>| NotDangerous = <div style="float:left" title="Careful Now!">[[File:One_Pixel.png]]</div>| #default = <div style="float:left" title="IMPORTANT:No set command should ever be run without Senior Engineer verification!">[[File:Warn_sm_20.png]]</div>}}
{{#ifexist:Cli:{{{1}}}|
{{#ifexist:Cli:{{{1}}}|
<div class="mw-collapsible {{#if:{{{open|}}}||mw-collapsed}} {{#if:{{{color|}}}|{{{color}}}}} force-toggle-float-left" data-collapsetext="-" data-expandtext="+" style="overflow:hidden; display: inline;">[[Cli:{{{1}}}|<span style="color: red; display: inline;" title="{{#lst:Cli:{{{1}}}|description}} {{#if:{{#lst:Cli:{{{1}}}|version}}|{{#ifeq:{{#lst:Cli:{{{1}}}|version}}|07.0x.0y||(ver. {{#lst:Cli:{{{1}}}|version}} )}}|}}">'''{{#if:{{{2|}}}|{{#ifeq:{{#len:{{{2}}}}}|0|{{{1}}}|{{{alt-text|{{{2|{{{1}}}}}}}}}}}|{{{alt-text|{{{2|{{{1}}}}}}}}}}}'''</span>]]<div class="mw-collapsible-content shell" style="align: left;">{{#if:{{{2|}}}|{{#ifeq:{{#len:{{{2}}}}}|0|{{{2}}}|{{{example|{{{3|{{#lst:Cli:{{{1}}}|{{{section|example}}}}}}}}}}}}}|{{{example|{{{3|{{#lst:Cli:{{{1}}}|{{{section|example}}}}}}}}}}}}}</div></div>{{#if:{{{inline|}}}||<br><br style="clear:both;">}}
<div class="mw-collapsible {{#if:{{{open|}}}||mw-collapsed}} force-toggle-float-left" data-collapsetext="-" data-expandtext="+" style="overflow:hidden; display: inline;">[[Cli:{{{1}}}|<span style="color: red; display: inline;" title="{{#lst:Cli:{{{1}}}|description}} {{#if:{{#lst:Cli:{{{1}}}|version}}|{{#ifeq:{{#lst:Cli:{{{1}}}|version}}|07.0x.0y||(ver. {{#lst:Cli:{{{1}}}|version}} )}}|}}">'''{{#if:{{{2|}}}|{{#ifeq:{{#len:{{{2}}}}}|0|{{{1}}}|{{{alt-text|{{{2|{{{1}}}}}}}}}}}|{{{alt-text|{{{2|{{{1}}}}}}}}}}}'''</span>]]<div class="mw-collapsible-content {{#if:{{{color|}}}|{{#ifeq:{{{color}}}|default||{{{color}}}}}|shell}}" style="align: left;">{{#if:{{{2|}}}|{{#ifeq:{{#len:{{{2}}}}}|0|{{{2}}}|{{{example|{{{3|{{#lst:Cli:{{{1}}}|{{{section|example}}}}}}}}}}}}}|{{{example|{{{3|{{#lst:Cli:{{{1}}}|{{{section|example}}}}}}}}}}}}}</div></div>{{#if:{{{inline|}}}||<br><br style="clear:both;">}}
|
|
<div class="mw-collapsible {{#if:{{{open|}}}||mw-collapsed}} {{#if:{{{color|}}}|{{{color}}}}} force-toggle-float-left" data-collapsetext="-" data-expandtext="+" style="overflow:hidden; display: inline;"><span style="color: red; display: inline;">'''{{#if:{{{2|}}}|{{#ifeq:{{#len:{{{2}}}}}|0|{{{1}}}|{{{alt-text|{{{2|{{{1}}}}}}}}}}}|{{{alt-text|{{{2|{{{1}}}}}}}}}}}'''</span><div class="mw-collapsible-content shell" style="align: left;">{{#if:{{{2|}}}|{{#ifeq:{{#len:{{{2}}}}}|0|{{{2}}}|{{{example|{{{3|<pre>Need an Example</pre>}}}}}}}}}}</div></div>{{#if:{{{inline|}}}||<br><br style="clear:both;">}}
<div class="mw-collapsible {{#if:{{{open|}}}||mw-collapsed}} force-toggle-float-left" data-collapsetext="-" data-expandtext="+" style="overflow:hidden; display: inline;"><span style="color: red; display: inline;">'''{{#if:{{{2|}}}|{{#ifeq:{{#len:{{{2}}}}}|0|{{{1}}}|{{{alt-text|{{{2|{{{1}}}}}}}}}}}|{{{alt-text|{{{2|{{{1}}}}}}}}}}}'''</span><div class="mw-collapsible-content {{#if:{{{color|}}}|{{#ifeq:{{{color}}}|default||{{{color}}}}}|shell}}" style="align: left;">{{#if:{{{2|}}}|{{#ifeq:{{#len:{{{2}}}}}|0|{{{2}}}|{{{example|{{{3|<pre>Need an Example</pre>}}}}}}}}}}</div></div>{{#if:{{{inline|}}}||<br><br style="clear:both;">}}
}}<noinclude>
}}

<noinclude>
Example Code:
Example Code:
<pre>{{Set|scsi i device undoreadyforremoval|scsi i device undoreadyforremoval <scsi device id>|sect=YourSectionName
<pre>{{Set|scsi i device undoreadyforremoval|scsi i device undoreadyforremoval <scsi device id>|sect=YourSectionName

Revision as of 19:21, 30 March 2020

{{{1}}}



Example Code:

{{Set|scsi i device undoreadyforremoval|scsi i device undoreadyforremoval <scsi device id>|sect=YourSectionName
<pre>
scsi i device undoreadyforremoval 3799799152
<26296 (?)>
26296 12/12/2013-18:01:04 WARNING SCSIIntr NoteError scsiDevice.cpp 18181
0 SCSIDevice=3799799152 SN=6SL6AMSY SendInquiry: No path available for delivery Disk=6,4 Down State=InqStd

26296 12/12/2013-18:01:04 WARNING LSI2SAS PCIDEV06 Run lsi2SasStMachRun.cxx 711
0 [RPORT 6 4 9 105] UndoReadyForRemoval called.

26296 12/12/2013-18:01:04 WARNING LSI2SAS PCIDEV02 Run lsi2SasStMachRun.cxx 711
0 [RPORT 5 4 3 62] UndoReadyForRemoval called.
<26296 (?)>
</pre>
}}

Example Output:

scsi i device undoreadyforremoval <scsi device id>
scsi i device undoreadyforremoval 3799799152
<26296 (?)>
26296 12/12/2013-18:01:04 WARNING SCSIIntr NoteError scsiDevice.cpp 18181
0 SCSIDevice=3799799152 SN=6SL6AMSY SendInquiry: No path available for delivery Disk=6,4 Down State=InqStd

26296 12/12/2013-18:01:04 WARNING LSI2SAS PCIDEV06 Run lsi2SasStMachRun.cxx 711
0 [RPORT 6 4 9 105] UndoReadyForRemoval called.

26296 12/12/2013-18:01:04 WARNING LSI2SAS PCIDEV02 Run lsi2SasStMachRun.cxx 711
0 [RPORT 5 4 3 62] UndoReadyForRemoval called.
<26296 (?)>



Show a Command with a collapsed div containing an example

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Command Name1

Command Name, will like match page name describing this command

Example
volume show
Stringrequired
Alternative Command Description2

Either Alternate Description of Command or an Example

Example
volume show where status = offline
Stringoptional
Sample output3

An example output of runing this command

Example
&lt;pre&gt;volume show where status = offline&lt;/pre&gt;
Stringoptional
Pre Colorcolor

Color of Pre-formatted Example

Example
black-green, blue-white, black-white, net, esx
Stringoptional
Name of page sectionSection

Name of page section where pre-formatted example is found

Example
example, example2
Stringoptional
Openopen

Shows pre-formatted example as open by default

Example
1
Booleanoptional
Inlineinline

Removes all new lines / carraige returns

Example
1
Booleanoptional
Sample outputexample

An example output of runing this command

Example
<pre>volume show where status = offline</pre>
Stringoptional
Alternative Command Descriptionalt-text

Either Alternate Description of Command or an Example

Example
volume show where status = offline
Stringoptional