Snmp manager in java

Hello wise and helpful people!
I'm writting to get some very very important information for me.
Please read this post and answer as clearly as you can. I count on yours' kindness and understanding...
I have to write a java project for my studies.
It has to be a network devices' manager as an applet in java.
I can use some java Api to this task, so I searched java api in google.
Unfortunately my knowlegde about snmp and java is very weak, and I would like to ask you for help and answer some of my questions.
For example, I found AdventNet SNMP API 4, which seemd to be very suitable for me. Unfortunately, I read: "Due to the Java security restrictions, applets cannot directly communicate with SNMP agents. To overcome this, the SAS server can be used as a gateway between the applet (SAS client) and the agent." somewhere on this site " (http://snmp.adventnet.com/help/snmpapi/snmpv3/api_overview/sasapiarch.html)
What's the problem SAS server is only in the not-free package of advanet and so I can't afford it.
Do I understand well: Java applets cannot communicate via UDP with network devices, and there is no possibility to do so. It is necessary to have some server which translates TCP java commands into UDP SNMP commands?
Do You know some suitable and FREE sollution for my project?
It there any possibility to have java library, which would directly communicate with eg. router? Or do I have to have some serwer which will be some kind of "mediator" between java applet and network device? If yes, do you know some pair of library-serwer which is free?
I was searching on this forum with no positive effects for me, so I wrote this post.
Sorry for my English ;)
Please explain me this... I need you help!
Thanks,
David

if the applet is signed, it can do what you want. You may want to look at JMX. http://java.sun.com/products/JavaManagement/

