<?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: Script Server Validation in Administration and Deployment</title>
    <link>https://communities.sas.com/t5/Administration-and-Deployment/Script-Server-Validation/m-p/293172#M5773</link>
    <description>&lt;P&gt;Hi Paul,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks. Spot on : this is the answer &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Yes, I saw the tool and I even tried to run it before sending my post (ValidateServer --help).&lt;/P&gt;
&lt;P&gt;Unfortunately, I wasn't aware that the tool by default redirects its output to some Log file : strange beast !&lt;/P&gt;
&lt;P&gt;I mistakenly assumed that this meant the tool was provided only to feed the SDW/SDM in background calls,&lt;/P&gt;
&lt;P&gt;and was not a front end piece of code. Lack of curiosity killed the cat, they say ? &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is the syntax properly extracted from the redirected log file :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ValidateServer validates a specified server type with given server attributes.

Usage:
      java -classpath sas.servermgr.jar com.sas.management.servers.validator.commands.ValidateServer &amp;lt;options&amp;gt;

Where &amp;lt;options&amp;gt; are:

-metaserverparms "&amp;lt;parms&amp;gt;" (or -msp "&amp;lt;parms&amp;gt;")
      Consists of name/value pairs of methods to connect to a metadata server i.e. metadata connection attributes or metadata profile
      Valid values are:
          &amp;lt;parms&amp;gt;: "host=XXX port=XXX domain=XXX userid=XXX password=XXX reposid=XXX"
          &amp;lt;parms&amp;gt;: "metadataprofile=XXX.swa"

-servername Name (or -sn Name)
      This is the name of the server metadata definition of the server to be validated.
      Use either this option or -serverid (-sid)

-serverid ID (or -sid ID)
      This is the ID of the server metadata definition of the server to be validated.
      Use either this option or -servername (-sn)

-serverparms "&amp;lt;parms&amp;gt;" (or -sp "&amp;lt;parms&amp;gt;")
      Consists of name/value pairs of server/connection attributes for the server to be validated.
      e.g. &amp;lt;parms&amp;gt;: "code=XXX contentlocation=XXX"

-credentials "&amp;lt;parms&amp;gt;" (or -cred "&amp;lt;parms&amp;gt;")
      Consists of a domain, userid and password
      Valid values are:
          &amp;lt;parms&amp;gt;: "domain=XXX userid=XXX password=XXX"

-log
      Writes out logging information out to a file.
      File: &amp;lt;user profile directory&amp;gt;\ValidateServerErrorLog.log
      If not specified, logging information is written out to the file "ValidateServerErrorLog.log" in &amp;lt;user profile directory&amp;gt;\ApplicationData\SAS\LOGS on Windows and &amp;lt;user profile directory&amp;gt;\.SASAppData\SAS\LOGS on all other operating systems.

-help (or -?)
      Prints this help information
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I played a little with it but to no avail at this point.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 22 Aug 2016 15:45:52 GMT</pubDate>
    <dc:creator>ronan</dc:creator>
    <dc:date>2016-08-22T15:45:52Z</dc:date>
    <item>
      <title>Script Server Validation</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Script-Server-Validation/m-p/292369#M5746</link>
      <description>&lt;P&gt;are there any script to validate the servers? &amp;nbsp;want to setup some schedule jobs to check the status of the servers. &amp;nbsp;thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Aug 2016 07:20:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Script-Server-Validation/m-p/292369#M5746</guid>
      <dc:creator>Grumbler</dc:creator>
      <dc:date>2016-08-18T07:20:12Z</dc:date>
    </item>
    <item>
      <title>Re: Script Server Validation</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Script-Server-Validation/m-p/292377#M5747</link>
      <description>&lt;P&gt;(UNIX)&lt;/P&gt;
