- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Re: sending snmp traps in openVMS
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
тАО03-20-2009 07:47 PM
тАО03-20-2009 07:47 PM
sending snmp traps in openVMS
I can send snmp traps from a dcl command job as follows , my question is can anyone guide me to do the same from DEC C ?
"
snmp_trapsnd 1.3.6.1.6.3.1.1.4.1.0 local 0 0 0 "-v2c" -h 10.100.10.112 -D "TEST MESSAGE FROM node1 USING TCP SNMP TRAP"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-21-2009 05:19 AM
тАО03-21-2009 05:19 AM
Re: sending snmp traps in openVMS
Find some source code for snmp_traps[e]nd,
and steal it?
(Read the RFC, and write your own?)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-21-2009 07:27 AM
тАО03-21-2009 07:27 AM
Re: sending snmp traps in openVMS
http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1247180
including at
http://sourceforge.net/projects/net-snmp/
Also:
http://64.223.189.234/node/1117
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-23-2009 05:57 AM
тАО03-23-2009 05:57 AM
Re: sending snmp traps in openVMS
in your earlier reponse to this topic you had mentioned 'or you could haul over netsnmp or one of the perl modules' ... how can I use perl module to send the snmp trap ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-23-2009 08:18 AM
тАО03-23-2009 08:18 AM
Re: sending snmp traps in openVMS
'or you could haul over netsnmp or one of the perl modules' ... how can I use perl module to send the snmp trap ?
<<<
There's Net::SNMP ,see e.g.
http://search.cpan.org/~dtown/Net-SNMP-5.2.0/lib/Net/SNMP.pm#trap()_-_send_a_SNMP_trap_to_the_remote_manager
HTH,
Martin
Disclaimer: I haven't tried it, but the requirements make it look doable.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-23-2009 10:13 AM
тАО03-23-2009 10:13 AM
Re: sending snmp traps in openVMS
this url is not working :(
can you please check ? also is NET:SNMP is a third party product ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-23-2009 10:46 AM
тАО03-23-2009 10:46 AM
Re: sending snmp traps in openVMS
the URL worked when I clicked it. If it doesn't work for you, go to http://search.cpan.org/ and enter Net::SNMP (that's TWO colons) in the search box.
Net::SNMP is a Perl module that needs a few other prerequisite modules to be installed, but it does not (AFAICT) rely on other libraries like net-snmp.
cu,
Martin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-23-2009 01:56 PM
тАО03-23-2009 01:56 PM
Re: sending snmp traps in openVMS
ok the url is working now for me ,below is the function to send trap but I dont see anywhere how to specify the msg you want to send as trap ? this is the dcl command I use to send trap msg :
snmp_trapsnd 1.3.6.1.6.3.1.1.4.1.0 local 0 0 0 "-v2c" -h 10.100.10.112 -D "TEST MESSAGE"
how can I send the above test msg to the server using the function below ?
$result = $session->trap(
[-delay => $seconds,] # non-blocking
[-enterprise => $oid,]
[-agentaddr => $ipaddress,]
[-generictrap => $generic,]
[-specifictrap => $specific,]
[-timestamp => $timeticks,]
-varbindlist => \@oid_value,
);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-23-2009 02:01 PM
тАО03-23-2009 02:01 PM
Re: sending snmp traps in openVMS
snmp_trapsnd + system() "from DEC C"?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-23-2009 02:08 PM
тАО03-23-2009 02:08 PM
Re: sending snmp traps in openVMS
I dont know of a way to send snmp trap from dECC .. thats why i started this thread. are you saying its possible ? tell me how