Similar Messages

  • Writing SNMP Manager using SNMP4J

    Hello,
    I am writing a SNMP Manager that is supposed to do the following:
    (1) Send snmp commands to snmp-agents, and handle thier response.
    (2) receive snmp traps from snmp-agents.
    I am using SNMP4J software package for writing the snmp manager.
    I would like to use a SINGLE Snmp object (SNMP4J object) , both
    for sending a snmp command and for receiving snmp traps.
    SO far, I have written two separate programs:
    *** Program 1:
    ** The first program only listens for Snmp trap-PDUs.
    ** Its main code is as follows:
         // configure Snmp object
         UdpAddress address = new UdpAddress("127.0.0.1/1990");
         TransportMapping transport = new DefaultUdpTransportMapping(address);
         Snmp snmp = new Snmp(transport);
         transport.listen();
         // handle received traps here
         CommandResponder trapPrinter = new CommandResponder() {
              public synchronized void processPdu(CommandResponderEvent e) {
                   PDU command = e.getPdu();
                   if (command != null) {
                        System.out.println(command.toString());
         snmp.addCommandResponder(trapPrinter);
    *** Program 2:
    ** The second program sends GET PDUs, and its main code is as follows:
         // configure Snmp object
         UdpAddress targetAddress = new UdpAddress("127.0.0.1/1985");
         CommunityTarget target = new CommunityTarget();
         target.setCommunity(new OctetString("public"));
         target.setAddress(targetAddress);
         target.setRetries(2);
         target.setTimeout(10000); // was 1000 !!!
         target.setVersion(SnmpConstants.version1);
         Snmp snmp = new Snmp(new DefaultUdpTransportMapping());
         snmp.listen();
         // prepare the PDU for sending
         PDU command = new PDU();
         command.setType(PDU.GET);
         command.add(new VariableBinding(new OID("1.3.6.1.4.1.1331.11.5.1.0")));
         // now send the PDU
         ResponseEvent responseEvent = snmp.send(pdu, target);
         if (responseEvent != null)
              // response has arrived. handle it
         else
              System.out.println("null response received...");
    I would like to unite these two programs into one, however, I cannot seem to
    properly allocate one Snmp object to handle both the sending and receiving of PDUs.
    I run two threads: thread-1 that does the listening for snmp traps,
    and thread-2 which in charge of sending get/set PDUs.
    I allocate the Snmp object in one place as follows:
         TransportMapping transport = new DefaultUdpTransportMapping(new UdpAddress("127.0.0.1/1990"));
         Snmp snmp = new Snmp(transport);
         snmp.listen();
    and I transfer it to both threads to be used there.
    However, thread-2 sometimes fails to send PDUs using snmp.send(...);
    What am I doing wrong?
    Can anyone guide me as for how I should allocate the Snmp object so
    it is good for both sending PDUs, and for receving traps?
    Thanks,
    Nefi

    Hello,
    I am writing a SNMP Manager that is supposed to do the following:
    (1) Send snmp commands to snmp-agents, and handle thier response.
    (2) receive snmp traps from snmp-agents.
    I am using SNMP4J software package for writing the snmp manager.
    I would like to use a SINGLE Snmp object (SNMP4J object) , both
    for sending a snmp command and for receiving snmp traps.
    SO far, I have written two separate programs:
    *** Program 1:
    ** The first program only listens for Snmp trap-PDUs.
    ** Its main code is as follows:
         // configure Snmp object
         UdpAddress address = new UdpAddress("127.0.0.1/1990");
         TransportMapping transport = new DefaultUdpTransportMapping(address);
         Snmp snmp = new Snmp(transport);
         transport.listen();
         // handle received traps here
         CommandResponder trapPrinter = new CommandResponder() {
              public synchronized void processPdu(CommandResponderEvent e) {
                   PDU command = e.getPdu();
                   if (command != null) {
                        System.out.println(command.toString());
         snmp.addCommandResponder(trapPrinter);
    *** Program 2:
    ** The second program sends GET PDUs, and its main code is as follows:
         // configure Snmp object
         UdpAddress targetAddress = new UdpAddress("127.0.0.1/1985");
         CommunityTarget target = new CommunityTarget();
         target.setCommunity(new OctetString("public"));
         target.setAddress(targetAddress);
         target.setRetries(2);
         target.setTimeout(10000); // was 1000 !!!
         target.setVersion(SnmpConstants.version1);
         Snmp snmp = new Snmp(new DefaultUdpTransportMapping());
         snmp.listen();
         // prepare the PDU for sending
         PDU command = new PDU();
         command.setType(PDU.GET);
         command.add(new VariableBinding(new OID("1.3.6.1.4.1.1331.11.5.1.0")));
         // now send the PDU
         ResponseEvent responseEvent = snmp.send(pdu, target);
         if (responseEvent != null)
              // response has arrived. handle it
         else
              System.out.println("null response received...");
    I would like to unite these two programs into one, however, I cannot seem to
    properly allocate one Snmp object to handle both the sending and receiving of PDUs.
    I run two threads: thread-1 that does the listening for snmp traps,
    and thread-2 which in charge of sending get/set PDUs.
    I allocate the Snmp object in one place as follows:
         TransportMapping transport = new DefaultUdpTransportMapping(new UdpAddress("127.0.0.1/1990"));
         Snmp snmp = new Snmp(transport);
         snmp.listen();
    and I transfer it to both threads to be used there.
    However, thread-2 sometimes fails to send PDUs using snmp.send(...);
    What am I doing wrong?
    Can anyone guide me as for how I should allocate the Snmp object so
    it is good for both sending PDUs, and for receving traps?
    Thanks,
    Nefi

  • Enterprise Manager 10g Java Console

    Hi ,
    I want to use EM 10g in order to set up the replication environment.
    In the Administration tab of the EM 10g there is a TIP at the bottom of the tab page ....
    TIP Use the Enterprise Manager 10g Java Console to manage Advanced Replication and Workspace.
    Which is the Enterprise Manager 10g Java Console and how can i call it.....??????
    NOTE: The database 10g v.2 is installed in Windows XP os.
    Thanks ,a lot
    Simon

    The EM 10g Java Console can be installed from the Oracle 10g Client CD and it is used the same way the 9i OEM. The difference is that EM 10g Java Console is only used in Stand-alone and does not include connection to a Management Server.
    It has limited functionality. There are a lot of features not available in it and is only available as a backup to some functionalities not yet in Grid Control and DB Control. (e.g, There is no Replication in 10.1 Grid Control, but it is in 10.1 Java Console). It will be phased out in future Releases (no idea which release yet).

  • Where to find Enterprise Manager 10g Java Console software on OTN?

    Hi All, Please let me know where to find Enterprise Manager 10g Java Console software on OTN? Appreciate your help!
    Thanks!

    "The Java Console program is on the Oracle 10G Client software CD. When you are prompted to choose the type of installation, select the Administrator option and the Java Console will be installed with the rest of the software. After the installation is complete, navigate to the Oracle home's bin directory where you installed the Oracle Client and type in:
    oemapp console
    "

  • Memory management in Java

    HI all,
    I want to know what is memory management in JAVA means ?Is it related to memory management of java VM.?

    Sorry for posting in wrong area. also sorry for cross posting . i close this discussion as i have posted a new topic. so dont reply plz.

  • Memory Management in Java With Garbage Collector

    i have so many doubts With Management in Java.
    Please send me the Link
                 Thanqqqqqqq
                         Guru

    Hi Guru,
    The following link might be helpful to you:
    http://java.sun.com/docs/hotspot/gc/
    Regards,
    Anuradha.B

  • Enterprise Manager 10g Java Console  for Windows

    Dear all,
    I have download Complete Files of Oracle10.1.0.2 for Microsoft Windows (32-bit). After installation, When I opened Web-based Oracle Enterprise Manager 10g; I see the following tip on the Administration page
    TIP Use the Enterprise Manager 10g Java Console to manage Streams, Advanced Replication, Advanced Queues, XML Database, Spatial and Workspace.
    But I am still looking from where it can be launched. Have any professional experienced the Enterprise Manager 10g Java Console on MS Windows platform?
    Regds,
    Faran

    It is not installed by default, you have to mark its
    checkbox explicitly. In the package selection tree, it is
    under Oracle Client 10.1.0.2.0.
    It's only a Beta! But it's much more stable and a little
    bit faster than 9iR2. They probably didn't check it for
    default installation as it's just a beta.
    There's one another interesting issue with Enterprise
    Managers (Java and web) in 10g: each of them recommends
    you in the welcome page to use the other one. What was
    first, the chicken, or the egg???
    M.

  • SNMP management client

    We are looking for information on SNMP management client that integrates
    well with Forte. If anybody has done something with SNMP, I would like to
    find out what you are using and how difficult was the process.
    thanks in advance.
    ka
    Kamran Amin
    Framework, Inc.
    303 South Broadway
    Tarrytown, NY 10591
    (914) 631-8953x121
    kamran.aminlendware.com
    http://www.lendware.com/

    Issue resolved.
    If anyone has this problem again, the solution is in two parts:
    (1) SNMPAgents do not respond to incorrectly configured requests so disable the security to permit testing. For the SNMPAgent all useful setting seem to reside in the SimpleAgent.xml file, so find the SNMP "version" and set it to "1". So far I haven't been able to find any documentation for this component.
    File: C:\JavaCAPS51\emanager\server\monitor\snmpagent\config\SnmpAgent.xml
    <properties
    version="3" -- Change to 1, available options (1|2|3)
    />
    All polling requests should work now.
    (2) The "AdventNet SNMP Adaptor 5 MibBrowser" doesn&#8217;t appear to support SNMP v3 security fully, or in a way compatible with the SNMPAgent implementation. The "iReasoning MIB Browser" (Professional Edition only with v3 support) works fine. Judging by the log files the CAPS SNMPAgent uses the iReasoning SNMP API.

  • SNMP Manager on Mac

    I see some threads on enabling SNMP agent on the Mac. However, that's not what I am after. What I want to know is if there is an SNMP Manager out there that will run on the Mac platform. There are plenty out there on Unix and Linux. However, are there any that will run on the Mac?
    I'm basically trying to do SNMP Management of other routers and switches from my MiniMac.
    TIA

    Sorry about the link, but here's some expensive ones it linked to...
    http://www.versiontracker.com/dyn/moreinfo/macosx/10204
    http://www.versiontracker.com/dyn/moreinfo/macosx/31414
    http://www.versiontracker.com/dyn/moreinfo/macosx/13036
    Cheaper...
    http://www.versiontracker.com/dyn/moreinfo/macosx/25095
    Free...
    http://www.versiontracker.com/dyn/moreinfo/macosx/11377
    Not sure if any are what you need/want.

  • SNMP Manager/Monitoring

    Hi,
    what do I have to do to use SNMP for Weblogic? Do I need an extra SNMP
    Manager? Which ones would you recommend? What must be the abilities of the
    manager to use it for WebLogic? Must it be able to monitor the weblogic SNMP
    objects? Or can I monitor all the information with my administration server?
    Or can we use both ways? What would be the better one? If I need an extra
    monitor? Which products are useful to monitor WebLogic?
    Thanks,
    Marita

    Anything to do with email receiving from Network Devices is todo with SMTP forwarding.
    Google / Look for SMTP configuration on MDS and hopefully there is alot on Cisco's site.
    One link I found is : http://www.cisco.com/en/US/docs/switches/datacenter/mds9000/sw/4_1/configuration/guides/cli_4_1/call.html#wp1402579
    Regards
    Yasser

  • SNMP Manager

    Hi all,
    Which good (famous) SNMP manager (free and shareware) use to manage not only Cisco devices, but also other vendors?
    Thanks

    I would add:
    Nagios (fault mgmt)
    RANCID (configuration mgmt)
    Cacti (performance mgmt)
    PRTG (performance mgmt - paid version also available)
    All are multivendor but require some more skills from the user to get the product setup and running. Remember - open source is free to acquire, but not free to operate and maintain.

  • Add-ons Manager Says Java Needs Update, But Latest Version Already Installed

    I have Java version SE7 U51 10.51.2.13 installed and working fine. Today I "upgraded" to FF 28.0. Now the Add-Ons Manager says Java is out-of-date, but when I go to the Java website, this is the very latest version available. I downloaded both the 32- and 64-bit versions anyway (though I had already installed them a month ago) and re-installed both. The FF Add-Ons Manager still has same warning: "Vulnerable- Update Now!" The Java Test page says I have the latest version, and it works.
    So what the heck to do?

    Never mind- found the answer. It's the same old silly runaround between Firefox and Oracle. The Firefox link send you to the wrong Java version (outdated) and you have to find the correct Oracle webpage that now has Java version 8 (actually v.1.8.0 plug in 11.0.2.132) and download and install THAT. It would be nice if this were simpler...

  • Weblogic 7.0 and SNMP Management

    Does anybody know of an SNMP manager that supports Weblogic 7.0?
    All of them that I've found so far seem to support only
    Weblogic 6.1
    Thanks!

    Wily Introscope will report WLS 7.0 metrics via its own SNMP MIB/Agent (it grabs
    the WLS 7.0 metrics from JMX, then reports them from its own MIB).
    We've done succesful integrations with BMC, HP OpenView, SiteScope, and more...
    http://www.wilytech.com
    Dave
    "Raj" <[email protected]> wrote:
    >
    Does anybody know of an SNMP manager that supports Weblogic 7.0?
    All of them that I've found so far seem to support only
    Weblogic 6.1
    Thanks!

  • SNMP Managed Object to Get/Set Current Transmit-Key of Aironet 1100 (WEP)

    Hi,
    I'd like to know what is snmp managed object to get/set default or current transmit-key of 4 WEP (encryption) keys...
    Even though I took a good look at every snmp mibs related to cisco aironet 1100, I could not find it...
    Please help me...
    Thanks,
    Bumjong

    See if the following helps:
    .1.3.6.1.4.1.522.3.6.1.3.1.3
    awcDot11WEPDefaultKeyValue OBJECT-TYPE
    -- FROM AWCVX-MIB
    -- TEXTUAL CONVENTION WEPKeytype128
    SYNTAX OCTET STRING (5..13)
    MAX-ACCESS read-write
    STATUS Current
    DESCRIPTION "A WEP default secret key value. The value is
    write-only (attempt to read will result in
    return of a zero-length string)."

  • To open "device manager" install Java SE 6 runtime error message on bouts

    Why does To open "device manager" install Java SE 6 runtime appear every time I boot up computer after installing upgrade to Yosemite 10.10 OS

    You must have some application called "device manager" which is set to run at startup. Do you know what it is?
    Go to System Preferences->Users and Groups, then select the "Login Items" tab and see what's there. Remove anything you don't recognize.
    If it's an application you know, and you want to run, then you're going to have to install Java on your machine. Honestly, I'd recommend against it; the application must be quite old.

Maybe you are looking for

  • Adobe Reader 10.1.2 and IE9 Issues

    For about a year I have been seeing people post about IE9 and unable to open Adobe PDF files from various locations on the Internet.  Adobe you must fix this problem as it has troubled many individuals over the past year or so.  This is not a browser

  • Class Cast Exception in JSP of the component

    Hi,   I am trying to call a web service from the JSP of the component.I have written the java code as a scriplets in the JSP. The problem i am facing is Class Cast Exception. The code is as follows String strKey = "wsclients/proxies/sap.com/CCMSConte

  • Scheduling API

    Hi All, I have requirement to call scheduling through API's.can someone give me the exact API for scheduling like process order for 'Booking Order'. Thanks in Advance, Sanjeev varma.S

  • Ugh. what to do? help!

    i updated to the new ios4 and now all my apps either crash or freeze. the phone is super sluggish. can i just go back to ios3 or is there a way to fix this? i just got my phone may 19 and it is brand new! i dont have to have the few changes offered i

  • Hyper-V Failover Cluster Node Corruption

    Dear All,             Some of my nodes are showing abnormal behavior.  They are restarting every now and then.  I had updated the cluster nodes, but all updates were OS specific, there was nothing specific with respect to hardware update. I have anal