Traps & Subagents
Mike Carr
everythingsfree____hotmail.com
Thu May 23 12:10:36 CEST 2002
Frank,
I assume you're referring to a switch in agentgen (standard edition) but
can't see anything and I've got the latest version. These are the options:
AgentGen Standard v1.5 Copyright (C) Frank Fock, All rights reserved
Not for use in a commercial environment
Usage: AgentGenConsole <repository> <command> [<par_1>..]
i[init] - Initialize the repository (clear all
contents).
a[dd] <file> - Add a MIB file to the repository.
l[oad] <list> - Load a list of MIB files into the
repository.
File <list> is a newline separated list of
file
names. Comment lines start with #.
r[emove] <MIB> - remove a MIB from the repository
c[ontents] - Show contents of the MIB repository.
m[odule] <MIB> - Dump the SMI definition of the given MIB
module.
g[enerate] <MIB> <h|c> [mode] - Generate C++ code for a MIB module, where
'h'
generates the header and 'c' generates the
cpp
file.
<mode> is any comma (no spaces!) separated
list of: 'SIM', '<ver>.<rel>', and
'OBJECTS=<regex>'.
>From: Frank.Fock____t-online.de
>To: Mike Carr <everythingsfree____hotmail.com>
>CC: agentpp-dl at agentpp.com
>Subject: Re: Traps & Subagents
>Date: Wed, 22 May 2002 00:33:16 +0200 (CEST)
>
>Mike,
>
>I thought I have already answered this. Mmmh, may be not...
>For AgentX++ subagents, you should use the AgentX++ subagent
>switch. Then the correct notification objects will be
>generated.
>
>Best regards,
>Frank
>
>Mike Carr schrieb:
> > Frank, Jochen, anyone? I'm just after some comments on
> > this...
> >
> >
> > >From: "Mike Carr" <everythingsfree____hotmail.com>
> > >To: agentpp-dl____fock.de
> > >Subject: Traps & Subagents
> > >Date: Mon, 13 May 2002 13:08:15 +0100
> > >
> > >After looking at the various examples there appears to
> > be a couple of ways
> > >to send traps:
> > >
> > >- via the NotificationOriginator classes 'generate'
> > funciton (which is what
> > >all of the non-agentx examples do), and,
> > >
> > >- via the SubAgentXMib classes 'notfiy' funciton (which
> > is what the agentx
> > >example does).
> > >
> > >In the subagent example it has a section of code that
> > has been commented
> > >out
> > >and says "do not use NotificationOriginator in a
> > subagent".
> > >
> > >However, using AgentGen (standard edition) this
> > generates classes based on
> > >NotificationOriginator for traps in the subagents MIB.
> > >
> > >Am I correct in assuming then that the classes generated
> > here should not be
> > >used in subagents?
> > >
> > >If I am correct then it's a shame since there's code
> > that checks the vbs
> > >that are sent out by the 'generate' function.
> > >
> > >If I'm wrong how are they used? Or basically what is
> > the method of sending
> > >traps from subagents?
> > >
> > >Thanks,
> > >Mike
> > >
> > >
> > >_______________________________________________________
> > __________
> > >Send and receive Hotmail on your mobile device:
> > http://mobile.msn.com
> > >
> >
> >
> > ________________________________________________________
> > _________
> > Send and receive Hotmail on your mobile device:
> > http://mobile.msn.com
> >
> >
> >
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.
More information about the AGENTPP
mailing list