Jdmk _ snmp agent acl

Hi,
I'm using jdmk snmp adaptor to develop an snmp agent. I've a problem in setting the agent accessControl List. In particular I've this accessListFile (jdmk.acl):
acl = {
communities = public
access = read-only
managers = <myIpAddress> }
and in my Agent, I set acl as follow:
SnmpAdaptorServer snmpAdaptor = null;
JdmkAcl theAcl = (JdmkAcl)(snmpAdaptor.getInetAddressAcl());
theAcl.setAuthorizedListFile("myAclPath"+jdmk.acl");
theAcl.rereadTheFile();
No Exception has been raised, but I can access my agent via snmp from various address and with a community different from "public". So It's seems that my acl file doesn't work properly
thank in advance
l

Hi,
You should use a constructor that takes an InetAddressAcl instead:
SnmpAdaptorServer(InetAddressAcl acl, int port);
Simply create the acl in this way:
String aclFileName = .... ;
InetAddressAcl acl = new JdmkAcl("myACL", aclFileName);
int port = ... ;
SnmpAdaptorServer server = new SnmpAdaptorServer(acl,port);
I believe this should work. The point here is that the adaptor has a mode where if you
don't specify any ACL, and the default ACL file doesn't exists, then it will let anybody
connect. If however, you do specify an ACL, then only those hosts/communities specified
in the ACL will be authorized - and if the file doesn't exists, nobody will.
Note: you can also ask any question regarding Java DMK on project OpenDMK user's list:
https://opendmk.dev.java.net/servlets/ProjectMailingListList
Hope this helps,
-- daniel
http://blogs.sun.com/jmxetc

Similar Messages

  • How to use SNMP Agent

    Hi All,
    Can anybody tell me how to use SNMP Agent to monitor the Access and Identity Servers

    Hi Ramesh,
    I cannot comment on WebLogic & SNMP - this kind of questions would
    probably need to be asked on a WebLogic forum.
    If you're looking for an SNMP Manager API though, you may want to have a
    look at the Java Dynamic Management Kit (commercial product,
    free evaluation):
    http://java.sun.com/products/jdmk/index.jsp
    Hope this helps,
    -- daniel
    JMX, SNMP, Java, etc...
    http://blogs.sun.com/jmxetc
    null

  • SUN snmpdx SNMP Agent

    Hello *,
    In our project I want to use SUN (Solaris 9 and 10) SNMP Agent to send hardware failure traps.
    As I know, besides other things, I have to edit snmpdx.acl file using following example.
    snmpdx.acl:
    # trap parameters
    trap =
    trap-community = public
    hosts = atpcundx
    enterprise = "sun"
    trap-num = 0, 1, 2-5, 6-16
    Problem that I have is that I cannot find explanations for meaning for parameter "enterprise" and "trap-num".
    Does anyone have an idea where I can find descriptions what enterprise = "sun" or "snmp" or "3com" or "Solaris Volume Manager" means and what is the meaning of trap numbers integer values.
    I tried to test configuration as it is described in SUN documentation. I have strange results. Traps are not sent until in snmpd.conf "trap = <hostname>" is set.
    Entries from snmpd.acl file are ignored even in this case.
    Generally, does anyone knows how to configure this feature to work.
    Any help will be appreciated.
    Thanks in advance.
    Brgds
    SF

    Dear folks,
    Does the Sun JES server have a separate SNMP sun
    agent?Indeed:
    http://docs.sun.com/app/docs/doc/819-2650/6n4u4dtvq?q=snmp&a=view
    >
    I want to run the Solaris SNMP agent (snmpdx) as
    master agent with the Sun JES sub-agent. Is it
    possible?I don't know why not. Start by looking at the documentation.
    >
    Thanks in advance.
    T Dang

  • How to configure SNMP agent for Oracle 10g

    Hello,
    I've installed oracle 10g in a Windows 2000 SP4 and I want to monitor database using SNMP.
    I've already installed Windows SNMP agent but I haven't any idea how to configure Oracle in order to grant SNMP monitoring.
    What should I do?
    Is Oracle database ready to be monitored via SNMP by default?
    Thanks in advance for your help.
    Regards,
    Carles

    Hello,
    Thanks for your message.
    In fact, I already found this doc in oracle, but it just show executables I have to install and my question can I install these executables.
    I've already installed Windows SNMP agent, configured and testedwith disk space checkings, but it doesn't work fine with Oracle.
    I launched Oracle Universal Installer and I checked Installed Products, but I haven't found how to install SNMP agents for oracle.
    How can I add Oracle Peer Master Agent and Encapsulator to my oracle installation?
    Thanks again for your help.
    Regards,
    Carles

  • Weblogic SNMP Agent with WindowsNT SNMP Agent

    Can I setup Weblogic SNMP agent as a sub-agent to Windows NT SNMP agent (Microsoft's version)? According to documentation, sub-agents for Microsft's SNMP agent need to be implemented as 32-bit multithreaded DLLs using the Microsoft SNMP API. Does Weblogic have DLLs that we could use for this purpose?
    If that is not possible, is there a roadmap on how to provide the same support as the Microsoft's SNMP agent under Weblogic SNMP agent so that the Weblogic agent would provide the same visibility into the system that the Microsoft's agent does by default? Is this even possible?
    Thanks.

    "Sanjeev Mishra" <[email protected]> wrote:
    >
    Does anyone know how to make Microsoft's SNMP Master Agent run on a different port?
    I figured this out. It uses the 'snmp' setting from the services file. Just changing that works. Would have been more convenient if there was also a command line flag for that purpose.
    Thanks.
    "Sanjeev Chopra" <[email protected]> wrote:
    Sanjeev Mishra <[email protected]> wrote in message
    news:39fde7f2$[email protected]..
    Can I setup Weblogic SNMP agent as a sub-agent to Windows NT SNMP agent(Microsoft's version)? According to documentation, sub-agents for Microsft's
    SNMP agent need to be implemented as 32-bit multithreaded DLLs using the
    Microsoft SNMP API. Does Weblogic have DLLs that we could use for this
    purpose?
    No.
    However, you can have the WLS agent proxy for the NT agent. e.g. you can run
    the NT agent on a non-standard port and the WLS agent on 161 and then use
    '-otherAgents' option so that the WLS agent will forward any reqs for the NT
    agent MIB to that agent. In this setup the SNMP Manager can view that node
    as one SNMP entity which supports the WLS MIB + NT MIB
    See http://www.weblogic.com/docs51/admindocs/snmpagent.html#use_agent for
    details.
    If that is not possible, is there a roadmap on how to provide the samesupport as the Microsoft's SNMP agent under Weblogic SNMP agent so that the
    Weblogic agent would provide the same visibility into the system that the
    Microsoft's agent does by default? Is this even possible?
    Thanks.

  • Solaris 10 SNMP Agent

    Hi everybody,
    I need to find a how to manual about the setup of SNMP Agent (with MIBs) everything and then i want to integrade with an NMS tool.
    Thnx

    [http://docs.sun.com/app/docs/doc/817-3000/]

  • [Q] WLS SNMP Agent questions?

    Hello, all
    I am attaching the weblogic.properties, startWebLogic.cmd and
    startSNMPAgent.cmd
    I started the weblogic server 5.1 on port 7001.
    Then started the SNMP agent using the command
    "%JAVA% weblogic.SNMPAgent -password system -snmpPort 161 -serverURLs
    t3://210.182.160.120:7001 -community public -debugLevel 3 -trapDestinations
    210.182.160.111:162".
    210.182.160.120 : WebLogic Server 5.1
    210.182.160.111 : Trinity(NMS)
    Then I tried to access the "serverState" variable using the command
    "java snmpgetnext localhost .1.3.6.1.4.1.140.600.20.1.20"
    "java snmpgetwalk localhost .1.3.6.1.4.1.140.600.20"
    But i am getting the following error.
    Response PDU received from localhost/127.0.0.1, community: public
    Error in response. There is no such variable name in this MIB.
    Index: 1
    Errored Object ID: .1.3.6.1.4.1.140.600.40.1.10
    How can I solve this problem?
    Thanks in advance...
    Have the pretty day. ^^;
    [2.startSNMPAgent.JPG]
    [3.snmp_command.JPG]
    [4.SNMPAgentWhenSNMPGet.JPG]
    [1.startWeblogic.JPG]

    Please see below.
    Guillaume Compagnon wrote:
    >
    1- What version of SNMP does the WLS SNMP agent use ?
    ( IMO, it is the SNMPv2)Yes.
    >
    2-Is it possible to use the WLS SNMP Agent to register our own MBean ? ( is
    there a Factory , or an entry in JNDI ? )Not yet. We plan to do that sometime soon.
    >
    3- In the case, I develop my own JMX Agent, is this agent clusterable ? or
    should I have several JMX Agent running , with Dynamic MBeans( because we
    don't know on which machine in the cluster a MBean is ) ?You'll have to implement the clustering machinery yourself for your
    agent. Or, have a separate agent for each WLS instance.
    >
    Guillaume

  • SNMP Agent for Solaris

    We're looking for a direction regarding an SNMP agent for our Solaris Platforms. The standard agent bundled with Solaris seems to have many issues and CERT outstanding advisories. I'm wondering what others out there are running, Net-SNMP?, the ESD agent bundled with Sun Management Center?, others? I've looked at the ESD agent and it looks as though this would provide Temps, Fan Speeds, etc... for our servers but it seems as though it's lacking things like 1/5/15 minute load averages, CPU/Disk utilization etc...
    Any experiences are welcome!
    -Steve Eastham
    [email protected]

    hi,
    The same problem with me too. Im using Net-SNMP, but may be one cant trust its reliability and even if we use Net-SNMP loading of PERL scripts/modules is difficult in solaris.
    If you got /gathered any useful information please let me too know.
    regards
    Chenna

  • WLS SNMP Agent questions ?

    1- What version of SNMP does the WLS SNMP agent use ?
    ( IMO, it is the SNMPv2)
    2-Is it possible to use the WLS SNMP Agent to register our own MBean ? ( is
    there a Factory , or an entry in JNDI ? )
    3- In the case, I develop my own JMX Agent, is this agent clusterable ? or
    should I have several JMX Agent running , with Dynamic MBeans( because we
    don't know on which machine in the cluster a MBean is ) ?
    Guillaume

    Please see below.
    Guillaume Compagnon wrote:
    >
    1- What version of SNMP does the WLS SNMP agent use ?
    ( IMO, it is the SNMPv2)Yes.
    >
    2-Is it possible to use the WLS SNMP Agent to register our own MBean ? ( is
    there a Factory , or an entry in JNDI ? )Not yet. We plan to do that sometime soon.
    >
    3- In the case, I develop my own JMX Agent, is this agent clusterable ? or
    should I have several JMX Agent running , with Dynamic MBeans( because we
    don't know on which machine in the cluster a MBean is ) ?You'll have to implement the clustering machinery yourself for your
    agent. Or, have a separate agent for each WLS instance.
    >
    Guillaume

  • How do I restart the SNMP agents with the original command line options?

    I'm creating an application that changes the SNMP trap target configuration files and then restarts the SNMP agent. I'm currently working with the mibiisa agent. I want to make sure that I restart the service with the new trap targets but with the original command line options. How can I restart the mibiisa service with the same command line options that it originally loaded with?

    It is not "Network Time" that is the problem, but actually "SystemStarter." SystemStarter is an interim kludge to enable the work or the old StartupItems until they can be converted to LaunchDaemons or LaunchAgents controlled by launchd. Launcd calls SystemStarter to launch all the unconverted StartupItems. ntpd is now under the control of launchd directly.
    Launchctl is the command to load and unload the plist files, but I don't think it has a mechanism to restart a daemon.
    There are start and stop commands in launchctl, but the man page indicates that they are for debugging purposes.
    I also imagine you could just kill the ntp daemon and let it restart with new settings. It is most likely set to "keepAlive" so that it will automatically restart.

  • SNMP Agent in Oracle 11.2g

    Hello all
    I wanted to use SNMP agent in Oracle 11.2g, but I read that this agent is deprecated from the Oracle 11G. I also read in a thread that Oracle will continue the support till 2018. Which one is true??
    If I can't use SNMP agent what is your suggestion for its substitution?? Can I use Oracle Management Agent??
    My Os : Microsoft Server 2000
    Thatnk you alll

    Oracle recommends to stop using SNMP going forward. Though the extended support for SNMP will be valid until Jan 2018 (Refer Metalink 1341834.1) .
    The reason is not clearly given. They have mentioned that from oracle database 12 cloud control onwards , SNMP is completely removed. Probably that is the reason.
    It might be okay to use it, until your environment gets upgraded to oracle 12c.
    SNMP with Oracle 11g
    [url http://docs.oracle.com/cd/E11857_01/em.111/e14091/chap2.htm]Configuring SNMP for Oracle
    Regards
    Girish Sharma

  • Disable SNMP agent in Job Server

    SNMP agent was enabled in job server. Since it is enabled, we cannot access windows SNMP agent. Windows SNMP and DS SNMP is using the same ports 161.  We have an application which shows all the statistics of all the servers, but for DS server it not showing all the statistics.
    So we are planning to disable the SNMP agent in job server. Is there any implications if i disable the SNMP agent?
    DS Version 4.0

    It should not create any issues.

  • Does SNMP agent on the admin server polls managed objects automatically?

    Hi All,
    If I enable SNMP agent on the admin server, does it mean that it polls and caches MIB of all the managed servers in the domain and return it if a client requests for information or it polls and caches that MIB value only when requested?
    2)Suppose a client requests for SNMP data of a managed instance and the instance is down, does admin server keep polling or does it timeout after a number of secs or retries. I don't see any config params in weblogic 8.1.3 or weblogic 9.0 console.
    Thanks. I appreciate your answers.
    Thanks,

    Are you saying the notes are incorrect?
    No, I wasn't commenting on that at all. I was just saying that DBUA is the recommended way of upgrading databases... and that's in spades if you're talking about 100GB databases.
    I'll lay odds that DBUA to 10.2.0.1 and then patching to 10.2.0.3 is quicker than exporting and importing 100GB of data.
    (Applying a 10.2.0.3 patch is done with opatch and doesn't require a fresh installation of Oracle. A patch mostly just modifies the data dictionary: it's finished in minutes, not hours).
    My real point: these sorts of questions are incredibly easy to ask, answer, discard, re-ask, modify, mull over and basically experiment with in a virtual environment.
    And again: it's utterly bizarre why you wouldn't have physical access to this database (and keep in mind that I can't keep in mind little nuggets of information such as this one which you didn't see fit to share earlier!)
    It's in a virtual server. Virtual servers can be zipped up and emailed! (OK, maybe not 100GB... but I've shipped a small hard disk in a zip-lok pack envelope half way round the world before now -though obviously it wasn't critical to have the contents of that envelope available for use all the time... Still, it sounds to me like here's a technology (virtualisation) that's not being properly exploited).

  • WebLogic Server 9.1 and SNMP Agent enabled

    Hello everybody,
    I have enabled the WebLogic 9.1 SNMP agent but it isn't quite working right.
    The Sun Management Center software tells me that the WebLogic SNMP Agent (loaded with Halcyon PrimeAlert BEA WebLogic module) is not responding for any of the Application servers (there are only 2) however it does correctly work when the PrimeAlert BEA WebLogic module is configured for the Administrative Server and the entire WebLogic domain.
    The community strings that are working (domain & administrative server):
    public@mydomain
    public@myapplicationserver
    Those that don't work (application servers):
    public@myappserverone
    public@myappservertwo
    Oddly enough, originally when I configured these I changed the WebLogic SNMP Agent community prefix to 'mycommunity' and turned the WebLogic SNMP Agent debugging up to 3 but it didn't work. So I changed the community string back to the default 'public', leaving the debugging level at 3 (restarting WebLogic of course) and then it worked.
    ...so 3 days later I decided to turn the debug level back to the default of 1, leaving the community prefix as public and then restarted WebLogic: then the SNMP Agent for the application servers no longer worked again!!! So I changed it back to 3 and it still no longer worked!!! Help!!!
    Can any one help please?
    Edited by: user5598330 on Sep 30, 2008 1:35 PM

    The problem lies in the slow response time of WebLogic, especially on start up, combined with the 3rd party SNMP product which never queries again after the initial time out.
    Ain't the potability of Java great?

  • Error starting SNMP agent

     

    Pl. tell me can I download the evaluation version of snmp agent development kit
    of BEA , that kit can be used to develop the agent as per my
    private MIB.
    Pl. give also the URL to download it .
    thanks
    Subodh
    Anil Kommareddi <[email protected]> wrote:
    Solved my own problem.
    I had NT's SNMP agent service started on the server. I stopped it and
    was able to start
    WebLogic's SNMP agent.
    Anil Kommareddi wrote:
    Hi,
    I'm trying to start the SNMP agent on my local development box andam
    getting this exception. I cannot find any docs on this. Please help...
    My WLS is listening on port 9001.
    java weblogic.SNMPAgent -serverURLs t3://localhost:9001
    -trapDestinations localhost:162
    Exception in thread "main"
    com.adventnet.snmp.snmp2.agent.AgentRuntimeException:
    Failure in opening SnmpSession, errstat: 0, errvalue: 0
    at
    com.adventnet.snmp.snmp2.agent.SnmpAgent.addClientAndOpenSession(SnmpAgent.java:801)
    at
    com.adventnet.snmp.snmp2.agent.SnmpAgent.restartSnmpAgent(SnmpAgent.java:939)
    at
    com.adventnet.snmp.snmp2.agent.SnmpAgent.restartSnmpAgent(SnmpAgent.java:955)
    at
    com.adventnet.snmp.snmp2.agent.SnmpAgent.setPort(SnmpAgent.java:1034)
    at
    weblogic.management.snmp.agent.WebLogicAgent.init(WebLogicAgent.java:458)
    at
    weblogic.management.snmp.agent.WebLogicAgent.startup(WebLogicAgent.java:377)
    at weblogic.SNMPAgent.main(SNMPAgent.java:25)
    Thx,
    Anil Kommareddi
    InsWeb Corp.

Maybe you are looking for