Type of Managed Servers

PowerShell script exchange

Type of Managed Servers

Veeam Logoby Cookiie » Thu Jun 25, 2015 8:40 am

Hi there,

if i try to get a list of managed servers, they have all different types, VC, HvServer and so on.
It would be great to get a full list of all possible values.
It tried to look into the database, table Hosts should be my favorit, but it seeams that the types there are enum values, so i need again a matching.

Could you help?

Greetings
Michael Richter
Cookiie
Novice
 
Posts: 6
Liked: never
Joined: Wed May 27, 2015 1:45 pm
Full Name: Michael Richter

Re: Type of Managed Servers

Veeam Logoby v.Eremin » Thu Jun 25, 2015 9:52 am

You can list all unique types of servers that are currently present inside your infrastructure via this one-liner:

Code: Select all
Get-VBRServer | select {$_.Type} -Unique


Or you want to get all values Type parameter can possibly have?

Thanks.
v.Eremin
Veeam Software
 
Posts: 13281
Liked: 970 times
Joined: Fri Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin

Re: Type of Managed Servers

Veeam Logoby Cookiie » Thu Jun 25, 2015 2:17 pm

v.Eremin wrote:Or you want to get all values Type parameter can possibly have?


Yes, when this is possible.
Cookiie
Novice
 
Posts: 6
Liked: never
Joined: Wed May 27, 2015 1:45 pm
Full Name: Michael Richter

Re: Type of Managed Servers

Veeam Logoby v.Eremin » Thu Jun 25, 2015 2:28 pm

Here we go:

Code: Select all
ESX 
VC
Linux
Local
Windows
ESXi
HvServer
HvCluster
Scvmm
BackupServer
SanHost
SmbServer
SmbCluster
VcdSystem
Cloud
v.Eremin
Veeam Software
 
Posts: 13281
Liked: 970 times
Joined: Fri Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin

Re: Type of Managed Servers

Veeam Logoby Cookiie » Fri Jun 26, 2015 7:26 am

Thx, this is helpful.
Maybe i need more help later, with other listtypes.

Greetings
Cookiie
Novice
 
Posts: 6
Liked: never
Joined: Wed May 27, 2015 1:45 pm
Full Name: Michael Richter

Re: Type of Managed Servers

Veeam Logoby v.Eremin » Fri Jun 26, 2015 8:51 am

Having all possible values at hand is not always helpful, as in most cases you'd hardly see half of them in your infrastructure.

Anyway, ask for additional assistance, if required.

Thanks.
v.Eremin
Veeam Software
 
Posts: 13281
Liked: 970 times
Joined: Fri Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin


Return to PowerShell



Who is online

Users browsing this forum: No registered users and 4 guests