On Time RTOS-32 Documentation
Welcome
RTTarget-32
RTKernel-32
RTFiles-32
RTIP-32
RTIP-32 Programming Manual
Introduction
TCP/IP Networking
Programming with RTIP-32
Demo Programs
PPP
DHCP Client
DHCP Server
FTP Client
FTP Server
TFTP Client
TFTP Server
Telnet Client
Telnet Server
Web Server
SNMP Agent
SNMP Commands
Managed Objects
SNMPv2
Traps
POP3 Client
SMTP Client
SNTP Client
SMB Server
SMB Client
SMB3 Server
SMB3 Client
WLAN Driver
RTIP-32 Reference Manual
RTPEG-32
RTUSB-32
|
Traps
Traps are sent by an SNMP agent in response to certain predefined events. Traps are sent over UDP port 162. The MIB variable SnmpOutEnableAuthTraps, in the SNMP group must be enabled via the remote SNMP Manager for traps to be sent. Also, the manager to send traps must be set up by xn_snmp_config.
Defined Traps:
- Cold Start. This trap is generated when the network has been re-initialized and the agent's configuration information has been changed. This trap is generated when xn_snmp_config is called.
- Warm Start. The network has been re-initialized and the agent's configuration information has not been changed. RTIP-32 does not support Warm Start, therefore, this trap is never generated.
- Link Down. An interface has failed. This is not generated by RTIP-32 but could be generated by an application when it detects the interface has failed.
- Link Up. An interface has come up. This trap is generated when xn_interface_open or xn_attach has been successfully called.
- Authentication Failure. An SNMP message was received with an incorrect community field. This trap is generated by RTIP-32 when the error has been detected.
- Enterprise Specific. RTIP-32 does not generate this trap. If an application wants to add a specific trap, it generates this trap by calling xn_snmp_send_trap (see below).
Traps are generated by calling the function xn_snmp_send_trap. An application can generate its own defined traps by calling xn_snmp_send_trap with sp_trap_no set to 6 (TRAP_ENTERPRISE) and gn_trap_no defining which trap is being generated. The function xn_snmp_add_binding can be called to create a binding list for xn_snmp_send_trap.
SNMP Agent
SNMPv2
|