Forum Discussion
byang_102573
Apr 01, 2010Historic F5 Account
Does LTM any advanced health monitor for RDP service?
Hi all
I have a customer use the LTM for windows terminal server load balancing . They met a problem that the tcp 3389 health check was ok but the server was not available for RDP service. Do w...
hwidjaja_37598
Altostratus
Dec 23, 2010Try this alternative:
Download and build Zenoss' wmic on a CentOS system:
[root@CentOS ~] wget http://dev.zenoss.org/svn/trunk/inst/externallibs/wmi-1.3.14.tar.bz2
[root@CentOS ~] tar xfj wmi-1.3.14.tar.bz2
[root@CentOS ~] cd wmi-1.3.14
[root@CentOS wmi-1.3.14] make
Transfer wmic binary to your LTM:
[root@CentOS wmi-1.3.14] scp Samba/source/bin/wmic root@YourLTM:/usr/local/bin
Test wmic from your LTM:
[root@YourLTM] ~ wmic -U [domain/]adminuser%password //host "select State from Win32_Service where Name='TermService'"
CLASS: Win32_Service
Name|State
TermService|Running
Sample code on how to check whether or not RDP service is running:
wmic -U [domain/]adminuser%password //host \
"select State from Win32_Service where Name='TermService'" \
| egrep "^TermService\|Running$" >/dev/null 2>&1
if [ $? -eq 0 ]; then
echo "UP"
fi
Good luck ...
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects
