PowerShell script exchange
Post Reply
matteu
Veeam Legend
Posts: 725
Liked: 118 times
Joined: May 11, 2018 8:42 am
Contact:

Remove SNMP configuration

Post by matteu »

Hello,

How is it possible to remove SNMP configuration ?
I just see the new-vbrsnmpreceiver and Set-vbrsnmpreceiver but what if I want to remove it ?

Thanks
oleg.feoktistov
Veeam Software
Posts: 1918
Liked: 636 times
Joined: Sep 25, 2019 10:32 am
Full Name: Oleg Feoktistov
Contact:

Re: Remove SNMP configuration

Post by oleg.feoktistov »

Hi matteu,

If you want to remove few receivers, but not the whole list, you can get by with the official cmdlets:

Code: Select all

$receivers = (Get-VBRSNMPOptions).Receiver
$newReceivers = $receivers | Select-Object -Skip 1 # skips the first item in the array
$newReceivers
Set-VBRSNMPOptions -Receiver $newReceivers
If you want to remove SNMP configuration completely, try this workaround:

Code: Select all

[Veeam.Backup.DBManager.CDBManager]::Instance.Options.SaveSnmpReceivers(@())
Best regards,
Oleg
matteu
Veeam Legend
Posts: 725
Liked: 118 times
Joined: May 11, 2018 8:42 am
Contact:

Re: Remove SNMP configuration

Post by matteu »

Thanks for your answer, it's working perfectly to entirely remove the configuration with the "workarround" !
Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 16 guests