Re: A question of net-snmp

2010-08-03 Thread AC.
Thank for your answer very much.

Now I have to change my environment from power pc to x86_64.
When I made the snmp server, I find that the execute file, snmpd, was not
made by the code.
And I can't find any information about snmpd for x86_64 by using Google.
XD
Do you know where the snmpd for x86_64 I can get it, or how to make it by
the code?
Please teach me!
Thanks.

PS, my net-snmp version is 5.4.

Bluce
2010/8/3 Dave Shield d.t.shi...@liverpool.ac.uk

 On 28 July 2010 13:57, AC. achuan...@gmail.com wrote:
  I made a table for getting mibs information.
  The first time to get information, the function,
 encTable_get_first_data_point,
  is called and get my external information.
  But the second time to get information, I just only get the old
 information
  that got from the first time.
  Why?

 Judging by the code you posted, the getQuantaTableInfo() routine
 is only called if the 'tlist' pointer is NULL - i.e. the first time that
 the 'get_first' hook is invoked.   Every subsequent time that this
 get_first routine is called, it will re-use the same tlist data.


  If I have to get my external information every time,
  Please tell me how to do that.

 If you do need to reload the external information *every* time,
 then remove the  if (tlist == NULL)  check from the get_first
 routine.
   But be aware that this will probably be VERY inefficient,
 since you'll be re-loading the complete table data for *every*
 incoming request.   Not for each 'snmpwalk' command, but for
 every 'GETNEXT' request - i.e. each individual object.

 You might find it sensible to use the cache helper to handle
 loading (and re-loading) the table data.  That way, you can
 control how long the cache is kept valid, and balance the
 overheads involved with the up-to-dateness of the data.

 Dave

--
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
of $1 Million in cash or HP Products. Visit us here for more details:
http://p.sf.net/sfu/dev2dev-palm___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: A question of net-snmp

2010-08-03 Thread Dave Shield
On 3 August 2010 05:18, AC. achuan...@gmail.com wrote:
 When I made the snmp server, I find that the execute file, snmpd,
 was not made by the code.

Have a look at the output of the compilation.
If the agent wasn't created, then there was probably
an error somewhere in the compilation process.

If you can find and fix that error, then you should be
able to create an agent binary.

 PS, my net-snmp version is 5.4.

It's probably worth grabbing a new version of the code.
Either the latest release on the 5.4.x line (5.4.3),
or the later 5.5 release.
  (Or possibly even have a look at the upcoming 5.6
release - currently available as 5.6.pre3).

All available from the project website.

Dave

--
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
of $1 Million in cash or HP Products. Visit us here for more details:
http://p.sf.net/sfu/dev2dev-palm
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: help me

2010-08-03 Thread Dave Shield
[ First - *please* don't mail me privately, without copying
 any responses to the mailing list.  I don't have the time
 or inclination to offer private, unpaid, SNMP consultancy.
 Keep discussions to the list, where others can both learn
 and offer advice.  Thanks.   ]


On 3 August 2010 06:58, Eman Saber eman_saber_...@yahoo.com wrote:
 i know it is not writable but how can i do that (change object value)

You can't.

That's what not-writable and read-only mean.
You cannot change the value.

Dave

--
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
of $1 Million in cash or HP Products. Visit us here for more details:
http://p.sf.net/sfu/dev2dev-palm
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: Newbie question

2010-08-03 Thread Dave Shield
On 2 August 2010 10:22, Guerrero, Simon (PTS horizontal PS projects)
s.guerr...@logica.com wrote:

 So basically, all I want to do is use the “snmptrap” tool to send an error
 message to that product.

 However, I’m confused by all these different MIBS, and what to use

If you need to send your own private error message, then (unless this
is reporting an event which is already covered) you probably need to
define a trap to represent this.  That means writing a MIB to define
the Notification object for the trap.

The clean way to do this would be to apply for your own enterprise
number from IANA, and then define your MIB within this subtree.
But if you don't want to bother weith this (and your traps will *only*
ever be used within your organisation), then there's an area of the
Net-SNMP OID subtree that you can use.

  See   NET-SNMP-MIB::netSnmpPlaypen
  (.1.3.6.1.4.1.8072..)

