<?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 VIP monitoring script in Administration and Deployment</title>
    <link>https://communities.sas.com/t5/Administration-and-Deployment/VIP-monitoring-script/m-p/314315#M6640</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is not exactly sas, but we are lokking this for the servers hosting SAS.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to develop script in any language which could&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. check if the service is running in DR site.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We have failover mechanish.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;for ex. server.mysas.com is the VIP and this reslves to either primary server server1.mysas.com or secondart (DR) server server2.mysas.com, I want to be able to have a script which alerts whenever the VIP starts resolving to the unexpected IP/host&lt;/P&gt;</description>
    <pubDate>Fri, 25 Nov 2016 14:49:13 GMT</pubDate>
    <dc:creator>GyaniBaba</dc:creator>
    <dc:date>2016-11-25T14:49:13Z</dc:date>
    <item>
      <title>VIP monitoring script</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/VIP-monitoring-script/m-p/314315#M6640</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is not exactly sas, but we are lokking this for the servers hosting SAS.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to develop script in any language which could&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. check if the service is running in DR site.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We have failover mechanish.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;for ex. server.mysas.com is the VIP and this reslves to either primary server server1.mysas.com or secondart (DR) server server2.mysas.com, I want to be able to have a script which alerts whenever the VIP starts resolving to the unexpected IP/host&lt;/P&gt;</description>
      <pubDate>Fri, 25 Nov 2016 14:49:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/VIP-monitoring-script/m-p/314315#M6640</guid>
      <dc:creator>GyaniBaba</dc:creator>
      <dc:date>2016-11-25T14:49:13Z</dc:date>
    </item>
    <item>
      <title>Re: VIP monitoring script</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/VIP-monitoring-script/m-p/314461#M6646</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/79597"&gt;@GyaniBaba﻿&lt;/a&gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In Windows, you can create a batch script to check the status of services on remote machine;&lt;/P&gt;&lt;P&gt;You have to add the following codes in .bat file:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;STEP 1:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;net use \\&lt;/STRONG&gt;hostname_of_SAS_server Password &lt;STRONG&gt;/User:&lt;/STRONG&gt;Windowsuser&amp;nbsp;(Using this command you can connect your local machine to your SAS Server )&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;STEP 2 (Add the SAS services name):&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;sc \\&lt;/STRONG&gt;hostname_of_SAS_server &lt;STRONG&gt;query "&lt;/STRONG&gt;SAS_Service_Name&lt;STRONG&gt;" | FIND&lt;/STRONG&gt; "STATE&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;sc \\&lt;/STRONG&gt;&lt;SPAN&gt;hostname_of_SAS_server &lt;/SPAN&gt;&lt;STRONG&gt;query "&lt;/STRONG&gt;&lt;SPAN&gt;SAS_Service_Name&lt;/SPAN&gt;&lt;STRONG&gt;" | FIND&lt;/STRONG&gt;&lt;SPAN&gt; "STATE &lt;STRONG&gt;&amp;gt;&lt;/STRONG&gt; &lt;STRONG&gt;status.txt&lt;/STRONG&gt; (if you want to create the file of all services state information)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After running these two commands,&lt;/P&gt;&lt;P&gt;you will get the information of&amp;nbsp;that service name in cmd like this:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;STATE &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;: 4 &amp;nbsp;RUNNING&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope that with this information you can create your script according to your need&amp;nbsp;&lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 26 Nov 2016 13:41:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/VIP-monitoring-script/m-p/314461#M6646</guid>
      <dc:creator>Kalind_Patel</dc:creator>
      <dc:date>2016-11-26T13:41:56Z</dc:date>
    </item>
  </channel>
</rss>