&lt;P&gt;In the Lev1 subdirectory of your SAS configuration tree, there is a script called sas.servers.&lt;/P&gt;
&lt;P&gt;In that script, you find a function is_server_up(), which might serve as a blueprint for what you want to do.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Aug 2016 08:05:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Script-Server-Validation/m-p/292377#M5747</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2016-08-18T08:05:31Z</dc:date>
    </item>
    <item>
      <title>Re: Script Server Validation</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Script-Server-Validation/m-p/292407#M5752</link>
      <description>&lt;P&gt;I would also suggest you look into&amp;nbsp;SAS Environment Manager where you can have alerts that notify people when they get triggered. See the &lt;A href="http://support.sas.com/documentation/cdl/en/evug/69029/HTML/default/viewer.htm#p18n3hxpsz255zn1432pf2s42cv3.htm" target="_self"&gt;Working with Resource Alerts&lt;/A&gt;&amp;nbsp;section in the&amp;nbsp;&lt;EM&gt;SAS Environment Manager 2.5: User's Guide&lt;/EM&gt;. You might also want to look at the &lt;A href="http://support.sas.com/documentation/cdl/en/evug/69029/HTML/default/viewer.htm#n0urxjgvbkxyo5n1dyp1onad56nq.htm" target="_self"&gt;Service Architecture Alert Definitions&lt;/A&gt; appendix&amp;nbsp;for some examples of the alerts you get when you enable the SAS Environment Manager Service Architecture. It includes server/service and spawner availability alerts and&amp;nbsp;many more.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Aug 2016 11:11:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Script-Server-Validation/m-p/292407#M5752</guid>
      <dc:creator>PaulHomes</dc:creator>
      <dc:date>2016-08-18T11:11:12Z</dc:date>
    </item>
    <item>
      <title>Re: Script Server Validation</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Script-Server-Validation/m-p/292729#M5762</link>
      <description>&lt;P&gt;No there aren't any as far as I know, but this would be most useful.&lt;/P&gt;
&lt;P&gt;The SMC Server Manager plugin "Validate" command is only available in the interactive point &amp;amp; click interface, no corresponding CLI unfortunately.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have tried to develop some workspace validation script of my own, but it's assessing roughly a proxy state of the server, not a standardized technical validation status. When the server is down, then the script execution status displays&amp;nbsp;an error accordingly. The IOMOPERATE procedure has some List Information command which can be used indirectly to test the server status.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It's a rather simple case since the Workspace server I worked with reused the same technical account, was not clustered and is merely a command-line + socket. In more complex situations, for instance with shared-context servers like Stored Process servers, Pooled Workspace etc, this might be more tricky not to mention the validation of the authentication sub-process itself: if the remote SAS sessions are launched under the personal identity/account of the user then the validation process has to take into account this variability (eg sassrv account or even sasdemo might work, whereas another specific account might not due to some permissions problems outside the scope of SAS).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;tested with 9.3 M1 on Linux RHEL6&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Important : a &lt;EM&gt;token-based&lt;/EM&gt; authenticating Workspace was &lt;STRONG&gt;required&lt;/STRONG&gt; and an internal sas admin account like sasadm@saspw (IOMOPERATE in 9.3 M1 doesn not authenticate with LDAP providers, only with "@saspw" domains : check with 9.4, this might have changed)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&amp;nbsp;/* Standard SASApp Workspace server status check */&lt;/P&gt;
&lt;P style="margin: 0in; font-family: 'Courier New'; font-size: 11.0pt;"&gt;proc iomoperate ; connect hostname="&amp;lt;machine&amp;gt;" port=8591 username="someadminaccount@saspw" password="guesswhat";&lt;/P&gt;
&lt;P style="margin: 0in; font-family: 'Courier New'; font-size: 11.0pt;"&gt;&lt;STRONG&gt;list information;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: 'Courier New'; font-size: 11.0pt;"&gt;quit;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;Launched within a linux script, it can capture some approaching server status, but it remains coarse.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BTW, the Metadata Server comes with a built-in validation feature &amp;nbsp;(I merely copied the underlying SAS code &amp;nbsp;based on METAOPERATE procedure for my own purpose above) :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;lt;sas config meta&amp;gt;/Lev1/SASMeta/MetadataServer/MetadataServer.sh status&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Aug 2016 14:26:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Script-Server-Validation/m-p/292729#M5762</guid>
      <dc:creator>ronan</dc:creator>
      <dc:date>2016-08-19T14:26:23Z</dc:date>
    </item>
    <item>
      <title>Re: Script Server Validation</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Script-Server-Validation/m-p/292849#M5764</link>
      <description>&lt;P&gt;Hi Ronan, not sure if you saw the ValidateServer command line tool in the SAS Platform Object Framework. I can't find the documentation link for it but there is a note&amp;nbsp;about it: &lt;A href="http://support.sas.com/kb/42/523.html" target="_self"&gt;SAS&amp;nbsp;Usage Note 42523: ValidateServer utility to check availability of SAS® 9.2 Business Intelligence servers&lt;/A&gt;. The note is about SAS 9.2 but it's still there in SAS 9.4 M3 ($SASHOME/SASPlatformObjectFramework/9.4/ValidateServer).&lt;/P&gt;</description>
      <pubDate>Fri, 19 Aug 2016 21:00:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Script-Server-Validation/m-p/292849#M5764</guid>
      <dc:creator>PaulHomes</dc:creator>
      <dc:date>2016-08-19T21:00:07Z</dc:date>
    </item>
    <item>
      <title>Re: Script Server Validation</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Script-Server-Validation/m-p/293172#M5773</link>
      <description>&lt;P&gt;Hi Paul,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks. Spot on : this is the answer &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Yes, I saw the tool and I even tried to run it before sending my post (ValidateServer --help).&lt;/P&gt;
