<?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>article Configuring the TMC Self-Managed VCD CLI in TMC &amp; VCD Knowledge Base</title>
    <link>https://communities.vmware.com/t5/TMC-VCD-Knowledge-Base/Configuring-the-TMC-Self-Managed-VCD-CLI/ta-p/2976251</link>
    <description>&lt;DIV class="lia-message-template-symptoms-zone"&gt;
&lt;H2&gt;Introduction&lt;/H2&gt;
&lt;P&gt;The TMC Self-Managed VCD solution has a CLI for manual or automated access. The configuration steps may vary from the TMC documentation because they include some VCD specific information. All other CLI commands should be the same.&lt;/P&gt;
&lt;H2&gt;Prerequisites&lt;/H2&gt;
&lt;/DIV&gt;
&lt;DIV class="lia-message-template-diagnosis-zone"&gt;
&lt;UL&gt;
&lt;LI&gt;CA used for TMC-SM services - Not required if you used an external certificate authority&lt;/LI&gt;
&lt;LI&gt;CA used for VCD - Not required if you used an external certificate authority&lt;/LI&gt;
&lt;LI&gt;TMC DNS zone (e.g.; tmc.slz.vcd.local)&lt;/LI&gt;
&lt;LI&gt;VCD hostname (e.g.; vcd.local)&lt;/LI&gt;
&lt;LI&gt;VCD OIDC Client ID - This can be retrieved from the Cloud Director Provider UI&lt;/LI&gt;
&lt;LI&gt;VCD tenant organization name (e.g.; company)&lt;/LI&gt;
&lt;LI&gt;VCD API Token - This should be created for a user that has the `tmc:admin` or `tmc:member` role&lt;/LI&gt;
&lt;/UL&gt;
&lt;/DIV&gt;
&lt;DIV class="lia-message-template-solution-zone"&gt;
&lt;H2&gt;Installation&lt;/H2&gt;
&lt;OL&gt;
&lt;LI&gt;Browse to the TMC-SM UI directly or through the VCD UI link&lt;/LI&gt;
&lt;LI&gt;Browse to "Automation center" in the lower-left corner of the screen&lt;/LI&gt;
&lt;LI&gt;Download the TMC CLI for your platform&lt;/LI&gt;
&lt;LI&gt;Follow the on-screen instructions, or take the appropriate steps, to make the `tmc` CLI available in your PATH&lt;/LI&gt;
&lt;/OL&gt;
&lt;H2&gt;Configuration&lt;/H2&gt;
&lt;H3&gt;Configure certificates&lt;/H3&gt;
&lt;P&gt;&lt;EM&gt;You may skip this step if VCD or TMC-SM does not use self-signed certificates.&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;Follow the appropriate steps for your OS to install the VCD and/or TMC-SM CA to your system. Alternatively, you can specify an environment variable pointing to these certificates.&lt;/P&gt;
&lt;PRE&gt;# mkdir $HOME/tmc-ssl&lt;BR /&gt;# cp tmcCA.pem $HOME/tmc-ssl&lt;BR /&gt;# cp VCD.pem $HOME/tmc-ssl&lt;BR /&gt;# export SSL_CERT_DIR=$HOME/tmc-ssl&lt;/PRE&gt;
&lt;P&gt;The `tmc` CLI will use the `SSL_CERT_DIR` value to load additional trusted certificates when it is executed.&lt;/P&gt;
&lt;H3&gt;Configure TMC CLI&lt;/H3&gt;
&lt;PRE&gt;tmc login --self-managed --vcd --no-configure \&lt;BR /&gt;--name tmc-admin \&lt;BR /&gt;--vcd-org company \&lt;BR /&gt;--vcd-api-token 24ljsajf2j342j4ljsalfjasflj23j4lkasf \&lt;BR /&gt;--endpoint tmc.slz.vcd.local:443 \&lt;BR /&gt;--vcd-issuer-url https://vcd.local/oidc \&lt;BR /&gt;--vcd-oidc-client-id f14f2242-dc18-4d93-a9a9-07c39570e287&lt;/PRE&gt;
&lt;P&gt;This process can be repeated with different names for multiple users or TMC-SM deployments.&lt;/P&gt;
&lt;PRE&gt;# tmc system context list&lt;BR /&gt;NAME        ORG ID   ENDPOINT&lt;BR /&gt;tmc-admin            tmc.slz.vcd.local:443&lt;BR /&gt;tmc-member           tmc.slz.vcd.local:443&lt;/PRE&gt;
&lt;PRE&gt;# tmc system context use tmc-admin&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/DIV&gt;</description>
    <pubDate>Tue, 11 Jul 2023 16:48:20 GMT</pubDate>
    <dc:creator>jeffmace</dc:creator>
    <dc:date>2023-07-11T16:48:20Z</dc:date>
    <item>
      <title>Configuring the TMC Self-Managed VCD CLI</title>
      <link>https://communities.vmware.com/t5/TMC-VCD-Knowledge-Base/Configuring-the-TMC-Self-Managed-VCD-CLI/ta-p/2976251</link>
      <description>&lt;DIV class="lia-message-template-symptoms-zone"&gt;
