- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- API to receive SNMP traps
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-21-2005 06:25 PM
тАО11-21-2005 06:25 PM
API to receive SNMP traps
Now I want to write a program (in C) to receive traps and interpret them with a MIB. I can not find any supporting routines for that. Has anyone experience with this kind of program (do not want to use TCPIP$SNMP_TRAPRCV.EXE).
Thanks in advance,
Hans
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-22-2005 01:20 AM
тАО11-22-2005 01:20 AM
Re: API to receive SNMP traps
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-22-2005 05:31 AM
тАО11-22-2005 05:31 AM
Re: API to receive SNMP traps
Why don't want to use TCPIP$SNMP_TRAPRCV service?
Anyway try this alternate
1. esnmp_init (int *socket, char *subagent_identifier )
Initializes the Extensible SNMP (eSNMP) subagent and initiates communication with the master agent.
2. esnmp_register ( subtree *subtree,
int timeout, int priority )
Requests local registration of a single MIB subtree. This indicates to the master agent that the subagent instantiates MIB variables within the registered MIB subtree.
3. esnmp_capabilities ( OID *agent_cap_id,
char *agent_cap_descr )
Adds a subagent's capabilities to the master agent's sysORTable . The sysORTable is a conceptual table that contains an agent's object resources, and is described in RFC 1907.
4. esnmp_are_you_there ( )
Requests the master agent to report immediately that it is up and functioning.
5. int esnmp_poll ( )
Processes a pending message that was sent by the master agent. it should be called after the select() call has indicated data is ready on the eSNMP socket. (This socket was returned from the call to the esnmp_init routine.)
6. esnmp_trap ( int *generic_trap,
int specific_trap,
char *enterprise,
varbind *vb )
Sends a trap message to the master agent.
Archunan
Archie
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-27-2005 07:39 PM
тАО11-27-2005 07:39 PM
Re: API to receive SNMP traps
The interface you describe was already found by me. But this interface is not able to "catch" traps. It wil handle SNMP get and set and it is able to send a trap. The receiving and decomposing a trap is not available.
I found a solution in an own program that reads UDP messages (conform example tcpip$examples:TCPIP$UDP_SERVER_SOCK.C) and write a routine that decomposes the received messages acording the Basic Encoding Rules. It was not that hard, but I expected an API.
Hans
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-28-2005 01:29 AM
тАО11-28-2005 01:29 AM