Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Host for virtual machines #177

Open
jacobgexigo opened this issue Apr 28, 2022 · 1 comment
Open

Add Host for virtual machines #177

jacobgexigo opened this issue Apr 28, 2022 · 1 comment
Labels
DBA Dash Agent Issue affecting the agent

Comments

@jacobgexigo
Copy link

Would it be possible to add the name of the host when the machine is virtual (to the Info tab under Configuration)? I think this solution may only work for HyperV hosts, but maybe someone will know how to get it for VMWare as well.

DECLARE @value VARCHAR(100)
EXEC master..xp_regread
'HKEY_LOCAL_MACHINE',
'SOFTWARE\Microsoft\Virtual Machine\Guest\Parameters',
'PhysicalHostName',
@value = @value OUTPUT

SELECT TOP 1 @value AS PhysicalHostName

@DavidWiseman
Copy link
Collaborator

Cool. That might be something I could add to this collection. It already pulls a couple of things out of registry keys if it has access to.

@DavidWiseman DavidWiseman added DBA Dash GUI system client (web, mobile, CLI, 3rd party) DBA Dash Agent Issue affecting the agent and removed DBA Dash GUI system client (web, mobile, CLI, 3rd party) labels Apr 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
DBA Dash Agent Issue affecting the agent
Projects
None yet
Development

No branches or pull requests

2 participants