Get-Trap Cmdlet
Parameters Output Objects Configuration Settings
The Get-Trap cmdlet provides a listening point for SNMP traps.
Syntax
Get-Trap [parameters]
Remarks
The Get-Trap cmdlet provides a listening point for SNMP traps and informs as specified by the SNMP RFCs. The cmdlet supports v1, v2c, and v3 traps.
The cmdlet provides both encoding/decoding and transport capabilities, making the task of receiving and monitoring SNMP traps as simple as setting a few key parameters and handling the output object. SNMP data, such as for instance SNMP object id-s (OID-s) are exchanged as text strings, thus further simplifying the task of handling them.
The cmdlet provides seamless translation of trap labels using MIB files from vendors as well as the standard ones that are included in the installation of the cmdlet.
The cmdlets support pipeline input for some of their parameters. Prebuilding an object and piping it to the cmdlet is very useful, but should be used with caution to prevent security conflicts. Steps have been taken to decrease the risk of a possibly accidental pipe to the cmdlet, for instance, the Credential parameter cannot be piped to the cmdlet and must be specified manually.
1>
get
-trap
Parameter List
The following is the full list of the parameters of the cmdlet with short descriptions. Click on the links for further details.
LogFile | The location of a file to which debug information is written. |
AuthenticationProtocol | The authentication protocol used. |
Config | Specifies one or more configuration settings. |
EncryptionAlgorithm | The encryption algorithm used for the request. |
EncryptionPassword | The password used for SNMPv3 privacy. |
LocalIP | The IP address of the local interface with which to bind. |
LocalPort | The local port that the cmdlet should use. |
LogFile | The location of a file to which debug information is written. |
Password | The password used for SNMPv3 authentication. |
Time | The duration of the bind. |
Translate | Resolve OIDs to labels in the response for the trap. |
User | The user name used for SNMPv3 authentication. |
Output Objects
The following is the full list of the output objects returned by the cmdlet with short descriptions. Click on the links for further details.
Trap | This object is returned for each trap received by the cmdlet. |
Configuration Settings
The following is a list of configuration settings for the cmdlet with short descriptions. Click on the links for further details.
UseBackgroundThread | Whether threads created by the cmdlet are background threads. |
UseInternalSecurityAPI | Tells the cmdlet whether or not to use the system security libraries or an internal implementation. |