- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- where can i find the java snmp package ?
Operating System - OpenVMS
1822193
Members
3949
Online
109640
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
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
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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
тАО04-14-2009 11:19 AM
тАО04-14-2009 11:19 AM
where can i find the java snmp package ?
Iam using the following code i found from web but I think iam missing the package "package com.sun.content.server.foundation.snmp; "
how can i check if this package is included in the current java142 that I have ? and if its not included where can i download it from?
thanks
/*
* $Id: SnmpTrapTest.java 1242 2007-06-20 22:51:21Z carlosh $
*
* The contents of this file are subject to the terms
* of the Common Development and Distribution License
* (the "License"). You may not use this file except
* in compliance with the License.
*
* You can obtain a copy of the license at
* https://opencds.dev.java.net/CDDLv1.0.html or
* opencds/trunk/LicenseReadme/CDDLv1.0.txt.
* See the License for the specific language governing
* permissions and limitations under the License.
*
* When distributing Covered Code, include this CDDL
* HEADER in each file and include the License file at
* opencds/trunk/LicenseReadme/CDDLv1.0.txt. If applicable,
* add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your
* own identifying information:
* Portions Copyright [yyyy] [name of copyright owner]
*
* Copyright 2006 Sun Microsystems, Inc. All Rights Reserved.
*/
package com.sun.content.server.foundation.snmp;
public class SnmpTrapTest {
/**
* For unit testing.
*
* @param args an array of command-line arguments
*/
public static void main(String[] args) {
try {
System.out.println("Starting...");
SnmpTrapSender sa = SnmpTrapSender.getInstance();
// new SnmpTrapSender("172.16.1.38", 162);
sa.sendTrap(SnmpConstants.SNMP_TRAP_DBCONNECTION_DOWN, "DB Down Test");
sa.close();
System.out.println("Done...");
} catch (Exception e) {
e.printStackTrace();
System.exit(0);
}
}
}
how can i check if this package is included in the current java142 that I have ? and if its not included where can i download it from?
thanks
/*
* $Id: SnmpTrapTest.java 1242 2007-06-20 22:51:21Z carlosh $
*
* The contents of this file are subject to the terms
* of the Common Development and Distribution License
* (the "License"). You may not use this file except
* in compliance with the License.
*
* You can obtain a copy of the license at
* https://opencds.dev.java.net/CDDLv1.0.html or
* opencds/trunk/LicenseReadme/CDDLv1.0.txt.
* See the License for the specific language governing
* permissions and limitations under the License.
*
* When distributing Covered Code, include this CDDL
* HEADER in each file and include the License file at
* opencds/trunk/LicenseReadme/CDDLv1.0.txt. If applicable,
* add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your
* own identifying information:
* Portions Copyright [yyyy] [name of copyright owner]
*
* Copyright 2006 Sun Microsystems, Inc. All Rights Reserved.
*/
package com.sun.content.server.foundation.snmp;
public class SnmpTrapTest {
/**
* For unit testing.
*
* @param args an array of command-line arguments
*/
public static void main(String[] args) {
try {
System.out.println("Starting...");
SnmpTrapSender sa = SnmpTrapSender.getInstance();
// new SnmpTrapSender("172.16.1.38", 162);
sa.sendTrap(SnmpConstants.SNMP_TRAP_DBCONNECTION_DOWN, "DB Down Test");
sa.close();
System.out.println("Done...");
} catch (Exception e) {
e.printStackTrace();
System.exit(0);
}
}
}
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-14-2009 11:31 AM
тАО04-14-2009 11:31 AM
Re: where can i find the java snmp package ?
I get the following error when i compile this java code :
SnmpTrapTest.java:39: cannot resolve symbol
symbol : class SnmpTrapSender
location: class com.sun.content.server.foundation.snmp.SnmpTrapTest
^
SnmpTrapTest.java:39: cannot resolve symbol
symbol : variable SnmpTrapSender
location: class com.sun.content.server.foundation.snmp.SnmpTrapTest
SnmpTrapTest.java:39: cannot resolve symbol
symbol : class SnmpTrapSender
location: class com.sun.content.server.foundation.snmp.SnmpTrapTest
^
SnmpTrapTest.java:39: cannot resolve symbol
symbol : variable SnmpTrapSender
location: class com.sun.content.server.foundation.snmp.SnmpTrapTest
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-14-2009 11:09 PM
тАО04-14-2009 11:09 PM
Re: where can i find the java snmp package ?
Sami,
what you have her is just a demo program for the com.sun.content.server.foundation.snmp package (which contains the SnmpTrapSender class that you're missing). As the comment in the program mentions, this seems to be part of the OpenCDS package, http://opencds.dev.java.net/ , which is a rather BIG thing. Even if the binary package works on VMS, the dependancy list of externals is huge: https://opencds.dev.java.net/source/browse/opencds/dependencies/external/readme.txt?view=markup
I don't think this'll work.
cu,
Martin
what you have her is just a demo program for the com.sun.content.server.foundation.snmp package (which contains the SnmpTrapSender class that you're missing). As the comment in the program mentions, this seems to be part of the OpenCDS package, http://opencds.dev.java.net/ , which is a rather BIG thing. Even if the binary package works on VMS, the dependancy list of externals is huge: https://opencds.dev.java.net/source/browse/opencds/dependencies/external/readme.txt?view=markup
I don't think this'll work.
cu,
Martin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-15-2009 06:55 AM
тАО04-15-2009 06:55 AM
Re: where can i find the java snmp package ?
Thanks Martin !
I hope someone has used the java snmp package in this forum and can give me some directions.
I hope someone has used the java snmp package in this forum and can give me some directions.
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Learn About
News and Events
Support
© Copyright 2025 Hewlett Packard Enterprise Development LP