PowerShell script exchange
Post Reply
estoeffels
Novice
Posts: 3
Liked: never
Joined: Jan 04, 2012 11:37 pm
Full Name: Erik Stoeffels
Contact:

Remove-VBRserver didn't remove VC from Get-VBRServer list

Post by estoeffels »

Somehow I have two entries for a FQDN named VC under Get-VBRServer list not showing under GUI at all.

Started out with one VC using IP and added FQDN VC through PS, then removed using PS command

$removeme = Get-VBRServer | where{$_.Name -eq "fqdn placed here"}
$removeme | Remove-VBRServer

Then entered Y and it removed from GUI but the orphan in Get-vbrserver list remains
I tried added the FQDN using GUI and then removed in GUI also and now have two orphan unused fqdn entries under get-vbrserver.

Can't seem to clear these out, any thoughts?

Erik
Sethbartlett
Veteran
Posts: 282
Liked: 26 times
Joined: Nov 10, 2010 6:51 pm
Full Name: Seth Bartlett
Contact:

Re: Remove-VBRserver didn't remove VC from Get-VBRServer lis

Post by Sethbartlett »

You can try doing:

Code: Select all

(Get-VBRServer | ?{$_.name -eq "VC I want to get rid of"}).Delete()
Give that a shot and see if it works. If not, I can tell you where to kill it in the DB.
Skype: Sethbartlett88 - Make sure to label who you are and why you want to add me ;)
Twitter: @sethbartlett
If my post was helpful, please like it. Sometimes twitter is quicker to hit me up if you need me.
estoeffels
Novice
Posts: 3
Liked: never
Joined: Jan 04, 2012 11:37 pm
Full Name: Erik Stoeffels
Contact:

Re: Remove-VBRserver didn't remove VC from Get-VBRServer lis

Post by estoeffels »

PS D:\scripts> (Get-VBRServer | ?{$_.name -eq "FQDN"}).Delete()
PS D:\scripts> (Get-VBRServer | ?{$_.name -eq "FQDN"})


Info : Veeam.Backup.Model.CDBHost
Id : 843796fe-1fbb-42d0-a31f-599e14a659d5
Name : FQDN
RealName : FQDN
Reference :
Description :
Type : VC
ApiVersion : Unknown

I don't seem to be able to call the Delete function as you had specified. Can you please enlighten me to the database location to remove this ghost VC target?

Thanks,
ERIK
ZachW
Enthusiast
Posts: 68
Liked: 10 times
Joined: Aug 02, 2011 6:09 pm
Full Name: Zach Weed
Contact:

Re: Remove-VBRserver didn't remove VC from Get-VBRServer lis

Post by ZachW »

Have you tried:

$Ghost = Get-VbrServer | ?{$_.name -eq "name_of_ghost_server"}
$Ghost.Delete()
ZachW
Enthusiast
Posts: 68
Liked: 10 times
Joined: Aug 02, 2011 6:09 pm
Full Name: Zach Weed
Contact:

Re: Remove-VBRserver didn't remove VC from Get-VBRServer lis

Post by ZachW »

Please disregard my last post, as I mis-read Seth's script :-)

If you need more assistance, please create a support ticket.
Post Reply

Who is online

Users browsing this forum: No registered users and 10 guests