ObjectType Parameter (Send-Trap Cmdlet)

A collection of Object types to add to the trap.

Syntax

Send-Trap -ObjectType string[]

Remarks

Use the ObjectID, ObjectType, and ObjectValue collections to build a custom trap. Note that specifying these values gives you complete control over the contents of the trap, so you are responsible for adding the sysUpTime and the snmpTrapOID objects as well. To automatically send a standard trap, containing only the sysUpTime and the snmpTrapOID, use the TrapOID parameter instead.

ObjectType is used to create an outgoing SNMP packet. The corresponding object ids and values are specified by the ObjectID and ObjectValue collections.

Possible object type values include:

  • Null (default)
  • Integer
  • OctetString
  • ObjectID
  • IPAddress
  • Counter32
  • Gauge32
  • TimeTicks
  • Opaque
  • NSAP
  • Counter64
  • UnsignedInteger32

The cmdlet also supports the following artificial object values used to designate error conditions:

NoSuchObjectNo such object error.
NoSuchInstanceNo such instance error.
EndOfMibViewEnd of MIB View error.

Default Value

null

Parameter Position

3

Parameter Alias

Objtype

This is a required parameter.

Copyright (c) 2022 /n software inc. - All rights reserved.
NetCmdlets 2020 - Version 20.0 [Build 8319]