Skip to content

Commit

Permalink
deploy: f10585d
Browse files Browse the repository at this point in the history
  • Loading branch information
mpagot committed Feb 6, 2024
1 parent 9d1d3fd commit 2e5f4ed
Show file tree
Hide file tree
Showing 3 changed files with 62 additions and 5 deletions.
1 change: 1 addition & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@
<li><a href=rescuecdstep.html>rescuecdstep.pm</a></li>
<li><a href=s390base.html>s390base.pm</a></li>
<li><a href=saltbase.html>saltbase.pm</a></li>
<li><a href=saputils.html>saputils.pm</a></li>
<li><a href=scheduler.html>scheduler.pm</a></li>
<li><a href=selenium.html>selenium.pm</a></li>
<li><a href=serial_terminal.html>serial_terminal.pm</a></li>
Expand Down
59 changes: 59 additions & 0 deletions saputils.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
<?xml version="1.0" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>lib/saputils.pm</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<link rel='stylesheet' href='./style.css' />
</head>

<body>



<ul id="index"><li><a href="./index.html"><i>&lt;= Back to file list</i></a></li>
<li><a href="#SYNOPSIS">SYNOPSIS</a>
<ul>
<li><a href="#calculate_hana_topology-calculate_hana_topology-input-saphanasr_showAttr_format_script_output">calculate_hana_topology calculate_hana_topology([input =&gt; $saphanasr_showAttr_format_script_output]);</a></li>
</ul>
</li>
</ul><h1>lib/saputils.pm</h1>

<h1 id="SYNOPSIS">SYNOPSIS</h1>

<p>Package with utility functionality for tests on SLES for SAP Applications.</p>

<p>This package is a stateless library. To keep this library as generic as possible avoid as much as possible any other dependency usage, like other baseclass or testapi. Avoid using get_var/set_var at this level.</p>

<h2 id="calculate_hana_topology-calculate_hana_topology-input-saphanasr_showAttr_format_script_output">calculate_hana_topology calculate_hana_topology([input =&gt; $saphanasr_showAttr_format_script_output]);</h2>

<pre><code>Expect `SAPHanaSR-showAttr --format=script` as input.
Parses this input, returns a hash of hashes containing values for each host.

Output like:
Hosts/vmhana01/remoteHost=&quot;vmhana02&quot;
Hosts/vmhana01/sync_state=&quot;PRIM&quot;
Hosts/vmhana01/vhost=&quot;vmhana01&quot;
Hosts/vmhana02/remoteHost=&quot;vmhana01&quot;
Hosts/vmhana02/sync_state=&quot;SOK&quot;
Hosts/vmhana02/vhost=&quot;vmhana02&quot;
result in
{
vmhana01 =&gt; {
remoteHost =&gt; &#39;vmhana02&#39;,
sync_state =&gt; &#39;PRIM&#39;,
vhost =&gt; &#39;vmhana01&#39;,
},
vmhana02 =&gt; {
remoteHost =&gt; &#39;vmhana01&#39;,
sync_state =&gt; &#39;SOK&#39;,
vhost =&gt; &#39;vmhana02&#39;,
},
}</code></pre>


</body>

</html>


7 changes: 2 additions & 5 deletions sles4sap_publiccloud.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<li><a href="#run_cmd-run_cmd-cmd-command-runas-user-timeout-60">run_cmd run_cmd(cmd =&gt; &#39;command&#39;, [runas =&gt; &#39;user&#39;, timeout =&gt; 60]);</a></li>
<li><a href="#get_promoted_hostname-get_promoted_hostname">get_promoted_hostname() get_promoted_hostname();</a></li>
<li><a href="#sles4sap_cleanup">sles4sap_cleanup</a></li>
<li><a href="#get_hana_topology-get_hana_topology-hostname-hostname">get_hana_topology get_hana_topology([hostname =&gt; $hostname]);</a></li>
<li><a href="#get_hana_topology-Parses-command-output-returns-hash-of-hashes-containing-values-for-each-host">get_hana_topology Parses command output, returns hash of hashes containing values for each host.</a></li>
<li><a href="#is_hana_online-is_hana_online-timeout-120-wait_for_start-false">is_hana_online is_hana_online([timeout =&gt; 120, wait_for_start =&gt; &#39;false&#39;]);</a></li>
<li><a href="#is_hana_resource_running-is_hana_resource_running-timeout-60">is_hana_resource_running is_hana_resource_running([timeout =&gt; 60]);</a></li>
<li><a href="#stop_hana-stop_hana-timeout-timeout-method-method">stop_hana stop_hana([timeout =&gt; $timeout, method =&gt; $method]);</a></li>
Expand Down Expand Up @@ -66,10 +66,7 @@ <h2 id="sles4sap_cleanup">sles4sap_cleanup</h2>

<pre><code>Clean up Network peering and qesap deployment</code></pre>

<h2 id="get_hana_topology-get_hana_topology-hostname-hostname">get_hana_topology get_hana_topology([hostname =&gt; $hostname]);</h2>

<pre><code>Parses command output, returns list of hashes containing values for each host.
If hostname defined, returns hash with values only for host specified.</code></pre>
<h2 id="get_hana_topology-Parses-command-output-returns-hash-of-hashes-containing-values-for-each-host">get_hana_topology Parses command output, returns hash of hashes containing values for each host.</h2>

<h2 id="is_hana_online-is_hana_online-timeout-120-wait_for_start-false">is_hana_online is_hana_online([timeout =&gt; 120, wait_for_start =&gt; &#39;false&#39;]);</h2>

Expand Down

0 comments on commit 2e5f4ed

Please sign in to comment.