Export (0) Print
Expand All

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 support or requirements for installation on a specific operating system, see Operating System Availability of WMI Components.

Syntax

class SnmpNotification : __ExtrinsicEvent
{
  string AgentAddress;
  string AgentTransport;
  string AgentTransportAddress;
  string Community;
  string Identification;
  string TimeStamp;
};

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.

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

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

TimeStamp
Data type: string
Access type: Read-only

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

Minimum supported client

Windows Vista

Minimum supported server

Windows Server 2003

Namespace

Root\snmp\localhost

See also

NOTIFICATION-TYPE Macro

 

 

Show:
© 2015 Microsoft