&lt;P&gt;Unfortunately, I wasn't aware that the tool by default redirects its output to some Log file : strange beast !&lt;/P&gt;
&lt;P&gt;I mistakenly assumed that this meant the tool was provided only to feed the SDW/SDM in background calls,&lt;/P&gt;
&lt;P&gt;and was not a front end piece of code. Lack of curiosity killed the cat, they say ? &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is the syntax properly extracted from the redirected log file :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ValidateServer validates a specified server type with given server attributes.

Usage:
      java -classpath sas.servermgr.jar com.sas.management.servers.validator.commands.ValidateServer &amp;lt;options&amp;gt;

Where &amp;lt;options&amp;gt; are:

-metaserverparms "&amp;lt;parms&amp;gt;" (or -msp "&amp;lt;parms&amp;gt;")
      Consists of name/value pairs of methods to connect to a metadata server i.e. metadata connection attributes or metadata profile
      Valid values are:
          &amp;lt;parms&amp;gt;: "host=XXX port=XXX domain=XXX userid=XXX password=XXX reposid=XXX"
          &amp;lt;parms&amp;gt;: "metadataprofile=XXX.swa"

-servername Name (or -sn Name)
      This is the name of the server metadata definition of the server to be validated.
      Use either this option or -serverid (-sid)

-serverid ID (or -sid ID)
      This is the ID of the server metadata definition of the server to be validated.
      Use either this option or -servername (-sn)

-serverparms "&amp;lt;parms&amp;gt;" (or -sp "&amp;lt;parms&amp;gt;")
      Consists of name/value pairs of server/connection attributes for the server to be validated.
      e.g. &amp;lt;parms&amp;gt;: "code=XXX contentlocation=XXX"

-credentials "&amp;lt;parms&amp;gt;" (or -cred "&amp;lt;parms&amp;gt;")
      Consists of a domain, userid and password
      Valid values are:
          &amp;lt;parms&amp;gt;: "domain=XXX userid=XXX password=XXX"

-log
      Writes out logging information out to a file.
      File: &amp;lt;user profile directory&amp;gt;\ValidateServerErrorLog.log
      If not specified, logging information is written out to the file "ValidateServerErrorLog.log" in &amp;lt;user profile directory&amp;gt;\ApplicationData\SAS\LOGS on Windows and &amp;lt;user profile directory&amp;gt;\.SASAppData\SAS\LOGS on all other operating systems.

-help (or -?)
      Prints this help information
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I played a little with it but to no avail at this point.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Aug 2016 15:45:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Script-Server-Validation/m-p/293172#M5773</guid>
      <dc:creator>ronan</dc:creator>
      <dc:date>2016-08-22T15:45:52Z</dc:date>
    </item>
    <item>
      <title>Re: Script Server Validation</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Script-Server-Validation/m-p/293297#M5774</link>
      <description>&lt;P&gt;Hi Ronan,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Glad to hear&amp;nbsp;the link to that SAS note helped you too. I was initially puzzled&amp;nbsp;when I ran it and got no output. I was expecting it to print usage info to the console like the other SAS Platform Object Framework utilities&amp;nbsp;do. It wasn't until I was looking around for a log file with&amp;nbsp;errors that I saw the usage info and then that note confirmed it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I was finding that I had to specify most of the parameters to get it to work and it would just log&amp;nbsp;"null" and return 1 when I didn't get the complete set required. It would probably be easier to just point it at a profile (.swa) but here is an&amp;nbsp;example that worked for me:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;# Validate Logical Workspace Server&lt;/P&gt;