The only other advice I'd give is to follow the structure of the
Net-SNMP notifications:

  netSnmpNotificationPrefix   OBJECT IDENTIFIER ::= {netSnmp 4}
  netSnmpNotificationsOBJECT IDENTIFIER ::=
{netSnmpNotificationPrefix 0}

  nsNotifyStartNOTIFICATION-TYPE ... ::= { netSnmpNotifications 1 }
   etc

i.e. have an object with the subidentifier '0' as the parent of the
trap definitions
themselves.   That will help if you are likely to use SNMPv1.



  In fact, [the tutorials] don’t seem to even tell you where the MIB files are

That's because we don't know where the MIB files will be.
If you've installed from source, then they'll probably be in one place
(/usr/local/share/mibs), unless you've configured the software to put
them somewhere different.
   If you've installed a vendor-provided version, then they'll be
somewhere else.

  (I found them under /usr/share). :-/

That's probably a vendor-supplied installation then.
But not all vendors will put the MIBs there, and we have no control over this.
   Hence we cannot give a categorical location for these files.

There is some advice in the FAQ entry
Where should I put my MIB files?

(You *have* read the FAQ, haven't you?)

Dave

--
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
of $1 Million in cash or HP Products. Visit us here for more details:
http://p.sf.net/sfu/dev2dev-palm
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


net-snmp init_XXX() get data periodically( or cyclic ) problem

2010-08-03 Thread Alexander King
Hi Dave and All:
  
 Send trap problem was fixed,use a new routine.Thank you!
 snmp_alarm_register(5, /* seconds */
0,  /* repeat (every 10 seconds).here,the value is 0,can send 
the trap immediately! */  
send_uitJBODPowerATraps_trap,  /* our callback */
NULL/* no callback data needed */);
  
 

Another question,I use tools mib2c.iterate.conf mib2c.scalar.conf and 
mib2c.notify.conf get all my generate code,now the init_uit() got all the data 
rightly,but all the data was the time when they was got,not the newest,if I 
modified some of the device parameters,I couldnot got the update data,That's 
not the way I required it ,I want to the init_uit routine can get data 
periodically,so I can get the newest data.Would you give me some hits?
  
 Thank you,Dave!as usual.
  
 Alex--
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
of $1 Million in cash or HP Products. Visit us here for more details:
http://p.sf.net/sfu/dev2dev-palm___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: net-snmp init_XXX() get data periodically( or cyclic ) problem

2010-08-03 Thread Dave Shield
On 3 August 2010 09:04, Alexander King new...@foxmail.com wrote:
 I want to the init_uit routine can get data periodically

The init_xxx  routine is called *once* to set up the module,
when the agent first starts  That's what the word initialise means.
It will not be called repeatedly, and is not the right place to
handle (re-)loading data.

 Would you give me some hits?

Look at using the cache helper.

If you run 'mib2c -Scache=1  mib2c.iterate.conf   myTable'
then this should generate a suitable template.

I don't think the scalar mib2c template has a similar option,
but you can always apply the same techniques there.

As regards generating notifications, it would probably be
more sensible to either pass the relevant data into the
routine that generates the trap.   Or else have this routine
refresh the cached data itself.
   There's no point in re-loading the data just in case the
agent might possibly need to send a trap

Dave

--
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
of $1 Million in cash or HP Products. Visit us here for more details:
http://p.sf.net/sfu/dev2dev-palm
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Fw:Re: net-snmp init_XXX() get data periodically( or cyclic ) problem

2010-08-03 Thread Alexander King
-- Original --
  From:  Dave Shieldd.t.shi...@liverpool.ac.uk;
 Date:  Tue, Aug 3, 2010 04:42 PM
 To:  Alexander Kingnew...@foxmail.com; 
 Cc:  net-snmp-usersnet-snmp-users@lists.sourceforge.net; 
林永听lyongt...@casachina.com.cn; 
 Subject:  Re: net-snmp init_XXX() get data periodically( or cyclic ) problem

  
 On 3 August 2010 09:04, Alexander King new...@foxmail.com wrote:
 I want to the init_uit routine can get data periodically
The init_xxx  routine is called *once* to set up the module,
when the agent first starts  That's what the word initialise means.
It will not be called repeatedly, and is not the right place to
handle (re-)loading data.
 if so,How can I deal with this situation???I need more information ^_^
 
 Would you give me some hits?
Look at using the cache helper.
If you run 'mib2c -Scache=1  mib2c.iterate.conf   myTable'
  
 sys-man mibs # mib2c -Scache=1 mib2c.iterat.conf uit
no variable specified for -S flag. at /usr/local/bin/mib2c line 96.
sys-man mibs #

 I use net-snmp 5.4.2.1
  
 
then this should generate a suitable template.
I don't think the scalar mib2c template has a similar option,
but you can always apply the same techniques there.
As regards generating notifications, it would probably be
more sensible to either pass the relevant data into the
routine that generates the trap.   Or else have this routine
refresh the cached data itself.
  Yes,I have another routine to do this,and this routine get data is the 
  newest,can call the function sent trap immediately when the data changed.
 
There's no point in re-loading the data just in case the
agent might possibly need to send a trap
Dave--
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
of $1 Million in cash or HP Products. Visit us here for more details:
http://p.sf.net/sfu/dev2dev-palm___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


AW: Net-SNMP 5.5 on Windows Server 2008 with own subagent, cant set scalar

2010-08-03 Thread Julian Cebulla
 This is in excerpt of my code at the beginning (in C):

   [snip]

OK - that looks like the code for the main body of the subagent.
But you've got four routines that (presumably) initialise and register the MIB 
information that the subagent should report:

  init_mib_physicalInterfacesTable();
  init_mib_bChannelTable();
  init_mib_sessionTable();

  init_mib_scalar();

What do these init routines look like?

Here the code of init_mib_physicalInterfacesTable():


void initialize_table_physicalInterfacesTable(void)
{
int retval=999;

static oid physicalInterfacesTable_oid[] =
{ 1, 3, 6, 1, 4, 1, 17524, 2, 1, 2 };
size_t physicalInterfacesTable_oid_len =
OID_LENGTH(physicalInterfacesTable_oid);
//netsnmp_table_data_set *table_set;

/*
 * create the table structure itself
 */
physicalInterfacesTable_table_set =
netsnmp_create_table_data_set(physicalInterfacesTable);

/*
 * comment this out or delete if you don't support creation of new rows
 */
physicalInterfacesTable_table_set-allow_creation = 1;

/***
 * Adding indexes
 */
DEBUGMSGTL((initialize_table_physicalInterfacesTable,
adding indexes to table physicalInterfacesTable\n));
netsnmp_table_set_add_indexes(physicalInterfacesTable_table_set, 
ASN_INTEGER,   /* index: physicalInterfaceIndex */
  0);

DEBUGMSGTL((initialize_table_physicalInterfacesTable,
adding column types to table physicalInterfacesTable\n));
netsnmp_table_set_multi_add_default_row
(physicalInterfacesTable_table_set, COLUMN_PHYSICALINTERFACEINDEX,
 ASN_INTEGER, 0, NULL, 0, COLUMN_PHYSICALINTERFACENAME,
 ASN_OCTET_STR, 0, NULL, 0, COLUMN_PHYSICALINTERFACETYPE,
 ASN_OCTET_STR, 0, NULL, 0, COLUMN_PHYSICALINTERFACESTATE,
 ASN_OCTET_STR, 0, NULL, 0, 0);

/*
 * registering the table with the master agent
 */
/*
 * note: if you don't need a subhandler to deal with any aspects
 * of the request, change physicalInterfacesTable_handler to NULL
 */
retval=netsnmp_register_table_data_set(netsnmp_create_handler_registration
(physicalInterfacesTable,
 physicalInterfacesTable_handler,
 physicalInterfacesTable_oid,
 physicalInterfacesTable_oid_len,
 HANDLER_CAN_RWRITE),
physicalInterfacesTable_table_set,
NULL);
printf(Return of 
netsnmp_register_table_data_set(physicalInterfacesTable): %d\n,retval);
}

/** Initializes the mib_physicalInterfacesTable module */
void init_mib_physicalInterfacesTable(void)
{
printf(init_mib_physicalInterfacesTable()\n);

/*
 * here we initialize all the tables we're planning on supporting
 */
initialize_table_physicalInterfacesTable();
}

/** handles requests for the physicalInterfacesTable table, if anything else 
needs to be done */
int
physicalInterfacesTable_handler(netsnmp_mib_handler * handler,
netsnmp_handler_registration * reginfo,
netsnmp_agent_request_info * reqinfo,
netsnmp_request_info * requests)
{
printf(physicalInterfacesTable_handler()\n);
/*
 * perform anything here that you need to do.  The requests have
 * already been processed by the master table_dataset handler, but
 * this gives you chance to act on the request in some other way
 * if need be.
 */
return SNMP_ERR_NOERROR;
}
--

The functions init_mib_bChannelTable() and init_mib_sessionTable() looking 
similar to init_mib_physicalInterfacesTable().
They are made by mib2c.

In particular, they'll presumably call some form of 'netsnmp_register_xxx'
routine.   As part of that registration, there should be some
mention of an 'xxx_handler' routine.

The subagent never print out the debug text in the 
physicalInterfacesTable_handler function! Same for sessionTable and 
bChannelTable.
Return of 'netsnmp_register_xxx' is in every function zero.

In  'init_mib_scalar' the function 'netsnmp_register_scalar()' is called for 
every scalar. Return of 'netsnmp_register_scalar()' is always zero.

Thanks
Julian




Ferrari electronic AG
Ruhlsdorfer Str. 138
14513 Teltow (bei Berlin)

Handelregister Potsdam: HRB 12091
Vorstand: Johann Deutinger, Ulrich Dziergwa, Dr. Hartmut Fetzer
Aufsichtsrat: Peter Mark Droste (Vorsitzender)

--
The Palm PDK Hot Apps Program offers developers who use the
Plug-In 

Re: Fw:Re: net-snmp init_XXX() get data periodically( or cyclic ) problem

2010-08-03 Thread Dave Shield
On 3 August 2010 09:51, Alexander King new...@foxmail.com wrote:
 Look at using the cache helper.
 If you run 'mib2c -Scache=1  mib2c.iterate.conf   myTable'

sys-man mibs # mib2c -Scache=1 mib2c.iterat.conf uit
 no variable specified for -S flag. at /usr/local/bin/mib2c line 96.

OK - Try putting a space after the '-S'
I.e.
mib2c -S cache=1 

[I always get that wrong!]

Dave

--
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
of $1 Million in cash or HP Products. Visit us here for more details:
http://p.sf.net/sfu/dev2dev-palm
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: Net-SNMP 5.5 on Windows Server 2008 with own subagent, cant set scalar

2010-08-03 Thread Dave Shield
On 3 August 2010 10:14, Julian Cebulla cebu...@ferrari-electronic.de wrote:

 Here the code of init_mib_physicalInterfacesTable():


 void initialize_table_physicalInterfacesTable(void)
 {
  [snip]
    retval=netsnmp_register_table_data_set(netsnmp_create_handler_registration
                                    (physicalInterfacesTable,
                                     physicalInterfacesTable_handler,
                                     physicalInterfacesTable_oid,
                                     physicalInterfacesTable_oid_len,
                                     HANDLER_CAN_RWRITE),
                                    physicalInterfacesTable_table_set,
                                    NULL);

OK - so you are using the 'table_data_set' helper.
That's useful information.

This particular helper is designed for holding the data for the table within
the agent itself.So the agent knows what rows exist in the table,
and can provide the relevant values itself.   Your handler is optional,
and will only be called once the helper has finished processing the request.

So this helper relies on you populating the table with initial contents.
See 'examples/data_set.c'  and  'testhandler.c'   (both in agent/mibgroup)
for examples.


From the code you've provided, you don't seem to be populating the table
with anything.   So when the agent received a request for this (empty) table,
it returns the information that it has (i.e. nothing).


So no - your handler will never be called.
You need to populate the table (or use a different framework)

Dave

--
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
of $1 Million in cash or HP Products. Visit us here for more details:
http://p.sf.net/sfu/dev2dev-palm
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: Re: net-snmp init_XXX() get data periodically( or cyclic ) problem

2010-08-03 Thread Dave Shield
On 3 August 2010 10:34, Yongting Lin lyongt...@casachina.com.cn wrote:
    As in this situation, can register a peridoical alarm to monitor the
 condition, and send traps if condition changed?  or project-specified code(A
 daemon in pratical program) act as a subagent to snmpd, and invokde
 send_v2trap function to send traps when itself detects some condition
 changed?

 Is my thought feasible?


Yes - that should work.

Is the condition that you are monitoring covered by an existing MIB object?
If so, then you should be able to use the DisMan Event MIB support to
handle this already, without needing to write any new code at all.

See the relevant section in the snmpd.conf man page.

Dave

--
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
of $1 Million in cash or HP Products. Visit us here for more details:
http://p.sf.net/sfu/dev2dev-palm
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: Re: net-snmp init_XXX() get data periodically( or cyclic ) problem

2010-08-03 Thread Yongting Lin
Hi Dave:
   
   As in this situation, can register a peridoical alarm to monitor the 
condition, and send traps if condition changed?  or project-specified code(A 
daemon in pratical program) act as a subagent to snmpd, and invokde send_v2trap 
function to send traps when itself detects some condition changed?

Is my thought feasible?

Best Regards!

Ivan Lin.


previous email-
 
On 3 August 2010 09:04, Alexander King new...@foxmail.com wrote:
 I want to the init_uit routine can get data periodically
The init_xxx  routine is called *once* to set up the module,
when the agent first starts  That's what the word initialise means.
It will not be called repeatedly, and is not the right place to
handle (re-)loading data.
 Would you give me some hits?
Look at using the cache helper.
If you run 'mib2c -Scache=1  mib2c.iterate.conf   myTable'
then this should generate a suitable template.
I don't think the scalar mib2c template has a similar option,
but you can always apply the same techniques there.
As regards generating notifications, it would probably be
more sensible to either pass the relevant data into the
routine that generates the trap.   Or else have this routine
refresh the cached data itself.
   There's no point in re-loading the data just in case the
agent might possibly need to send a trap
Dave
--
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
of $1 Million in cash or HP Products. Visit us here for more details:
http://p.sf.net/sfu/dev2dev-palm___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: Precise time in traps

2010-08-03 Thread Mag Gam
I am curious have you gotten this to work? I am going to try to
implement PTP in my physics lab because I have heard good things about
it.



On Wed, Dec 16, 2009 at 3:54 PM, Mike Ayers mike_ay...@tvworks.com wrote:
 From: Christopher Nelson [mailto:chris.nelson.1...@gmail.com]
 Sent: Wednesday, December 16, 2009 4:48 AM

 No doubt I could create a PTP-based trap but I was thinking of things
 like cold start and link up.  Sounds like I don't gain anything in
 trap analysis by having highly-coordinated clocks.  Thanks.

        Hmmm... if you can find an object for the system clock time, then you 
 could perform gets on sysUpTime and sysClockTime in the same packet.  A 
 little jitter interpolation and you could quickly get very close to the 
 coordinated time value of received traps.


        HTH,

 Mike

 --
 This SF.Net email is sponsored by the Verizon Developer Community
 Take advantage of Verizon's best-in-class app development support
 A streamlined, 14 day to market process makes app distribution fast and easy
 Join now and get one step closer to millions of Verizon customers
 http://p.sf.net/sfu/verizon-dev2dev
 ___
 Net-snmp-users mailing list
 Net-snmp-users@lists.sourceforge.net
 Please see the following page to unsubscribe or change other options:
 https://lists.sourceforge.net/lists/listinfo/net-snmp-users


--
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
of $1 Million in cash or HP Products. Visit us here for more details:
http://p.sf.net/sfu/dev2dev-palm
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


please help me

2010-08-03 Thread Eman Saber
i need to set IP address using netsnmp and i do the following
1-create rwcommunity and give it full privileges.
2-i'm using netsnmp version 2c
3-i'm using IP-MIB

mycommand:
 snmpset -Oe  -v 2c -c private localhost IP-MIB::ipAdEntAddr.192.168.1.49  = 
192.168.1.26

myerror:
Error in packet.
Reason: notWritable (That object does not support modification)
Failed object: IP-MIB::ipAdEntAddr.192.168.1.49

From the IP-MIB file:

ipAdEntAddr OBJECT-TYPE
SYNTAX IpAddress
MAX-ACCESS read-only== change it to read-write
STATUS deprecated
DESCRIPTION
   The IPv4 address to which this entry's addressing
information pertains.
::= { ipAddrEntry 1 }

i know it is not writable but how can i do that (change object value) i need 
answer yes or not and if yes how can i do this??



  --
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
of $1 Million in cash or HP Products. Visit us here for more details:
http://p.sf.net/sfu/dev2dev-palm___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: please help me

2010-08-03 Thread Dave Shield
On 3 August 2010 12:53, Eman Saber eman_saber_...@yahoo.com wrote:
 i need to set IP address using netsnmp

 i know it is not writable but how can i do that (change object value) i need
 answer yes or not and if yes how can i do this??

The answer is NO.

I've already told you this.
Repeating the question will not change the answer.



 ipAdEntAddr OBJECT-TYPE
SYNTAXIpAddress
MAX-ACCESS read-only== change it to read-write

That is not possible.
IP-MIB is an Internet standard.
You cannot change international standards off your own bat
simply because you don't like what they say.


Dave

--
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
of $1 Million in cash or HP Products. Visit us here for more details:
http://p.sf.net/sfu/dev2dev-palm
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


help me

2010-08-03 Thread Eman Saber
ok ,but how can i do this (configure server using net-snmp) 
please help me


  --
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
of $1 Million in cash or HP Products. Visit us here for more details:
http://p.sf.net/sfu/dev2dev-palm___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Undefined reference to 'pthread_create' link error (v5.5 w/IPv6)

2010-08-03 Thread Ron Rader
  I'm running into this configure bug:

http://www.mail-archive.com/net-snmp-users@lists.sourceforge.net/msg2479
8.html

  Tried searching the bugs  patch databases to see if this has been
formally addressed, but didn't find anything.

  Is there a v5.5 patch for this, or is the workaround described later
in the thread our only alternative?

http://www.mail-archive.com/net-snmp-users@lists.sourceforge.net/msg2490
0.html

(i.e. add --withlibs=-lpthread to configure options)

  Thanks,

  Ron



The information contained in this message may be privileged and confidential 
and protected from disclosure. If the reader of this message is not the 
intended recipient, or an employee or agent responsible for delivering this 
message to the intended recipient, you are hereby notified that any 
dissemination, distribution or copying of this communication is strictly 
prohibited. If you have received this communication in error, please notify us 
immediately by replying to the message and deleting all copies. Thank you.

--
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
of $1 Million in cash or HP Products. Visit us here for more details:
http://p.sf.net/sfu/dev2dev-palm
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: Reg: Snmp Request Time out

2010-08-03 Thread Vinayak Swaminathan
Hi Dave,

Thanks, the solution worked !!

Actually i do not find snmp.conf in my setup. I am actually using NetSnmp
5.2.4.

Regards,
Vinayak



On Tue, Aug 3, 2010 at 3:06 AM, Dave Shield d.t.shi...@liverpool.ac.ukwrote:

 On 23 July 2010 11:34, Vinayak Swaminathan babyface.xi...@gmail.com
 wrote:
  I've also tried increasing the debug levels of my Agent by updating the
  following in my snmpd.conf of my master agent.
 
  dumpPacket yes
  debugTokens ALL
  doDebugging 1
 
  However i get the the error in /var/log/snmpd.log
 
  line 124: Warning: Unknown token: dumpPacket.
  line 125: Warning: Unknown token: doDebugging.
  line 126: Warning: Unknown token: debugTokens
 
  These are valid parameter settings right... So why do i get these
 errors??

 These are valid config directives for the library, rather than specifically
 for the agent.  Hence they would normally be put in the file snmp.conf,
 rather than snmpd.conf.

 If you do want to apply these to the agent only, then put them in
 the snmpd.conf file, but preceded by [snmp]

 i.e.
[snmp] dumpPacket yes
[snmp] debugTokens ALL
[snmp] doDebugging 1

 Dave

--
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
of $1 Million in cash or HP Products. Visit us here for more details:
http://p.sf.net/sfu/dev2dev-palm___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: Reg: Snmp Request Time out

2010-08-03 Thread Dave Shield
On 3 August 2010 18:30, Vinayak Swaminathan babyface.xi...@gmail.com wrote:
 Actually i do not find snmp.conf in my setup.

Please see the FAQ entry
Applications complain about entries in your example 'snmp.conf' file.  Why?

Dave

--
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
of $1 Million in cash or HP Products. Visit us here for more details:
http://p.sf.net/sfu/dev2dev-palm
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: Net-SNMP compilation error on AIX 5.3.8.3

2010-08-03 Thread Thomas Anders
Dana Kaempen wrote:
 In compiling Net-SNMP for AIX 5.3.8.3, I came upon these errors at the
 end of the attached make.out file:

I take it that you're trying to build Net-SNMP 5.5. What configure options are 
you using?
Do you also have other (earlier) versions of net-snmp installed on your system?


+Thomas

--
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
of $1 Million in cash or HP Products. Visit us here for more details:
http://p.sf.net/sfu/dev2dev-palm
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Jack Reilly/ComStock is out of the office.

2010-08-03 Thread jack . reilly

I will be out of the office starting  08/02/2010 and will not return until
08/06/2010.

I will respond to your message when I return.

*** This
message (including any files transmitted with it) may contain
confidential and/or proprietary information, is the property of
Interactive Data Corporation and/or its subsidiaries, and is
directed only to the addressee(s). If you are not the designated
recipient or have reason to believe you received this message in
error, please delete this message from your system and notify the
sender immediately. An unintended recipient's disclosure, copying,
distribution, or use of this message or any attachments is
prohibited and may be unlawful.
***

--
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
of $1 Million in cash or HP Products. Visit us here for more details:
http://p.sf.net/sfu/dev2dev-palm
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: Re: net-snmp init_XXX() get data periodically( or cyclic ) problem

2010-08-03 Thread Alexander King
On 3 August 2010 10:34, Yongting Lin lyongt...@casachina.com.cn wrote:
As in this situation, can register a peridoical alarm to monitor the
 condition, and send traps if condition changed?  or project-specified code(A
 daemon in pratical program) act as a subagent to snmpd, and invokde
 send_v2trap function to send traps when itself detects some condition
 changed?

 Is my thought feasible?
 
 Yes,I know what your really meaning is,there is another routine call 
send_uit_traps() send the traps if some values chanaged.
  
 Now,I want to know how to get the newest data use net-snmp snmpd daemon 
routine.That is to say,Is there a way when I use snmpwalk command browse the 
uit data tree I get the updated or newest or latest data each time?
 


Yes - that should work.

Is the condition that you are monitoring covered by an existing MIB object?
 Yes,all the monitor objects and the code get from the MIB files.
  
  
 
If so, then you should be able to use the DisMan Event MIB support to
handle this already, without needing to write any new code at all.

See the relevant section in the snmpd.conf man page.

Dave--
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
of $1 Million in cash or HP Products. Visit us here for more details:
http://p.sf.net/sfu/dev2dev-palm___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users