&lt;H2&gt;Introduction&lt;/H2&gt;
&lt;P&gt;The TMC Self-Managed VCD solution has a CLI for manual or automated access. The configuration steps may vary from the TMC documentation because they include some VCD specific information. All other CLI commands should be the same.&lt;/P&gt;
&lt;H2&gt;Prerequisites&lt;/H2&gt;
&lt;/DIV&gt;
&lt;DIV class="lia-message-template-diagnosis-zone"&gt;
&lt;UL&gt;
&lt;LI&gt;CA used for TMC-SM services - Not required if you used an external certificate authority&lt;/LI&gt;
&lt;LI&gt;CA used for VCD - Not required if you used an external certificate authority&lt;/LI&gt;
&lt;LI&gt;TMC DNS zone (e.g.; tmc.slz.vcd.local)&lt;/LI&gt;
&lt;LI&gt;VCD hostname (e.g.; vcd.local)&lt;/LI&gt;
&lt;LI&gt;VCD OIDC Client ID - This can be retrieved from the Cloud Director Provider UI&lt;/LI&gt;
&lt;LI&gt;VCD tenant organization name (e.g.; company)&lt;/LI&gt;
&lt;LI&gt;VCD API Token - This should be created for a user that has the `tmc:admin` or `tmc:member` role&lt;/LI&gt;
&lt;/UL&gt;
&lt;/DIV&gt;
&lt;DIV class="lia-message-template-solution-zone"&gt;
&lt;H2&gt;Installation&lt;/H2&gt;
&lt;OL&gt;
&lt;LI&gt;Browse to the TMC-SM UI directly or through the VCD UI link&lt;/LI&gt;
&lt;LI&gt;Browse to "Automation center" in the lower-left corner of the screen&lt;/LI&gt;
&lt;LI&gt;Download the TMC CLI for your platform&lt;/LI&gt;
&lt;LI&gt;Follow the on-screen instructions, or take the appropriate steps, to make the `tmc` CLI available in your PATH&lt;/LI&gt;
&lt;/OL&gt;
&lt;H2&gt;Configuration&lt;/H2&gt;
&lt;H3&gt;Configure certificates&lt;/H3&gt;
&lt;P&gt;&lt;EM&gt;You may skip this step if VCD or TMC-SM does not use self-signed certificates.&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;Follow the appropriate steps for your OS to install the VCD and/or TMC-SM CA to your system. Alternatively, you can specify an environment variable pointing to these certificates.&lt;/P&gt;
&lt;PRE&gt;# mkdir $HOME/tmc-ssl&lt;BR /&gt;# cp tmcCA.pem $HOME/tmc-ssl&lt;BR /&gt;# cp VCD.pem $HOME/tmc-ssl&lt;BR /&gt;# export SSL_CERT_DIR=$HOME/tmc-ssl&lt;/PRE&gt;
&lt;P&gt;The `tmc` CLI will use the `SSL_CERT_DIR` value to load additional trusted certificates when it is executed.&lt;/P&gt;
&lt;H3&gt;Configure TMC CLI&lt;/H3&gt;
&lt;PRE&gt;tmc login --self-managed --vcd --no-configure \&lt;BR /&gt;--name tmc-admin \&lt;BR /&gt;--vcd-org company \&lt;BR /&gt;--vcd-api-token 24ljsajf2j342j4ljsalfjasflj23j4lkasf \&lt;BR /&gt;--endpoint tmc.slz.vcd.local:443 \&lt;BR /&gt;--vcd-issuer-url https://vcd.local/oidc \&lt;BR /&gt;--vcd-oidc-client-id f14f2242-dc18-4d93-a9a9-07c39570e287&lt;/PRE&gt;
&lt;P&gt;This process can be repeated with different names for multiple users or TMC-SM deployments.&lt;/P&gt;
&lt;PRE&gt;# tmc system context list&lt;BR /&gt;NAME        ORG ID   ENDPOINT&lt;BR /&gt;tmc-admin            tmc.slz.vcd.local:443&lt;BR /&gt;tmc-member           tmc.slz.vcd.local:443&lt;/PRE&gt;
&lt;PRE&gt;# tmc system context use tmc-admin&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Tue, 11 Jul 2023 16:48:20 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/TMC-VCD-Knowledge-Base/Configuring-the-TMC-Self-Managed-VCD-CLI/ta-p/2976251</guid>
      <dc:creator>jeffmace</dc:creator>
      <dc:date>2023-07-11T16:48:20Z</dc:date>
    </item>
  </channel>
</rss>