&lt;P&gt;/opt/sas94/sashome/SASPlatformObjectFramework/9.4/ValidateServer -msp "host=localhost port=8561 domain=DefaultAuth userid=myuserid password={sas002}MYPWENCODEDPASS reposid=A0000001.A9ZZZZZ9" -sn "SASApp - Logical Workspace Server" -cred "domain=DefaultAuth userid=&lt;SPAN&gt;myuserid&lt;/SPAN&gt; password=&lt;SPAN&gt;{sas002}MYPWENCODEDPASS"; echo $?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Examples for servername (sn) that worked for me were:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;SASMeta - Logical Metadata Server&lt;/LI&gt;
&lt;LI&gt;SASMeta - Metadata Server&lt;/LI&gt;
&lt;LI&gt;SASApp - Logical Workspace Server&lt;/LI&gt;
&lt;LI&gt;SASApp - Workspace Server&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;SASApp - Logical Pooled Workspace Server&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;SASApp - Pooled Workspace Server&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;SASApp - Logical Stored Process Server&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;SASApp - Stored Process Server&lt;/LI&gt;
&lt;LI&gt;SASApp - Logical OLAP Server&lt;/LI&gt;
&lt;LI&gt;SASApp - OLAP Server&lt;/LI&gt;
&lt;LI&gt;SASApp - Connect Server&lt;/LI&gt;
&lt;LI&gt;SAS Content Server&lt;/LI&gt;
&lt;LI&gt;Operating System Services -&amp;nbsp;hostname&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;I have found that a typo in the server name logs "null" and returns 0.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I didn't want to duplicate the credentials (assuming credential caching would be used) but if I didn't then it logged&amp;nbsp;&amp;nbsp;"A null user ID is invalid for creating a User Context." and returned 1. When it works it returns 0.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;Cheers&lt;/P&gt;
&lt;P&gt;Paul&lt;/P&gt;</description>
      <pubDate>Tue, 23 Aug 2016 01:59:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Script-Server-Validation/m-p/293297#M5774</guid>
      <dc:creator>PaulHomes</dc:creator>
      <dc:date>2016-08-23T01:59:44Z</dc:date>
    </item>
    <item>
      <title>Re: Script Server Validation</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Script-Server-Validation/m-p/293298#M5775</link>
      <description>&lt;P&gt;Oh, and you can get the Foundation repository id either by looking in SAS Management Console with the Metadata Manager plug-in, or looking at SelectedReps inside a working SAS metadata server profile (.swa) file.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Aug 2016 02:02:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Script-Server-Validation/m-p/293298#M5775</guid>
      <dc:creator>PaulHomes</dc:creator>
      <dc:date>2016-08-23T02:02:14Z</dc:date>
    </item>
    <item>
      <title>Re: Script Server Validation</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Script-Server-Validation/m-p/293371#M5777</link>
      <description>&lt;P&gt;Thanks a lot, Paul. I confirm the syntax above works perfectly fine. I also had extracted the ReposId from the SMC MetadataManager; my second option would have been some request using Metacoda's Metadata Explorer, of course ;).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Should I say, this is definitely worth another brilliant post of yours on Platformadmin blog ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Below the log file generated on a 9.3 Linux server whose licence had expired :&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;[sasinstallaccount@host]$ cat .SASAppData/Logs/ValidateServerErrorLog.log
&amp;lt;?xml version="1.0" encoding="UTF-8" standalone="no"?&amp;gt;
&amp;lt;!DOCTYPE log SYSTEM "logger.dtd"&amp;gt;
&amp;lt;log&amp;gt;
&amp;lt;record&amp;gt;
  &amp;lt;date&amp;gt;2016-08-23T09:59:28&amp;lt;/date&amp;gt;
  &amp;lt;millis&amp;gt;1471939168322&amp;lt;/millis&amp;gt;
  &amp;lt;sequence&amp;gt;9&amp;lt;/sequence&amp;gt;
  &amp;lt;logger&amp;gt;Aug 23, 2016 9:59:28 AM com.sas.management.servers.validator.ServerValidatorUtil validateIOMServerMakeConnection
INFO: Starting extended validation for Workspace server (level 1) - Making a connection
Aug 23, 2016 9:59:43 AM com.sas.management.servers.ServerUtil logChainedExceptionMessages
SEVERE: The launch of the server process failed due to a site validation problem.
Tue Aug 23 09:59:43 CEST 2016: The launch of the server process failed due to a site validation problem.

