<?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 Starting and stopping the EV Agent service in Administration and Deployment</title>
    <link>https://communities.sas.com/t5/Administration-and-Deployment/Starting-and-stopping-the-EV-Agent-service/m-p/817494#M24527</link>
    <description>&lt;P&gt;SAS 9.4M7 on Windows 2012R2&lt;/P&gt;
&lt;P&gt;I just renewed the SSL certificate on our mid-tier server, and the Java keystores for the webapps and Environment Manager. When I restarted EV the agents weren't managing to communicate with the EV Server. TS advised a solution to this, which was to remove the agent data directory and start using the command line rather than Windows Service Manager as per KB52668:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;config\Lev1\Web\SASEnvironmentManager\agent-5.8.0-EE\bin\hq-agent.bat start&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;This worked. There were various messages which appeared after the command was run:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="shell"&gt;wrapper  | Starting the SAS [config-Lev1] SAS Environment Manager Agent service...
wrapper  | Waiting to start...
wrapper  | SAS [config-Lev1] SAS Environment Manager Agent started.
[ Running agent setup ]
Should Agent communications to HQ be unidirectional [default=no]: yes
What is the HQ server IP address: server.domain
Should Agent communications to HQ always be secure [default=yes]: Yes
What is the HQ server SSL port [default=7443]: 7443
- Testing secure connection ... Success
What is your HQ login [default=hqadmin]: sasevs@saspw
What is your HQ password: **Not echoing value**
What is the agent IP address [default=***.***.***.***]: server.domain
- Received temporary auth token from agent
- Registering agent with HQ
- HQ gave us the following agent token
    1654862220270-8565811125738354432-5097207690335336169
- Informing agent of new HQ server
- Validating
- Successfully setup agent
- Agent using new transport, unidirectional=true, port=7443&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt; So my question is, what's the difference between running the command line and stopping/starting with Service Manager? TS weren't able to say.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt; Thanks.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 10 Jun 2022 15:46:22 GMT</pubDate>
    <dc:creator>Nigel_Pain</dc:creator>
    <dc:date>2022-06-10T15:46:22Z</dc:date>
    <item>
      <title>Starting and stopping the EV Agent service</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Starting-and-stopping-the-EV-Agent-service/m-p/817494#M24527</link>
      <description>&lt;P&gt;SAS 9.4M7 on Windows 2012R2&lt;/P&gt;
&lt;P&gt;I just renewed the SSL certificate on our mid-tier server, and the Java keystores for the webapps and Environment Manager. When I restarted EV the agents weren't managing to communicate with the EV Server. TS advised a solution to this, which was to remove the agent data directory and start using the command line rather than Windows Service Manager as per KB52668:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;config\Lev1\Web\SASEnvironmentManager\agent-5.8.0-EE\bin\hq-agent.bat start&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;This worked. There were various messages which appeared after the command was run:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="shell"&gt;wrapper  | Starting the SAS [config-Lev1] SAS Environment Manager Agent service...
wrapper  | Waiting to start...
wrapper  | SAS [config-Lev1] SAS Environment Manager Agent started.
[ Running agent setup ]
Should Agent communications to HQ be unidirectional [default=no]: yes
What is the HQ server IP address: server.domain
Should Agent communications to HQ always be secure [default=yes]: Yes
What is the HQ server SSL port [default=7443]: 7443
- Testing secure connection ... Success
What is your HQ login [default=hqadmin]: sasevs@saspw
What is your HQ password: **Not echoing value**
What is the agent IP address [default=***.***.***.***]: server.domain
- Received temporary auth token from agent
- Registering agent with HQ
- HQ gave us the following agent token
    1654862220270-8565811125738354432-5097207690335336169
- Informing agent of new HQ server
- Validating
- Successfully setup agent
- Agent using new transport, unidirectional=true, port=7443&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt; So my question is, what's the difference between running the command line and stopping/starting with Service Manager? TS weren't able to say.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt; Thanks.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jun 2022 15:46:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Starting-and-stopping-the-EV-Agent-service/m-p/817494#M24527</guid>
      <dc:creator>Nigel_Pain</dc:creator>
      <dc:date>2022-06-10T15:46:22Z</dc:date>
    </item>
    <item>
      <title>Re: Starting and stopping the EV Agent service</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Starting-and-stopping-the-EV-Agent-service/m-p/817501#M24528</link>
      <description>Running from the command line lets you see that output to confirm communication to the EV server was successful or if not, surface any failures that occurred during agent setup.</description>
      <pubDate>Fri, 10 Jun 2022 16:46:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Starting-and-stopping-the-EV-Agent-service/m-p/817501#M24528</guid>
      <dc:creator>gwootton</dc:creator>
      <dc:date>2022-06-10T16:46:42Z</dc:date>
    </item>
    <item>
      <title>Re: Starting and stopping the EV Agent service</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Starting-and-stopping-the-EV-Agent-service/m-p/817502#M24529</link>
      <description>Thanks Greg. But when I ran from services it didn't work, whilst running from the command line it worked first time. I can only think that the actual command run in the Windows Service must be different?</description>
      <pubDate>Fri, 10 Jun 2022 16:55:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Starting-and-stopping-the-EV-Agent-service/m-p/817502#M24529</guid>
      <dc:creator>Nigel_Pain</dc:creator>
      <dc:date>2022-06-10T16:55:34Z</dc:date>
    </item>
    <item>
      <title>Re: Starting and stopping the EV Agent service</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Starting-and-stopping-the-EV-Agent-service/m-p/817505#M24530</link>
      <description>The service runs:&lt;BR /&gt;C:\sas94\Config\Lev1\Web\SASEnvironmentManager\agent-5.8.0-EE\wrapper\sbin\wrapper-windows-x86-32.exe -s C:\sas94\Config\Lev1\Web\SASEnvironmentManager\agent-5.8.0-EE\conf\wrapper.conf&lt;BR /&gt;&lt;BR /&gt;hq-agent.bat runs (when called with start):&lt;BR /&gt;:start&lt;BR /&gt;"%_WRAPPER_EXE%" -t %_WRAPPER_CONF% "%wrapper_update1%"&lt;BR /&gt;ping -3 XXX 127.0.0.1 &amp;gt;nul&lt;BR /&gt;call :setup-if-no-provider&lt;BR /&gt;goto :eof&lt;BR /&gt;&lt;BR /&gt;The "setup-if-no-provider" bit runs the communication setup piece you see in the command line output (if it doesn't have a connection to the ev server set up already).&lt;BR /&gt;</description>
      <pubDate>Fri, 10 Jun 2022 17:14:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Starting-and-stopping-the-EV-Agent-service/m-p/817505#M24530</guid>
      <dc:creator>gwootton</dc:creator>
      <dc:date>2022-06-10T17:14:56Z</dc:date>
    </item>
  </channel>
</rss>

