<?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: Monitor IP ports utility in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/monitor-ip-ports-utility/m-p/5000248#M52882</link>
    <description>Hello&lt;BR /&gt;&lt;BR /&gt;By "monitor" I meant to check if there was a process in a given port and if it responds properly.&lt;BR /&gt;&lt;BR /&gt;The DCL script in htttp://dcl.openvms.org/stories.php?story=03/09/23/7962305 almost suites my needs Iabadie, but I have modified it just to implement a very simple talk with the server across the TNA pseudo-terminal device, as Steven suggested. I also have used as an example a DCL script offered up by Robert Brooks on thread with Subject: Non interactive telnet service, june 19, 2006&lt;BR /&gt;&lt;BR /&gt;This script checks port 25 to see if the SMTP server responds properly&lt;BR /&gt;&lt;BR /&gt;Thank you&lt;BR /&gt;&lt;BR /&gt;$!&lt;BR /&gt;$ set noon&lt;BR /&gt;$ host = "myhost"&lt;BR /&gt;$ port = 25&lt;BR /&gt;$!&lt;BR /&gt;$! Find an unused TNA (Pseudo-terminal device) unit number&lt;BR /&gt;$!&lt;BR /&gt;$ unit = 1&lt;BR /&gt;$ findtna:&lt;BR /&gt;$  if f$getdvi( "tna''unit':", "EXISTS" ) .eqs. "FALSE" then goto tnafound&lt;BR /&gt;$  unit = unit + 1&lt;BR /&gt;$  goto findtna&lt;BR /&gt;$!&lt;BR /&gt;$ tnafound:&lt;BR /&gt;$ telnet/create 'host 'port 'unit /protocol=telnet&lt;BR /&gt;$ if $severity.ne.1&lt;BR /&gt;$ then&lt;BR /&gt;$   write sys$output "Port ''port' unavailable at ''f$time()' on ''host'"&lt;BR /&gt;$!&lt;BR /&gt;$! mail or any ...&lt;BR /&gt;$ else&lt;BR /&gt;$! checking&lt;BR /&gt;$   open/read/write myport tna'unit':&lt;BR /&gt;$   write myport "help"&lt;BR /&gt;$   read myport line&lt;BR /&gt;$   close myport&lt;BR /&gt;$   show sym line&lt;BR /&gt;$   if line.eqs." ..... my text ... "&lt;BR /&gt;$   then&lt;BR /&gt;$     write sys$output "Port 'port check on 'host successful..."&lt;BR /&gt;$   else&lt;BR /&gt;$     write sys$output "Port 'port check on 'host unsuccessful !!"&lt;BR /&gt;$   endif&lt;BR /&gt;$   telnet/delete 'unit&lt;BR /&gt;$ endif&lt;BR /&gt;$ exit</description>
    <pubDate>Fri, 01 Sep 2006 05:00:31 GMT</pubDate>
    <dc:creator>Nicolau Roca</dc:creator>
    <dc:date>2006-09-01T05:00:31Z</dc:date>
    <item>
      <title>Monitor IP ports utility</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/monitor-ip-ports-utility/m-p/5000240#M52874</link>
      <description>Hello&lt;BR /&gt;&lt;BR /&gt;Does anyone use (or know about) an utility able to monitor IP ports on OpenVMS? I would use such utility to periodically verify that the SMTP, POP3 and IMAP services are responding on ports 25, 110 and 143 respectively.&lt;BR /&gt;&lt;BR /&gt;Thank you&lt;BR /&gt;&lt;BR /&gt;Nicolau</description>
      <pubDate>Wed, 30 Aug 2006 05:35:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/monitor-ip-ports-utility/m-p/5000240#M52874</guid>
      <dc:creator>Nicolau Roca</dc:creator>
      <dc:date>2006-08-30T05:35:54Z</dc:date>
    </item>
    <item>
      <title>Re: Monitor IP ports utility</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/monitor-ip-ports-utility/m-p/5000241#M52875</link>
      <description>It really depends on what you mean by&lt;BR /&gt;"monitor".  You can see some useful info&lt;BR /&gt;using commands like:&lt;BR /&gt;&lt;BR /&gt;tcpip show device&lt;BR /&gt;tcpip netstat -a&lt;BR /&gt;&lt;BR /&gt;(and similar), but if you really need to know&lt;BR /&gt;if the service is working, then you really&lt;BR /&gt;need to use it.  I use Wget to check my Web&lt;BR /&gt;server periodically and send me e-mail if it&lt;BR /&gt;doesn't respond properly.&lt;BR /&gt;&lt;BR /&gt;You could probably write a Kermit script or&lt;BR /&gt;use TELNET /CREATE_SESSION to let you talk&lt;BR /&gt;to any port you wish.  What you have to say&lt;BR /&gt;when you talk to it depends on the protocol.&lt;BR /&gt;I believe that this sort of thing has been&lt;BR /&gt;discussed here recently, so searching for&lt;BR /&gt;Kermit and/or CREATE_SESSION might find&lt;BR /&gt;something.&lt;BR /&gt;</description>
      <pubDate>Wed, 30 Aug 2006 09:35:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/monitor-ip-ports-utility/m-p/5000241#M52875</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2006-08-30T09:35:12Z</dc:date>
    </item>
    <item>
      <title>Re: Monitor IP ports utility</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/monitor-ip-ports-utility/m-p/5000242#M52876</link>
      <description>Have a look at &lt;BR /&gt;&lt;A href="http://dcl.openvms.org/stories.php?story=03/09/23/7962305" target="_blank"&gt;http://dcl.openvms.org/stories.php?story=03/09/23/7962305&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;replace 8044 by 25,110 and 143, and the associated text. That's it !</description>
      <pubDate>Wed, 30 Aug 2006 09:46:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/monitor-ip-ports-utility/m-p/5000242#M52876</guid>
      <dc:creator>labadie_1</dc:creator>
      <dc:date>2006-08-30T09:46:10Z</dc:date>
    </item>
    <item>
      <title>Re: Monitor IP ports utility</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/monitor-ip-ports-utility/m-p/5000243#M52877</link>
      <description>Or very simple :&lt;BR /&gt;&lt;BR /&gt;$ def/us sys$output xxx&lt;BR /&gt;$ ucx sho dev/port=0&lt;BR /&gt;&lt;BR /&gt;This will create a file with all ports that have a listener.&lt;BR /&gt;&lt;BR /&gt;Then if diff returns a difference, something is gone/changed/added. Check and take action.&lt;BR /&gt;&lt;BR /&gt;Wim</description>
      <pubDate>Wed, 30 Aug 2006 10:04:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/monitor-ip-ports-utility/m-p/5000243#M52877</guid>
      <dc:creator>Wim Van den Wyngaert</dc:creator>
      <dc:date>2006-08-30T10:04:59Z</dc:date>
    </item>
    <item>
      <title>Re: Monitor IP ports utility</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/monitor-ip-ports-utility/m-p/5000244#M52878</link>
      <description>&amp;gt; [...] That's it !&lt;BR /&gt;&lt;BR /&gt;That's it, _if_ you don't care whether the&lt;BR /&gt;server actually responds to a request.&lt;BR /&gt;Getting connected is nice, but it's not the&lt;BR /&gt;same as proving that the server at the other&lt;BR /&gt;end is working properly.  For that, you need&lt;BR /&gt;to have a little conversation with the server&lt;BR /&gt;after you've gotten connected.</description>
      <pubDate>Wed, 30 Aug 2006 10:40:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/monitor-ip-ports-utility/m-p/5000244#M52878</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2006-08-30T10:40:15Z</dc:date>
    </item>
    <item>
      <title>Re: Monitor IP ports utility</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/monitor-ip-ports-utility/m-p/5000245#M52879</link>
      <description>Steven&lt;BR /&gt;&lt;BR /&gt;You can check that the process owning the device showed by $ tcpip sh dev/port=25/110/143 is still here, but you will not know if is is working or it is hang.&lt;BR /&gt;&lt;BR /&gt;I think Nicolau wants some basic check. &lt;BR /&gt;&lt;BR /&gt;How to check Smtp works fine ?&lt;BR /&gt;- there is a process tcpip$smtp_'node'_xx&lt;BR /&gt;- tcpip sh service smtp -&amp;gt; shows enabled&lt;BR /&gt;- sh que tcpip$smtp_'node'* -&amp;gt; queue is not stopped or any other "bad" state&lt;BR /&gt;- other things to check ?&lt;BR /&gt;&lt;BR /&gt;We have all met situations where the process was here, but not responding.&lt;BR /&gt;</description>
      <pubDate>Wed, 30 Aug 2006 11:00:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/monitor-ip-ports-utility/m-p/5000245#M52879</guid>
      <dc:creator>labadie_1</dc:creator>
      <dc:date>2006-08-30T11:00:44Z</dc:date>
    </item>
    <item>
      <title>Re: Monitor IP ports utility</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/monitor-ip-ports-utility/m-p/5000246#M52880</link>
      <description>&amp;gt; You can check that the process owning the&lt;BR /&gt;&amp;gt; device showed by $ tcpip sh&lt;BR /&gt;&amp;gt; dev/port=25/110/143 is still here, but you&lt;BR /&gt;&amp;gt; will not know if is is working or it is&lt;BR /&gt;&amp;gt; hang.&lt;BR /&gt;&lt;BR /&gt;That's exactly my point.&lt;BR /&gt;&lt;BR /&gt;&amp;gt; I think Nicolau wants some basic check.&lt;BR /&gt;&lt;BR /&gt;I don't know what kind of check he wants,&lt;BR /&gt;which is why I suggested more than one&lt;BR /&gt;method, including a serious test.  As I said,&lt;BR /&gt;'It really depends on what you mean by&lt;BR /&gt;"monitor".'&lt;BR /&gt;&lt;BR /&gt;&amp;gt; We have all met situations where the&lt;BR /&gt;&amp;gt; process was here, but not responding.&lt;BR /&gt;&lt;BR /&gt;_I_ certainly have, which is why I suggested&lt;BR /&gt;actually talking to the server (and listening&lt;BR /&gt;for a response), instead of simply seeing if&lt;BR /&gt;the port is registered, or if a connection to&lt;BR /&gt;the server can be made.&lt;BR /&gt;&lt;BR /&gt;In other words, if you wish to test a POP&lt;BR /&gt;server, then ask the POP server to do&lt;BR /&gt;something (and see if it does it).  Simpler&lt;BR /&gt;tests may be useful, but they will not tell&lt;BR /&gt;you as much as a real test.</description>
      <pubDate>Wed, 30 Aug 2006 13:37:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/monitor-ip-ports-utility/m-p/5000246#M52880</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2006-08-30T13:37:28Z</dc:date>
    </item>
    <item>
      <title>Re: Monitor IP ports utility</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/monitor-ip-ports-utility/m-p/5000247#M52881</link>
      <description>Steven&lt;BR /&gt;&lt;BR /&gt;Many monitoring tools search for a process name, even with the ugly $ show system/proc=*abcd*.&lt;BR /&gt;&lt;BR /&gt;So this means that if a process, started with a privileged UIC like system, disappears for any reason, and a user, with another Uic, has a process name similar or identical (as long as it is a different uic, it is OK), the monitoring tool, often looping with a delay, will not notice it. And it could last for long, if the user does not disconnect</description>
      <pubDate>Thu, 31 Aug 2006 06:17:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/monitor-ip-ports-utility/m-p/5000247#M52881</guid>
      <dc:creator>labadie_1</dc:creator>
      <dc:date>2006-08-31T06:17:40Z</dc:date>
    </item>
    <item>
      <title>Re: Monitor IP ports utility</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/monitor-ip-ports-utility/m-p/5000248#M52882</link>
      <description>Hello&lt;BR /&gt;&lt;BR /&gt;By "monitor" I meant to check if there was a process in a given port and if it responds properly.&lt;BR /&gt;&lt;BR /&gt;The DCL script in htttp://dcl.openvms.org/stories.php?story=03/09/23/7962305 almost suites my needs Iabadie, but I have modified it just to implement a very simple talk with the server across the TNA pseudo-terminal device, as Steven suggested. I also have used as an example a DCL script offered up by Robert Brooks on thread with Subject: Non interactive telnet service, june 19, 2006&lt;BR /&gt;&lt;BR /&gt;This script checks port 25 to see if the SMTP server responds properly&lt;BR /&gt;&lt;BR /&gt;Thank you&lt;BR /&gt;&lt;BR /&gt;$!&lt;BR /&gt;$ set noon&lt;BR /&gt;$ host = "myhost"&lt;BR /&gt;$ port = 25&lt;BR /&gt;$!&lt;BR /&gt;$! Find an unused TNA (Pseudo-terminal device) unit number&lt;BR /&gt;$!&lt;BR /&gt;$ unit = 1&lt;BR /&gt;$ findtna:&lt;BR /&gt;$  if f$getdvi( "tna''unit':", "EXISTS" ) .eqs. "FALSE" then goto tnafound&lt;BR /&gt;$  unit = unit + 1&lt;BR /&gt;$  goto findtna&lt;BR /&gt;$!&lt;BR /&gt;$ tnafound:&lt;BR /&gt;$ telnet/create 'host 'port 'unit /protocol=telnet&lt;BR /&gt;$ if $severity.ne.1&lt;BR /&gt;$ then&lt;BR /&gt;$   write sys$output "Port ''port' unavailable at ''f$time()' on ''host'"&lt;BR /&gt;$!&lt;BR /&gt;$! mail or any ...&lt;BR /&gt;$ else&lt;BR /&gt;$! checking&lt;BR /&gt;$   open/read/write myport tna'unit':&lt;BR /&gt;$   write myport "help"&lt;BR /&gt;$   read myport line&lt;BR /&gt;$   close myport&lt;BR /&gt;$   show sym line&lt;BR /&gt;$   if line.eqs." ..... my text ... "&lt;BR /&gt;$   then&lt;BR /&gt;$     write sys$output "Port 'port check on 'host successful..."&lt;BR /&gt;$   else&lt;BR /&gt;$     write sys$output "Port 'port check on 'host unsuccessful !!"&lt;BR /&gt;$   endif&lt;BR /&gt;$   telnet/delete 'unit&lt;BR /&gt;$ endif&lt;BR /&gt;$ exit</description>
      <pubDate>Fri, 01 Sep 2006 05:00:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/monitor-ip-ports-utility/m-p/5000248#M52882</guid>
      <dc:creator>Nicolau Roca</dc:creator>
      <dc:date>2006-09-01T05:00:31Z</dc:date>
    </item>
    <item>
      <title>Re: Monitor IP ports utility</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/monitor-ip-ports-utility/m-p/5000249#M52883</link>
      <description>Nicolau&lt;BR /&gt;&lt;BR /&gt;May be you could submit your script to dcl.openvms.org, as it may help others ?&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;&lt;BR /&gt;Gerard</description>
      <pubDate>Fri, 01 Sep 2006 07:14:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/monitor-ip-ports-utility/m-p/5000249#M52883</guid>
      <dc:creator>labadie_1</dc:creator>
      <dc:date>2006-09-01T07:14:46Z</dc:date>
    </item>
    <item>
      <title>Re: Monitor IP ports utility</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/monitor-ip-ports-utility/m-p/5000250#M52884</link>
      <description>Script submitted to dcl.openvms.org</description>
      <pubDate>Mon, 04 Sep 2006 03:01:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/monitor-ip-ports-utility/m-p/5000250#M52884</guid>
      <dc:creator>Nicolau Roca</dc:creator>
      <dc:date>2006-09-04T03:01:53Z</dc:date>
    </item>
  </channel>
</rss>

