<?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 Re: --server option? in vSphere SDK for Perl Discussions</title>
    <link>https://communities.vmware.com/t5/vSphere-SDK-for-Perl-Discussions/server-option/m-p/385072#M328</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is &lt;STRONG&gt;VI_SERVER&lt;/STRONG&gt;, however that needs to be defined inside a file and then you can pass that using &lt;STRONG&gt;--config&lt;/STRONG&gt; param. To get a list of variables, you can just run --help and each param will have it's equivalent variable listed in the output &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 31 Jan 2014 02:05:11 GMT</pubDate>
    <dc:creator>lamw</dc:creator>
    <dc:date>2014-01-31T02:05:11Z</dc:date>
    <item>
      <title>--server option?</title>
      <link>https://communities.vmware.com/t5/vSphere-SDK-for-Perl-Discussions/server-option/m-p/385071#M327</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a number of virtual servers and need to take an educated guess in my script which server to connect to (based on the vm name for example). This way the user who runs the script does not need to provide --server argument.&lt;/P&gt;&lt;P&gt;What variable should I use to set the server name? $VI_SERVER does not seem to be it...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jan 2014 00:49:51 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/vSphere-SDK-for-Perl-Discussions/server-option/m-p/385071#M327</guid>
      <dc:creator>MR-Z</dc:creator>
      <dc:date>2014-01-31T00:49:51Z</dc:date>
    </item>
    <item>
      <title>Re: --server option?</title>
      <link>https://communities.vmware.com/t5/vSphere-SDK-for-Perl-Discussions/server-option/m-p/385072#M328</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is &lt;STRONG&gt;VI_SERVER&lt;/STRONG&gt;, however that needs to be defined inside a file and then you can pass that using &lt;STRONG&gt;--config&lt;/STRONG&gt; param. To get a list of variables, you can just run --help and each param will have it's equivalent variable listed in the output &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jan 2014 02:05:11 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/vSphere-SDK-for-Perl-Discussions/server-option/m-p/385072#M328</guid>
      <dc:creator>lamw</dc:creator>
      <dc:date>2014-01-31T02:05:11Z</dc:date>
    </item>
    <item>
      <title>Re: --server option?</title>
      <link>https://communities.vmware.com/t5/vSphere-SDK-for-Perl-Discussions/server-option/m-p/385073#M329</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks. I have some default server already configured in .visdkrc, but relying on that is cumbersome, especially since I am trying to use different servers based on a specific user input. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After reading through some subs in VILib.pm, look like Opts::set_option('server' =&amp;gt; $server) is all I need:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;# validate options, and connect to the server&lt;/P&gt;&lt;P&gt;Opts::add_options(%opts);&lt;/P&gt;&lt;P&gt;Opts::parse();&lt;/P&gt;&lt;P&gt;Opts::validate();&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Opts::set_option('server' =&amp;gt; 'XXXX');&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Util::connect();&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jan 2014 20:15:48 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/vSphere-SDK-for-Perl-Discussions/server-option/m-p/385073#M329</guid>
      <dc:creator>MR-Z</dc:creator>
      <dc:date>2014-01-31T20:15:48Z</dc:date>
    </item>
  </channel>
</rss>

