-
Notifications
You must be signed in to change notification settings - Fork 267
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
62 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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><= 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 => $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 => $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="vmhana02" | ||
Hosts/vmhana01/sync_state="PRIM" | ||
Hosts/vmhana01/vhost="vmhana01" | ||
Hosts/vmhana02/remoteHost="vmhana01" | ||
Hosts/vmhana02/sync_state="SOK" | ||
Hosts/vmhana02/vhost="vmhana02" | ||
result in | ||
{ | ||
vmhana01 => { | ||
remoteHost => 'vmhana02', | ||
sync_state => 'PRIM', | ||
vhost => 'vmhana01', | ||
}, | ||
vmhana02 => { | ||
remoteHost => 'vmhana01', | ||
sync_state => 'SOK', | ||
vhost => 'vmhana02', | ||
}, | ||
}</code></pre> | ||
|
||
|
||
</body> | ||
|
||
</html> | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters