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

PowerShell script exchange

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

Veeam Logoby estoeffels » Sat Jan 07, 2012 2:06 am

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
estoeffels
Novice
 
Posts: 3
Liked: never
Joined: Wed Jan 04, 2012 11:37 pm
Full Name: Erik Stoeffels

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

Veeam Logoby Sethbartlett » Sat Jan 07, 2012 5:38 pm

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.
Sethbartlett
Expert
 
Posts: 282
Liked: 25 times
Joined: Wed Nov 10, 2010 6:51 pm
Full Name: Seth Bartlett

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

Veeam Logoby estoeffels » Wed May 02, 2012 8:27 pm

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
estoeffels
Novice
 
Posts: 3
Liked: never
Joined: Wed Jan 04, 2012 11:37 pm
Full Name: Erik Stoeffels

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

Veeam Logoby ZachW » Fri May 04, 2012 2:34 pm

Have you tried:

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

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

Veeam Logoby ZachW » Fri May 04, 2012 3:11 pm

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

If you need more assistance, please create a support ticket.
ZachW
Enthusiast
 
Posts: 68
Liked: 10 times
Joined: Tue Aug 02, 2011 6:09 pm
Full Name: Zach Weed


Return to PowerShell



Who is online

Users browsing this forum: No registered users and 13 guests