Tue Aug 23 09:59:43 CEST 2016: Return code: 1
gger&amp;gt;
  &amp;lt;level&amp;gt;SEVERE&amp;lt;/level&amp;gt;
  &amp;lt;class&amp;gt;com.sas.management.servers.ServerUtil&amp;lt;/class&amp;gt;
  &amp;lt;method&amp;gt;logChainedExceptionMessages&amp;lt;/method&amp;gt;
  &amp;lt;thread&amp;gt;10&amp;lt;/thread&amp;gt;
  &amp;lt;message&amp;gt;The launch of the server process failed due to a site validation problem.&amp;lt;/message&amp;gt;
&amp;lt;/record&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Cheers&lt;/P&gt;
&lt;P&gt;Ronan&lt;/P&gt;</description>
      <pubDate>Tue, 23 Aug 2016 10:04:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Script-Server-Validation/m-p/293371#M5777</guid>
      <dc:creator>ronan</dc:creator>
      <dc:date>2016-08-23T10:04:12Z</dc:date>
    </item>
    <item>
      <title>Re: Script Server Validation</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Script-Server-Validation/m-p/293373#M5778</link>
      <description>&lt;P&gt;BTW, this&amp;nbsp;also disproves my initial claim that the SMC Server Manager's Validate interactive command had no corresponding CLI feature. The ValidateServer command replicates exactly the SMC (the same Java class might be called).&lt;/P&gt;</description>
      <pubDate>Tue, 23 Aug 2016 09:22:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Script-Server-Validation/m-p/293373#M5778</guid>
      <dc:creator>ronan</dc:creator>
      <dc:date>2016-08-23T09:22:58Z</dc:date>
    </item>
    <item>
      <title>Re: Script Server Validation</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Script-Server-Validation/m-p/293387#M5779</link>
      <description>&lt;P&gt;No problem&amp;nbsp;Ronan. I like these challenges &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt; Good suggestion about the blog post. I'll try to get to that soon. Thanks for posting that sample log fragment for a failing workspace server. I forgot to mention that the validation information goes into the log file (and you see nothing on the console).&lt;/P&gt;</description>
      <pubDate>Tue, 23 Aug 2016 11:14:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Script-Server-Validation/m-p/293387#M5779</guid>
      <dc:creator>PaulHomes</dc:creator>
      <dc:date>2016-08-23T11:14:24Z</dc:date>
    </item>
    <item>
      <title>Re: Script Server Validation</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Script-Server-Validation/m-p/293533#M5785</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/49407"&gt;@Grumbler﻿&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Will you be so kind as to mark&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/18432"&gt;@PaulHomes﻿&lt;/a&gt;&amp;nbsp;solution as "Accept as Solution"? This will help others looking for the same information.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I originally thought&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/1540"&gt;@ronan﻿&lt;/a&gt;&amp;nbsp;asked the question, sorry for the confusion!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for using the communities!&lt;/P&gt;
&lt;P&gt;Shelley&lt;/P&gt;</description>
      <pubDate>Wed, 24 Aug 2016 20:02:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Script-Server-Validation/m-p/293533#M5785</guid>
      <dc:creator>ShelleySessoms</dc:creator>
      <dc:date>2016-08-24T20:02:16Z</dc:date>
    </item>
    <item>
      <title>Re: Script Server Validation</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Script-Server-Validation/m-p/388830#M10121</link>
      <description>&lt;P&gt;I followed the example in the post to create a script that verifies the servers in my two SAS enviornments. What is the purpose for the following option?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE class=" language-sas"&gt;&lt;CODE class="  language-sas"&gt;&lt;SPAN class="token operator"&gt;-&lt;/SPAN&gt;serverparms &lt;SPAN class="token string"&gt;"&amp;lt;parms&amp;gt;"&lt;/SPAN&gt; &lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;or &lt;SPAN class="token operator"&gt;-&lt;/SPAN&gt;sp &lt;SPAN class="token string"&gt;"&amp;lt;parms&amp;gt;"&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;
      Consists of name&lt;SPAN class="token operator"&gt;/&lt;/SPAN&gt;&lt;SPAN class="token keyword"&gt;value&lt;/SPAN&gt; pairs of &lt;SPAN class="token procnames"&gt;server&lt;/SPAN&gt;&lt;SPAN class="token operator"&gt;/&lt;/SPAN&gt;connection attributes for the &lt;SPAN class="token procnames"&gt;server&lt;/SPAN&gt; to be validated&lt;SPAN class="token punctuation"&gt;.&lt;/SPAN&gt;
      e&lt;SPAN class="token punctuation"&gt;.&lt;/SPAN&gt;g&lt;SPAN class="token punctuation"&gt;.&lt;/SPAN&gt; &lt;SPAN class="token operator"&gt;&amp;lt;&lt;/SPAN&gt;parms&lt;SPAN class="token operator"&gt;&amp;gt;&lt;/SPAN&gt;: &lt;SPAN class="token string"&gt;"code=XXX contentlocation=XXX"&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;The example implies code and code directory path location that is executed by the server. Is this the case?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers,&lt;/P&gt;
