Port script detection in windows

Source: Internet
Author: User


In windows, the port script detects rem. If the citrix tcp1494 port fails, then restart the server rem ************************************ * *************** title Citrix status detection, port TCP1494 DATE = % date :~ 1494% time % cls netstat-an | find "LIST" | find/c "0:" @ echo off www.2cto.com if not errorlevel 1 goto exit echo Citrix is not normal, you need to restart the server !! If rem is abnormal, the echo citrix service is abnormal when logs are written. Time % DATE %> citrixstatus. log shutdown/f/r: exit echo Citrix status OK! Netstat-an | find "LIST" The find filter is case-sensitive and identifies islandstar, the row author with the LISTENING string (LISTENING ).

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.