Hi all
net-snmp-5.7.1 to get storage information
the but get wrong used size
/raid0 is 23TB
used 42G
Size = 16384 * 1457172163
Used = 16384 * 41582004
in function netsnmp_fsys_calculate32
f->used_32 = f->used << factor;
but it seem need to >> factor to get right used size
HOST-RESOURCES-MIB:
On 20 October 2011 09:39, Ravi Kumar wrote:
> Code is similar to below
OK - so you are still forcing me to guess.
The only thing I can spot that looks wrong is the
handling of suffices (i.e. the index values)
> suffix = requests->requestvb->name + reginfo->rootoid_len + 1;
> s
It worked the firewall was blocking the TCP calls; setup given in FAQ is
correct.
Thanks & Regards,
Shreyas
From: Shreyas Deodhar
Sent: Tuesday, October 18, 2011 5:19 PM
To: net-snmp-coders
Subject: Running sub-agent on different machine
Hi,
I want to run my sub-agent on different machine f
Code is similar to below
void
initialize_table_XXXTable(void)
{
static u_long XXXTable_oid[] = { 1, 3, 6, 1, 4, 1, 38070, 3, 1, 24, 4
};
netsnmp_table_registration_info *table_info;
netsnmp_handler_registration *my_handler;
netsnmp_variable_list *index_vb;
table_info
On 20 October 2011 08:07, Ravi Kumar wrote:
> I have registered my table with netsnmp_register_table to implement
> my own getnext.
> Every thing seems to be working fine except snmpgetnext request with
> multiple oid returns only first oid and its value in response PDU.
> Any guesses ?
I'm sorr
I have registered my table with netsnmp_register_table to implement my own
getnext.
Every thing seems to be working fine except snmpgetnext request with
multiple oid returns
only first oid and its value in response PDU. Any guesses ? my code loops
over
for (request = requests; request; request =