Help: Agent++ in config mode? - SNMP

This is a discussion on Help: Agent++ in config mode? - SNMP ; I downloaded agent++ and created a very simple agent. Suppose I want to simulate a device with a few interfaces, each of them may have atm layer. How could I set up the agent in a particular way? The example ...

+ Reply to Thread
Results 1 to 2 of 2

Thread: Help: Agent++ in config mode?

  1. Help: Agent++ in config mode?

    I downloaded agent++ and created a very simple agent. Suppose I want
    to simulate a device with a few interfaces, each of them may have atm
    layer. How could I set up the agent in a particular way? The example
    didn't show how to do it.

    suppose the program does something like:

    mib.add(new if_mib());
    mib.add(new atm_mib());
    ....

    how can I set ifNumber = 5 or any other number, and then setup each
    interface?

    In one message, Frank talked about putting agent in the config mode,
    but didn't explain it. Could any one give me a clue?

    Thanks.
    Juping

  2. Re: Help: Agent++ in config mode?

    Juping,

    With AGENT++ you can easily create simulation agents that can
    be used for testing your management software while your (real)
    agent is under development or as a demonstration agent for
    presentations.

    A simulation agent can be automatically generated by AgenPro
    or coded manually by using the class SimMibLeaf wherever you
    would have used MibLeaf.

    In addition, a simulation agent then needs the
    AGENTPP-SIMULATION-MIB and a simulation version of
    the system group, to be fully functional. These MIB implementations
    are already included in the template for AgenPro in the
    agent++/agentgen/simagent/src/agent.cpp file.

    The AGENTPP-SIMULATION-MIB (see also
    http://www.agentpp.com/AGENTPP-SIMULATION-MIB.txt)
    contains the agentppSimMode OBJECT-TYPE. A simulation agent
    that implements this object, can be set into config mode (config(2))
    so that one can set any object instance of the agent regardless, whether
    its MIB definition has a MAX-ACCESS of read-only. This "trick"
    allows to configure the whole agent using standard SNMP operations.
    Rows of read-only tables (typically those without RowStatus) can be
    simply created by setting any of their columnar objects. Rows can be
    deleted by using some other objects of the
    AGENTPP-SIMULATION-MIB.

    By setting the agentppSimMode to oper(1), the simulation agent
    will behave as any real agent. Thus, it will report an error, if one
    tries to set a read-only value.

    Hope this explanation helps you setting up a simulation agent
    with AGENT++.

    Regards,
    Frank Fock

    Juping Jin wrote:

    >I downloaded agent++ and created a very simple agent. Suppose I want
    >to simulate a device with a few interfaces, each of them may have atm
    >layer. How could I set up the agent in a particular way? The example
    >didn't show how to do it.
    >
    >suppose the program does something like:
    >
    >mib.add(new if_mib());
    >mib.add(new atm_mib());
    >...
    >
    >how can I set ifNumber = 5 or any other number, and then setup each
    >interface?
    >
    >In one message, Frank talked about putting agent in the config mode,
    >but didn't explain it. Could any one give me a clue?
    >
    >Thanks.
    >Juping
    >
    >



+ Reply to Thread