Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

1Dimitri/ClusterEnv

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ClusterEnv

When running on a Windows Failover cluster node, this tool runs a command under a resource name as computername if the application uses the standard APIs.

Usage

clusterenv CLUSTERRESMQ -- powershell -command "ls Env:"
clusterenv  RES2 mmc compmgmt.msc

Usage scenarios include troubleshooting MSMQ in clustered environments.

Notes

As mentioned in the GetHostName documentation, when you are running on a cluster, you can trick the application into using the clustered name resource as the computer name instead of using the node's name. Please note that the Microsoft documentation at this stage is inaccurate and that the environment variable should have a leading and trailing underscore as you can check with the hostname command.

About

Windows Failover cluster tool to run command under the clustered name context as computername

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.