SnmpNotification class

The SnmpNotification class maps from the NOTIFICATION-TYPE macro to an encapsulated CIM class. It is a base class used by the SNMP Provider for any class mapped from the NOTIFICATION-TYPE macro to an encapsulated CIM class by the SNMP Provider.

Note

For more information about installing the provider, see Setting up the WMI SNMP Environment.

Syntax

class SnmpNotification : __ExtrinsicEvent
{
  uint8  SECURITY_DESCRIPTOR[];
  uint64 TIME_CREATED;
  string AgentAddress;
  string AgentTransport;
  string AgentTransportAddress;
  string Community;
  string Identification;
  string TimeStamp;
  string AgentTransportProtocol;
};

Members

The SnmpNotification class has these types of members:

Properties

The SnmpNotification class has these properties.

AgentAddress

Data type: string

Access type: Read-only

Network address of the entity that created the notification. This is the actual address of the device. When the management entity uses SNMP over UDP, the transport address refers to an IP address. When the management entity uses SNMP over IPX, the transport address is set to NULL. This property is valid for SNMPv1 only.

AgentTransport

Data type: string

Access type: Read-only

Transport protocol used by the sending entity. This property is valid for SNMPv1 and SNMPv2C.

AgentTransportAddress

Data type: string

Access type: Read-only

Network address of the entity that sent the notification. This is the address of the last entity that forwarded the notification. When the management entity uses SNMP over UDP, the transport address refers to an IP address. When the management entity uses SNMP over IPX, the transport address refers to an IPX address. This property is valid for SNMPv1 and SNMPv2C.

AgentTransportProtocol

Data type: string

Access type: Read-only

The transport protocol used by the sending entity.

Community

Data type: string

Access type: Read-only

Community name associated with an instance of the PDU. The community name authenticates the originator of the PDU. This property is valid for both SNMPv1 and SNMPv2C.

Identification

Data type: string

Access type: Read-only

Qualifiers: textual_convention ("OBJECTIDENTIFIER"), encoding ("OBJECTIDENTIFIER"), object_syntax ("OBJECTIDENTIFIER"), object_identifier ("1.3.6.1.6.3.1.1.4.1")

Authoritative identification of this notification. Maps directly to the SnmpTrapOID variable binding. This property is valid for SNMPv2C only.

SECURITY_DESCRIPTOR

Data type: uint8 array

Access type: Read-only

Descriptor used by the event provider to determine which users can receive the event. This property is inherited from __Event. For more information about constants used to set this security descriptor, see WMI Security Constants.

TIME_CREATED

Data type: uint64

Access type: Read-only

Unique value that indicates the time at which the event was generated. This is a 64-bit value that represents the number of 100-nanosecond intervals after January 1, 1601. The information is in the Coordinated Universal Times (UTC) format. This property is inherited from __Event.

For more information about using uint64 values in scripts, see Scripting in WMI.

TimeStamp

Data type: string

Access type: Read-only

Qualifiers: textual_convention ("TimeTicks"), encoding ("TimeTicks"), object_syntax ("TimeTicks"), object_identifier ("1.3.6.1.2.1.1.3")

Time in hundredths of a second since the network management portion of the agent was last re-initialized. MIB variable sysUptime.0, which is of type INTEGER32. This property maps to the CIM class property TimeStamp, which is of type uint32. This property is valid for SNMPv2C only.

Remarks

A NOTIFICATION-TYPE macro that contains references to an OBJECT-TYPE macro named TimeStamp or Identification causes a mapping conflict. If this conflict occurs, the required properties take precedence and the conflicting references must be renamed.

A NOTIFICATION-TYPE macro that contains references to an OBJECT-TYPE macro named Community causes a mapping conflict. If this conflict occurs, the required properties take precedence and the conflicting references must be renamed.

Requirements

Requirement Value
Minimum supported client
Windows Vista
Minimum supported server
Windows Server 2008
Namespace
Root\snmp\localhost

See also

__ExtrinsicEvent

NOTIFICATION-TYPE Macro