{"id":3694,"date":"2019-02-12T16:09:38","date_gmt":"2019-02-12T16:09:38","guid":{"rendered":"https:\/\/cyflexdoc.wpengine.com\/usage-help-manual\/1-utilities-and-user-commands\/get_hostname\/"},"modified":"2026-02-12T13:04:55","modified_gmt":"2026-02-12T18:04:55","slug":"get_hostname","status":"publish","type":"page","link":"https:\/\/cyflex.com\/index.php\/usage-help-manual\/11-utilities-and-user-commands\/get_hostname\/","title":{"rendered":"get_hostname"},"content":{"rendered":"<h3>Purpose:<\/h3>\n<dl>\n<dd>\n<p>Retrieve the hostname associated with a specified cell name and store it in a specified CyFlex string variable. If the variable does not exist, it will be created.<\/p>\n<\/dd>\n<\/dl>\n<h3>Enter:<\/h3>\n<dl>\n<dd>\n<p><strong>get_hostname<\/strong> &lt;cell_name&gt; &lt;string_var&gt;<\/p>\n<\/dd>\n<\/dl>\n<h3>Where:<\/h3>\n<dl>\n<dd>\n<div>\n<table style=\"width: 65.8501%;\" cellspacing=\"0\" cellpadding=\"0\">\n<colgroup>\n<col \/>\n<col \/> <\/colgroup>\n<tbody>\n<tr>\n<td style=\"width: 13.7725%;\">\n<p>cell_name<\/p>\n<\/td>\n<td style=\"width: 85.9281%;\">\n<p>Specify the cell name for where to retrieve the hostname<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 13.7725%;\">\n<p>string_var<\/p>\n<\/td>\n<td style=\"width: 85.9281%;\">\n<p>Specify the name of the CyFlex string variable where the hostname will be stored.<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/dd>\n<\/dl>\n<h3>Example:<\/h3>\n<dl>\n<dd>\n<p><strong>get_hostname<\/strong> 214 my_string<br \/>\nThe above command finds the hostname for cell name 214 and stores it into the variable my_string.\u00a0<\/p>\n<\/dd>\n<\/dl>\n<h3>Notes:<\/h3>\n<dl>\n<dd>\n<p>The program uses the \/data\/cell_map file for hostname lookup and initializes for authentication support.<\/p>\n<\/dd>\n<\/dl>\n<h3>See Also:<\/h3>\n<dl>\n<dd>\n<p>&nbsp;<\/p>\n<\/dd>\n<\/dl>\n","protected":false},"excerpt":{"rendered":"<p>Purpose: Retrieve the hostname associated with a specified cell name and store it in a specified CyFlex string variable. If the variable does not exist, it will be created. Enter: get_hostname &lt;cell_name&gt; &lt;string_var&gt; Where: cell_name Specify the cell name for where to retrieve the hostname string_var Specify the name of the CyFlex string variable where [&hellip;]<\/p>\n","protected":false},"author":47,"featured_media":0,"parent":1948,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-3694","page","type-page","status-publish","hentry"],"post_mailing_queue_ids":[],"_links":{"self":[{"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/pages\/3694","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/users\/47"}],"replies":[{"embeddable":true,"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/comments?post=3694"}],"version-history":[{"count":0,"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/pages\/3694\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/pages\/1948"}],"wp:attachment":[{"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/media?parent=3694"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}