<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Ignite: passing variables to scripts in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/ignite-passing-variables-to-scripts/m-p/2840486#M517652</link>
    <description>Hi admins:&lt;BR /&gt;&lt;BR /&gt;Consider this configuration file for Ignite:&lt;BR /&gt;--snip--&lt;BR /&gt;# Adding Ignite's additional configuration controls&lt;BR /&gt;&lt;BR /&gt;_OND_PROJECT = {&lt;BR /&gt; "BM",&lt;BR /&gt; "SMS"&lt;BR /&gt;}&lt;BR /&gt;_OND_PROJECT help_text "Reference platform project"&lt;BR /&gt;init _OND_PROJECT = "SMS"&lt;BR /&gt;_OND_PROJECT visible_if (sw_sel "OND reference platform archive")&lt;BR /&gt;&lt;BR /&gt;init _OND_REF_PLAT = "&lt;PLEASE_CHANGE_ME&gt;"&lt;BR /&gt;_OND_REF_PLAT help_text "Reference platform name"&lt;BR /&gt;_OND_REF_PLAT visible_if (sw_sel "OND reference platform archive")&lt;BR /&gt;&lt;BR /&gt;# Defining customization&lt;BR /&gt;&lt;BR /&gt;sw_source "OND reference platform archive" {&lt;BR /&gt;&lt;BR /&gt; description = "OND reference platform archive"&lt;BR /&gt; source_format = CMD&lt;BR /&gt;&lt;BR /&gt; post_config_script += ${_OND_INSTALL_PATH}+"/scripts/ref_plat/custom/ref_plat_archive_creation.post_config"&lt;BR /&gt;# post_config_script += ${_OND_INSTALL_PATH}+"/scripts/common/make_sys_image -d /mnt/ref_plat -s local -n "+${system_name}+".gz -w /mnt/ref_plat/"+${system_name}+".log -m t -c g -l 2 -u -v"&lt;BR /&gt; final_script += ${_OND_INSTALL_PATH}+"/scripts/ref_plat/custom/ref_plat_archive_creation.final"&lt;BR /&gt;&lt;BR /&gt; load_order = 5&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;sw_sel "OND reference platform archive" {&lt;BR /&gt;&lt;BR /&gt; description = "OND scripts for reference platform archive creation"&lt;BR /&gt;&lt;BR /&gt; sw_source = "OND reference platform archive"&lt;BR /&gt; sw_category = "OND"&lt;BR /&gt;&lt;BR /&gt; exrequisite = "OND generic archive"&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;(sw_sel "OND reference platform archive") {&lt;BR /&gt;&lt;BR /&gt; (_OND_PROJECT ~ "^[A-Za-z0-9_.-]+$") {&lt;BR /&gt;  note += "OND project name validated."&lt;BR /&gt;  env_vars = "_OND_PROJECT="+${_OND_PROJECT}&lt;BR /&gt; } else {&lt;BR /&gt;  error += "OND project name contains one or more invalid characters. Installation cannot proceed."&lt;BR /&gt; }&lt;BR /&gt;&lt;BR /&gt; (_OND_REF_PLAT ~ "^[A-Za-z0-9_.-]+$") {&lt;BR /&gt;  note += "OND reference platform name validated."&lt;BR /&gt;  env_vars = "_OND_REF_PLAT="+${_OND_REF_PLAT}&lt;BR /&gt; } else {&lt;BR /&gt;  error += "OND reference platform name contains one or more invalid characters. Installation cannot proceed."&lt;BR /&gt; }&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;--snip--&lt;BR /&gt;This config file adds two controls in the 'Additional parameters' screen if ever user selects the sw_sel in the Software tab.&lt;BR /&gt;&lt;BR /&gt;Now I check the syntax of variable _OND_REF_PLAT to make sure user has renamed it.&lt;BR /&gt;Once user has renamed it, I validate it and I would like to set the env_var _OND_REF_PLAT to it.&lt;BR /&gt;&lt;BR /&gt;But Ignite does not change it once it has been initially set to '&lt;PLEASE_CHANGE_ME&gt;'...&lt;BR /&gt;&lt;BR /&gt;I don't know how to set an additional parameter and pass it to an env_var once it has been modified, to make sure that my post_config scripts can use it.&lt;BR /&gt;&lt;BR /&gt;Any idea?&lt;BR /&gt;&lt;BR /&gt;Thanks!&lt;BR /&gt;&lt;BR /&gt;/Brian&lt;/PLEASE_CHANGE_ME&gt;&lt;/PLEASE_CHANGE_ME&gt;</description>
    <pubDate>Thu, 07 Nov 2002 11:37:53 GMT</pubDate>
    <dc:creator>Brian Kennedy</dc:creator>
    <dc:date>2002-11-07T11:37:53Z</dc:date>
    <item>
      <title>Ignite: passing variables to scripts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ignite-passing-variables-to-scripts/m-p/2840486#M517652</link>
      <description>Hi admins:&lt;BR /&gt;&lt;BR /&gt;Consider this configuration file for Ignite:&lt;BR /&gt;--snip--&lt;BR /&gt;# Adding Ignite's additional configuration controls&lt;BR /&gt;&lt;BR /&gt;_OND_PROJECT = {&lt;BR /&gt; "BM",&lt;BR /&gt; "SMS"&lt;BR /&gt;}&lt;BR /&gt;_OND_PROJECT help_text "Reference platform project"&lt;BR /&gt;init _OND_PROJECT = "SMS"&lt;BR /&gt;_OND_PROJECT visible_if (sw_sel "OND reference platform archive")&lt;BR /&gt;&lt;BR /&gt;init _OND_REF_PLAT = "&lt;PLEASE_CHANGE_ME&gt;"&lt;BR /&gt;_OND_REF_PLAT help_text "Reference platform name"&lt;BR /&gt;_OND_REF_PLAT visible_if (sw_sel "OND reference platform archive")&lt;BR /&gt;&lt;BR /&gt;# Defining customization&lt;BR /&gt;&lt;BR /&gt;sw_source "OND reference platform archive" {&lt;BR /&gt;&lt;BR /&gt; description = "OND reference platform archive"&lt;BR /&gt; source_format = CMD&lt;BR /&gt;&lt;BR /&gt; post_config_script += ${_OND_INSTALL_PATH}+"/scripts/ref_plat/custom/ref_plat_archive_creation.post_config"&lt;BR /&gt;# post_config_script += ${_OND_INSTALL_PATH}+"/scripts/common/make_sys_image -d /mnt/ref_plat -s local -n "+${system_name}+".gz -w /mnt/ref_plat/"+${system_name}+".log -m t -c g -l 2 -u -v"&lt;BR /&gt; final_script += ${_OND_INSTALL_PATH}+"/scripts/ref_plat/custom/ref_plat_archive_creation.final"&lt;BR /&gt;&lt;BR /&gt; load_order = 5&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;sw_sel "OND reference platform archive" {&lt;BR /&gt;&lt;BR /&gt; description = "OND scripts for reference platform archive creation"&lt;BR /&gt;&lt;BR /&gt; sw_source = "OND reference platform archive"&lt;BR /&gt; sw_category = "OND"&lt;BR /&gt;&lt;BR /&gt; exrequisite = "OND generic archive"&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;(sw_sel "OND reference platform archive") {&lt;BR /&gt;&lt;BR /&gt; (_OND_PROJECT ~ "^[A-Za-z0-9_.-]+$") {&lt;BR /&gt;  note += "OND project name validated."&lt;BR /&gt;  env_vars = "_OND_PROJECT="+${_OND_PROJECT}&lt;BR /&gt; } else {&lt;BR /&gt;  error += "OND project name contains one or more invalid characters. Installation cannot proceed."&lt;BR /&gt; }&lt;BR /&gt;&lt;BR /&gt; (_OND_REF_PLAT ~ "^[A-Za-z0-9_.-]+$") {&lt;BR /&gt;  note += "OND reference platform name validated."&lt;BR /&gt;  env_vars = "_OND_REF_PLAT="+${_OND_REF_PLAT}&lt;BR /&gt; } else {&lt;BR /&gt;  error += "OND reference platform name contains one or more invalid characters. Installation cannot proceed."&lt;BR /&gt; }&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;--snip--&lt;BR /&gt;This config file adds two controls in the 'Additional parameters' screen if ever user selects the sw_sel in the Software tab.&lt;BR /&gt;&lt;BR /&gt;Now I check the syntax of variable _OND_REF_PLAT to make sure user has renamed it.&lt;BR /&gt;Once user has renamed it, I validate it and I would like to set the env_var _OND_REF_PLAT to it.&lt;BR /&gt;&lt;BR /&gt;But Ignite does not change it once it has been initially set to '&lt;PLEASE_CHANGE_ME&gt;'...&lt;BR /&gt;&lt;BR /&gt;I don't know how to set an additional parameter and pass it to an env_var once it has been modified, to make sure that my post_config scripts can use it.&lt;BR /&gt;&lt;BR /&gt;Any idea?&lt;BR /&gt;&lt;BR /&gt;Thanks!&lt;BR /&gt;&lt;BR /&gt;/Brian&lt;/PLEASE_CHANGE_ME&gt;&lt;/PLEASE_CHANGE_ME&gt;</description>
      <pubDate>Thu, 07 Nov 2002 11:37:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ignite-passing-variables-to-scripts/m-p/2840486#M517652</guid>
      <dc:creator>Brian Kennedy</dc:creator>
      <dc:date>2002-11-07T11:37:53Z</dc:date>
    </item>
    <item>
      <title>Re: Ignite: passing variables to scripts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ignite-passing-variables-to-scripts/m-p/2840487#M517653</link>
      <description>I finally resolved my problem!&lt;BR /&gt;No need to answer.&lt;BR /&gt;&lt;BR /&gt;I did not enclosed init keywords at the right place.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;/Brian</description>
      <pubDate>Thu, 07 Nov 2002 13:33:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ignite-passing-variables-to-scripts/m-p/2840487#M517653</guid>
      <dc:creator>Brian Kennedy</dc:creator>
      <dc:date>2002-11-07T13:33:43Z</dc:date>
    </item>
    <item>
      <title>Re: Ignite: passing variables to scripts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ignite-passing-variables-to-scripts/m-p/2840488#M517654</link>
      <description>Oh, and i was hoping for 10 points :-) haha.&lt;BR /&gt;&lt;BR /&gt;Chuck J</description>
      <pubDate>Thu, 07 Nov 2002 13:41:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ignite-passing-variables-to-scripts/m-p/2840488#M517654</guid>
      <dc:creator>Chuck J</dc:creator>
      <dc:date>2002-11-07T13:41:28Z</dc:date>
    </item>
    <item>
      <title>Re: Ignite: passing variables to scripts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ignite-passing-variables-to-scripts/m-p/2840489#M517655</link>
      <description>Next time ;o)&lt;BR /&gt;&lt;BR /&gt;Cheers.&lt;BR /&gt;&lt;BR /&gt;/Brian</description>
      <pubDate>Thu, 07 Nov 2002 16:32:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ignite-passing-variables-to-scripts/m-p/2840489#M517655</guid>
      <dc:creator>Brian Kennedy</dc:creator>
      <dc:date>2002-11-07T16:32:28Z</dc:date>
    </item>
  </channel>
</rss>

