-
Notifications
You must be signed in to change notification settings - Fork 52
New HPOVSnmpTrapDestination
Create SNMP Trap Destination Object
New-HPOVSnmpTrapDestination [-Destination] <String> [-Community] <String>[ [-Port] <Int>] [-SnmpFormat] <String> [-TrapSeverities] <Array> [-VCMTrapCategories] <Array> [-EnetTrapCategories] <Array> [-FCTrapCategories] <Array> [<CommonParameters>]
New-HPOVSnmpTrapDestination [-Destination] <String> [-SnmpV3User] <HPOneView.Appliance.SnmpV3User>[ [-Port] <Int>] [-SnmpFormat] <String>[ [-NotificationType] <String>] [-EngineID] <String> [-TrapSeverities] <Array> [-VCMTrapCategories] <Array> [-EnetTrapCategories] <Array> [-FCTrapCategories] <Array> [<CommonParameters>]
This helper Cmdlet provides the capability to create a new SNMP Trap Destination object. The object can then be used with New-HPOVSnmpConfiguration to create a new SNMP Configuration for a Logical Interconnect Group or Logical Interconnect resource.
-Community <String>
The SNMP Trap Community String to set.
Aliases | None |
Required? | true |
Position? | named |
Default value | public |
Accept pipeline input? | false |
Accept wildcard characters? | False |
-Destination <String>
The SNMP destination IP Address or FQDN.
Aliases | None |
Required? | true |
Position? | named |
Default value | |
Accept pipeline input? | false |
Accept wildcard characters? | False |
-EnetTrapCategories <Array>
A collection [System.Collections.ArrayList ] of SNMP Trap Severities to generate Traps for. Allowed values:
* Other
* PortStatus
* PortThresholds
Aliases | None |
Required? | true |
Position? | named |
Default value | |
Accept pipeline input? | false |
Accept wildcard characters? | False |
-EngineID <String>
The EngineId of remote SNMPv3 user. Only applicable when configuring an SNMPv3 object for the appliance, not logical interconnect groups or logical interconnects.
Aliases | None |
Required? | True |
Position? | named |
Default value | |
Accept pipeline input? | false |
Accept wildcard characters? | False |
-FCTrapCategories <Array>
A collection [System.Collections.ArrayList ] of SNMP Trap Severities to generate Traps for. Allowed values:
* Other
* PortStatus
Aliases | None |
Required? | true |
Position? | named |
Default value | |
Accept pipeline input? | false |
Accept wildcard characters? | False |
-NotificationType <String>
Indicates whether the trap should be inform message or not. Allowed values:
* Inform
* Trap
Aliases | None |
Required? | False |
Position? | named |
Default value | Trap |
Accept pipeline input? | false |
Accept wildcard characters? | False |
-Port <Int>
Provide the alternate SNMP trap reciever port.
Aliases | None |
Required? | False |
Position? | named |
Default value | |
Accept pipeline input? | false |
Accept wildcard characters? | False |
-SnmpFormat <String>
SNMP Format type. Allowed values:
* SNMPv1
* SNMPv2
* SNMPv3
Aliases | None |
Required? | true |
Position? | named |
Default value | SNMPv1 |
Accept pipeline input? | false |
Accept wildcard characters? | False |
-SnmpV3User <HPOneView.Appliance.SnmpV3User>
A valid SNMPv3 user from New-HPOVSnmpV3User.
Aliases | None |
Required? | True |
Position? | named |
Default value | |
Accept pipeline input? | false |
Accept wildcard characters? | False |
-TrapSeverities <Array>
A collection [System.Collections.ArrayList ] of SNMP Trap Severities to generate Traps for. Allowed values:
* Critical
* Info
* Major
* Minor
* Normal
* Unknown
* Warning
Aliases | None |
Required? | true |
Position? | named |
Default value | |
Accept pipeline input? | false |
Accept wildcard characters? | False |
-VCMTrapCategories <Array>
A collection [System.Collections.ArrayList ] of VCM Trap Categories. Allowed values:
* Legacy
Aliases | None |
Required? | true |
Position? | named |
Default value | |
Accept pipeline input? | false |
Accept wildcard characters? | False |
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, WarningVariable, OutBuffer, PipelineVariable, and OutVariable. For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216)
None. You cannot pipe objects to this Cmdlet.
HPOneView.Networking.SnmpTrapDestination [System.Management.Automation.PSCustomObject]
SNMP Trap desitnation object for an SNMP Configuration Object
-------------------------- EXAMPLE 1 --------------------------$Dest1 = New-HPOVSnmpTrapDestination -Destination mysnmpserver.domain.local -Community MyR3adcommun1ty -SnmpFormat SNMPv1 -TrapSeverities critical,warning $Dest2 = New-HPOVSnmpTrapDestination 10.44.120.9 MyR3adcommun1ty SNMPv1 critical,warning legacy "Other","PortStatus","PortThresholds" "Other","PortStatus" $SnmpConfig = New-HPOVSnmpConfiguration -ReadCommunity MyR3adC0mmun1ty -AccessList "10.44.120.9/32","172.20.148.0/22 -TrapDestinations $Dest1,$Dest2 New-HPOVLogicalInterconnectGroup -LIGName "Flex10/10D and FlexFabric Production 1" -bays @{1 = "Flex1010D";2 = "Flex1010D";3 = "FlexFabric";4 = "FlexFabric"} -SNMP $SnmpConfig
Create a new SNMP Configuration object, with the specified Trap Destinations, and use the created object to add to a new Logical Interconnect Group.
-------------------------- EXAMPLE 2 --------------------------# Create SNMPv3 user account for appliance. $SNMPv3User = New-HPOVSnmpv3User -Username snmpv3user -SecurityLevel None -ApplianceSnmpUser $Dest1 = New-HPOVSnmpTrapDestination -Destination mysnmpserver.domain.local -Community MyR3adcommun1ty -SnmpFormat SNMPv1 -TrapSeverities critical,warning $Dest2 = New-HPOVSnmpTrapDestination 10.44.120.9 MyR3adcommun1ty SNMPv1 critical,warning legacy "Other","PortStatus","PortThresholds" "Other","PortStatus" $SnmpConfig = New-HPOVSnmpConfiguration -ReadCommunity MyR3adC0mmun1ty -AccessList "10.44.120.9/32","172.20.148.0/22 -TrapDestinations $Dest1,$Dest2 New-HPOVLogicalInterconnectGroup -LIGName "Flex10/10D and FlexFabric Production 1" -bays @{1 = "Flex1010D";2 = "Flex1010D";3 = "FlexFabric";4 = "FlexFabric"} -SNMP $SnmpConfig
Create a new SNMP Configuration object, with the specified Trap Destinations, and use the created object to add to a new Logical Interconnect Group.
Create SNMP Trap Destination Object
New-HPOVSnmpTrapDestination [-Destination] <String> [-Community] <String>[ [-Port] <Int>] [-SnmpFormat] <String> [-TrapSeverities] <Array> [-VCMTrapCategories] <Array> [-EnetTrapCategories] <Array> [-FCTrapCategories] <Array> [<CommonParameters>]
New-HPOVSnmpTrapDestination [-Destination] <String> [-SnmpV3User] <HPOneView.Appliance.SnmpV3User> [-EngineID] <String>[ [-Port] <Int>] [-SnmpFormat] <String>[ [-NotificationType] <String>] [-TrapSeverities] <Array> [-VCMTrapCategories] <Array> [-EnetTrapCategories] <Array> [-FCTrapCategories] <Array> [<CommonParameters>]
This helper Cmdlet provides the capability to create a new SNMP Trap Destination object. The object can then be used with New-HPOVSnmpConfiguration to create a new SNMP Configuration for a Logical Interconnect Group or Logical Interconnect resource.
-Community <String>
The SNMP Trap Community String to set.
Aliases | None |
Required? | true |
Position? | named |
Default value | public |
Accept pipeline input? | false |
Accept wildcard characters? | False |
-Destination <String>
The SNMP destination IP Address or FQDN.
Aliases | None |
Required? | true |
Position? | named |
Default value | |
Accept pipeline input? | false |
Accept wildcard characters? | False |
-EnetTrapCategories <Array>
A collection [System.Collections.ArrayList ] of SNMP Trap Severities to generate Traps for. Allowed values:
* Other
* PortStatus
* PortThresholds
Aliases | None |
Required? | true |
Position? | named |
Default value | |
Accept pipeline input? | false |
Accept wildcard characters? | False |
-EngineID <String>
The EngineId of remote SNMPv3 user.
Aliases | None |
Required? | True |
Position? | named |
Default value | |
Accept pipeline input? | false |
Accept wildcard characters? | False |
-FCTrapCategories <Array>
A collection [System.Collections.ArrayList ] of SNMP Trap Severities to generate Traps for. Allowed values:
* Other
* PortStatus
Aliases | None |
Required? | true |
Position? | named |
Default value | |
Accept pipeline input? | false |
Accept wildcard characters? | False |
-NotificationType <String>
Indicates whether the trap should be inform message or not. Allowed values:
* Inform
* Trap
Aliases | None |
Required? | False |
Position? | named |
Default value | Trap |
Accept pipeline input? | false |
Accept wildcard characters? | False |
-Port <Int>
Provide the alternate SNMP trap reciever port.
Aliases | None |
Required? | False |
Position? | named |
Default value | |
Accept pipeline input? | false |
Accept wildcard characters? | False |
-SnmpFormat <String>
SNMP Format type. Allowed values:
* SNMPv1
* SNMPv2
Aliases | None |
Required? | true |
Position? | named |
Default value | SNMPv1 |
Accept pipeline input? | false |
Accept wildcard characters? | False |
-SnmpV3User <HPOneView.Appliance.SnmpV3User>
A valid SNMPv3 user from New-HPOVSnmpV3User.
Aliases | None |
Required? | True |
Position? | named |
Default value | |
Accept pipeline input? | false |
Accept wildcard characters? | False |
-TrapSeverities <Array>
A collection [System.Collections.ArrayList ] of SNMP Trap Severities to generate Traps for. Allowed values:
* Critical
* Info
* Major
* Minor
* Normal
* Unknown
* Warning
Aliases | None |
Required? | true |
Position? | named |
Default value | |
Accept pipeline input? | false |
Accept wildcard characters? | False |
-VCMTrapCategories <Array>
A collection [System.Collections.ArrayList ] of VCM Trap Categories. Allowed values:
* Legacy
Aliases | None |
Required? | true |
Position? | named |
Default value | |
Accept pipeline input? | false |
Accept wildcard characters? | False |
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, WarningVariable, OutBuffer, PipelineVariable, and OutVariable. For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216)
None. You cannot pipe objects to this Cmdlet.
HPOneView.Networking.SnmpTrapDestination [System.Management.Automation.PSCustomObject]
SNMP Trap desitnation object for an SNMP Configuration Object
-------------------------- EXAMPLE 1 --------------------------$Dest1 = New-HPOVSnmpTrapDestination -Destination mysnmpserver.domain.local -Community MyR3adcommun1ty -SnmpFormat SNMPv1 -TrapSeverities critical,warning $Dest2 = New-HPOVSnmpTrapDestination 10.44.120.9 MyR3adcommun1ty SNMPv1 critical,warning legacy 'Other','PortStatus','PortThresholds' 'Other','PortStatus' $SnmpConfig = New-HPOVSnmpConfiguration -ReadCommunity MyR3adC0mmun1ty -AccessList '10.44.120.9/32','172.20.148.0/22 -TrapDestinations $Dest1,$Dest2 New-HPOVLogicalInterconnectGroup -LIGName "Flex10/10D and FlexFabric Production 1" -bays @{1 = "Flex1010D";2 = "Flex1010D";3 = "FlexFabric";4 = "FlexFabric"} -SNMP $SnmpConfig
Create a new SNMP Configuration object, with the specified Trap Destinations, and use the created object to add to a new Logical Interconnect Group.