Operating System - OpenVMS
Showing results for 
Search instead for 
Did you mean: 

where can i find the java snmp package ?

Regular Advisor

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?


* $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 {

SnmpTrapSender sa = SnmpTrapSender.getInstance();
// new SnmpTrapSender("", 162);

sa.sendTrap(SnmpConstants.SNMP_TRAP_DBCONNECTION_DOWN, "DB Down Test");


} catch (Exception e) {


Regular Advisor

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
Honored Contributor

Re: where can i find the java snmp package ?


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.

Regular Advisor

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.