ObjectID Parameter (Send-Trap Cmdlet)

A collection of OIDs to add to the trap.

Syntax

Send-Trap -ObjectID 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.

The object id-s are encoded as strings of numbers separated by "."-s, for instance: "1.3.6.1.6.3.1.1.5.1" (OID for "coldstart"). The corresponding object types and values (if any) are specified by the ObjectType and ObjectValue collections.

Default Value

null

Parameter Position

1

Parameter Alias

ObjId

This is a required parameter.

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