&lt;P&gt;jose&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Aug 2017 14:53:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Script-Server-Validation/m-p/388830#M10121</guid>
      <dc:creator>Jlochoa</dc:creator>
      <dc:date>2017-08-17T14:53:57Z</dc:date>
    </item>
    <item>
      <title>Re: Script Server Validation</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Script-Server-Validation/m-p/389018#M10134</link>
      <description>&lt;P&gt;Hi Jose,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I haven't tried using -serverparms myself and cannot find any additional documentation other than the brief descripion you get from the -help option (as you posted).&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'd suggest contacting SAS Tech Support to see if there's any extra&amp;nbsp;usage/example information available. Please post back to this thread with&amp;nbsp;any additional information you do get &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers&lt;/P&gt;
&lt;P&gt;Paul&lt;/P&gt;</description>
      <pubDate>Fri, 18 Aug 2017 01:47:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Script-Server-Validation/m-p/389018#M10134</guid>
      <dc:creator>PaulHomes</dc:creator>
      <dc:date>2017-08-18T01:47:09Z</dc:date>
    </item>
    <item>
      <title>Re: Script Server Validation</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Script-Server-Validation/m-p/447603#M12644</link>
      <description>&lt;P&gt;Has anyone run ValidateServer under SAS94M5 on Linux ? My ValidateWSServer.sh script was fine under SAS4M3 at previous Linux sites but is complaining about loading main class com.sas.management.servers.validator.commands.ValidateServer&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Under SAS92, I had to specify $CLASSPATH to make it work but those jar locations are very different now.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A scheduled ValidateServer script is great for catching EG connection issues before the users notice.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Mar 2018 21:30:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Script-Server-Validation/m-p/447603#M12644</guid>
      <dc:creator>acfarrer</dc:creator>
      <dc:date>2018-03-21T21:30:02Z</dc:date>
    </item>
    <item>
      <title>Re: Script Server Validation</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Script-Server-Validation/m-p/447635#M12645</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I just tried it and ValidateServer works for me with SAS 9.4 M5 on Linux.&amp;nbsp;Mine is a new install rather than an upgrade from 9.4 M4 etc. Are you running&amp;nbsp;ValidateServer on a server or a client?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I have occasionally found (with clients) that an upgrade from an earlier maintenance sometimes fails at the last step and doesn't update the SASVersionedJarRepository (VJR) cache.&amp;nbsp;Perhaps you have class loading issues because of that? I usually notice it when SAS Management Console wont start - see &lt;A href="https://communities.sas.com/t5/SAS-Data-Management/I-can-t-Open-SAS-Management-Console-amp-SAS-Data-Integration/m-p/399399/highlight/true#M12138" target="_blank"&gt;https://communities.sas.com/t5/SAS-Data-Management/I-can-t-Open-SAS-Management-Console-amp-SAS-Data-Integration/m-p/399399/highlight/true#M12138&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Are you able to run SAS Management Console on the same machine? If not, then it might&amp;nbsp;be a VJR cache issue and you could look at renaming/deleting&amp;nbsp;/opt/sas94m5/sashome/SASVersionedJarRepository/eclipse/com.sas.app.launcher.cacheFile and letting it get recreated on-demand. I have only ever done this on a client machine and not a server. I imagine you&amp;nbsp;may want&amp;nbsp;to&amp;nbsp;schedule some down-time and service restarts if you try it on a server.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Mar 2018 23:39:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Script-Server-Validation/m-p/447635#M12645</guid>
      <dc:creator>PaulHomes</dc:creator>
      <dc:date>2018-03-21T23:39:38Z</dc:date>
    </item>
    <item>
      <title>Re: Script Server Validation</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Script-Server-Validation/m-p/449223#M12709</link>
      <description>&lt;P&gt;Hi Paul,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is a fresh install of SAS94M5 just for testing. Validate Server using SASMC works fine in X11 mode. Going thru my archives, I found versions of this going back to SAS93 where I had to populate $CLASSPATH with a directory list supplied by SAS TS.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do you have $JAVA_HOME or $CLASSPATH set? I may need to do some further Linux configuration.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have been trying different permutations based on previous versions and have stripped it down to this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;/opt/sas/sashome/SASPrivateJavaRuntimeEnvironment/9.4/jre/bin/java \&lt;BR /&gt;-classpath sas.servermgr.jar com.sas.management.servers.validator.commands.ValidateServer \&lt;BR /&gt;-msp "metadataprofile=/home/sas/.SASAppData/MetadataServerProfiles/sasadm_ah194.swa" \&lt;BR /&gt;-servername "SASApp - Workspace Server" \&lt;BR /&gt;-serverparms "hostid=ahl194" \&lt;BR /&gt;-cred "userid=sas password=XXXX domain=DefaultAuth"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have tried running the above command string from $HOME and from /opt/sas/sashome/SASPlatformObjectFramework/9.4 since there is a ValidateServer.ini there.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Every time, I get the same message :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Error: Could not find or load main class com.sas.management.servers.validator.commands.ValidateServer&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Andrew&lt;/P&gt;</description>
      <pubDate>Wed, 28 Mar 2018 06:08:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Script-Server-Validation/m-p/449223#M12709</guid>
      <dc:creator>acfarrer</dc:creator>
      <dc:date>2018-03-28T06:08:27Z</dc:date>
    </item>
    <item>
      <title>Re: Script Server Validation</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Script-Server-Validation/m-p/449225#M12710</link>
      <description>&lt;P&gt;Hi Andrew,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I don't have JAVA_HOME or CLASSPATH environment variables set. It simply works for me with the following:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;ssh sas@sas94m5server&lt;BR /&gt;/opt/sas94m5/sashome/SASPlatformObjectFramework/9.4/ValidateServer -msp "host=sas94m5server port=8561 domain=DefaultAuth userid=sasdemo password=thesecretpassword reposname=Foundation" -sn "SASApp - Logical Workspace Server" -cred "domain=DefaultAuth userid=sasdemo password=thesecretpassword"&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;... with the output going into&amp;nbsp;/home/sas/.SASAppData/Logs/ValidateServerErrorLog.log&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I don't try to invoke it directly with the java command because the&amp;nbsp;ValidateServer script adds lots of additional JRE options. If I run the above but using /bin/sh -x to see the launch command, it is ultimately:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;/opt/sas94m5/sashome/SASPrivateJavaRuntimeEnvironment/9.4/jre/bin/java -Dsas.app.class.dirs=/opt/sas94m5/sashome/SASPlatformObjectFramework/9.4 -Dsas.app.class.path=/opt/sas94m5/sashome/SASPlatformObjectFramework/9.4:.:/opt/sas94m5/sashome/SASPlatformObjectFramework/9.4/build -Dsas.app.launch.picklist=/opt/sas94m5/sashome/SASPlatformObjectFramework/9.4/validate/picklist -Djava.system.class.loader=com.sas.app.AppClassLoader -Dsas.ext.config=/opt/sas94m5/sashome/sas.java.ext.config -Dsas.app.launch.config=picklist -Dsas.app.repository.path=/opt/sas94m5/sashome/SASVersionedJarRepository/eclipse -cp /opt/sas94m5/sashome/SASVersionedJarRepository/eclipse/plugins/sas.launcher.jar com.sas.management.servers.validator.commands.ValidateServer -msp 'host=sas94m5server port=8561 domain=DefaultAuth userid=sasdemo password=thesecretpassword reposname=Foundation' -sn 'SASApp - Logical Workspace Server' -cred 'domain=DefaultAuth userid=sasdemo password=thesecretpassword'&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;... so you can see your java command is missing all the&amp;nbsp;options required to launch the utility and find classes using&amp;nbsp;the picklist and the VJR.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope this helps.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers&lt;/P&gt;
&lt;P&gt;Paul&lt;/P&gt;</description>
      <pubDate>Wed, 28 Mar 2018 06:27:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Script-Server-Validation/m-p/449225#M12710</guid>
      <dc:creator>PaulHomes</dc:creator>
      <dc:date>2018-03-28T06:27:04Z</dc:date>
    </item>
  </channel>
</rss>

