Set-VBRSNMPOptions
Short Description
Modifies global SNMP settings.
Product Edition: Standard, Enterprise, Enterprise Plus, Veeam Universal License
Syntax
|
Set-VBRSNMPOptions -Receiver <VBRSNMPReceiver[]> [<CommonParameters>] |
Detailed Description
This cmdlet modifies global SNMP settings. You can run this cmdlet, if you want to add SNMP recipient settings to the global SNMP settings.
Note |
|
To modify settings, specify new values for the necessary parameters. The cmdlet will overwrite the previous parameter values with new values. The parameters that you omit will remain unchanged. |
Parameters
|
Parameter |
Description |
Type |
Required |
Position |
Accept Pipeline Input |
|---|---|---|---|---|---|
|
Receiver |
Specifies an array of IP addresses of the SNMP recipient.
Accepts the |
|
True |
Named |
False |
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see Microsoft Docs.
Output Object
The cmdlet returns the VBRSNMPOptions object that defines global SNMP settings.
Examples
Modifying Global SNMP Settings
This example shows how to add the following SNMP settings to the global SNMP settings:
- An IP addresses of the SNMP recipient is set to
172.17.53.28. - The port that Veeam Backup & Replication will use to send messages is set to
22. - The community identifier is set to
public.
|
$recipient = New-VBRSNMPReceiver -ReceiverIP 172.17.53.28 -ReceiverPort 22 -CommunityString public Set-VBRSNMPOptions -Receiver $recipient ReceiverIP ReceiverPort CommunityString ---------- ------------ --------------- 172.17.53.28 22 public |
Perform the following steps:
- Run the
New-VBRSNMPReceiverDefines SNMP recipient settings. cmdlet. Specify theReceiverIP,ReceiverPortand theCommunityStringparameters. Save the result to the$recipientvariable. - Run the
Set-VBRSNMPReceivercmdlet. Set the$recipientvariable as theReceiverparameter value.The cmdlet output will contain the following SNMP settings:
ReceiverIP,ReceiverPortand theCommunityString.
Related Commands
New-VBRSNMPReceiverDefines SNMP recipient settings.