RE: Anybody else having a problem with statvfs on Solaris (or oth er p latforms)?

2004-09-24 Thread Bruce Shaw
Title: RE: Anybody else having a problem with statvfs on Solaris (or other p latforms)? How do I get the size prorammatically of an unmounted partition? -Original Message- From: Andrew Hood [mailto:[EMAIL PROTECTED]] Sent: Friday, September 24, 2004 4:20 PM To: Bruce Shaw Cc: Net-Snm

Re: Anybody else having a problem with statvfs on Solaris (or other p latforms)?

2004-09-24 Thread Andrew Hood
Bruce Shaw wrote: if (statvfs("/dev/dsk/c0t0d0s7",&vfs) == -1) The first arg to statvfs is a directory or file, not a device. printf("size = %d, blocks = %d free = %d\n", >vfs.f_frsize, vfs.f_blocks, vfs.f_bfree, mt[n]); gcc should complain about %d They sho

Anybody else having a problem with statvfs on Solaris (or other p latforms)?

2004-09-24 Thread Bruce Shaw
Title: Anybody else having a problem with statvfs on Solaris (or other platforms)? /* compile gcc -o vfsf vfs.c*/ /* proof of concept code for net-snmp www.net-snmp.org may be used under same license agreement*/ #include #include #include #include main() { struct statvfs vfs;     i

MIB module under no-default context

2004-09-24 Thread David Sousa Coelho
Hi all, I've written a MIB module to register itself under a diferent context than default and I've configured access to it in the following way: view altRW included .1.3.6.1.4.1. group altAdmin usm dsc access altAdmin easy usm auth prefix altRW none none And it works fine when the module i

manpage quirk

2004-09-24 Thread Patrick Welche
I was so pleased to see all those manpage updates, I just had to read some.. One nit: From mib_api(3) void print_description(const oid *objid, size_t objidlen); whereas it (and a few other functions like it) have another int width parameter. I would provide patches to man, but I don't real

Re: Does snmpNotifyFilterTable really work?

2004-09-24 Thread Coders
On Thu, 23 Sep 2004 17:45:11 +0800 ___ wrote: > Does snmpNotifyFilterTable really work? I read the whole code of target > and notification ,but I don't find notifyTable use snmpNotifyFilterTable to > mask some trap dst. No, but there is a slight chance it will make it into 5.2. > By t

Re: how to use SNMP-TARGET-MIB

2004-09-24 Thread Coders
On Fri, 24 Sep 2004 10:17:54 -0400 Robert wrote: RS> On Thu, 23 Sep 2004 12:52:57 +0800 ___ wrote: RS> > when i send trap in my agent it can send 2 packages , one is send to RS> > 162(00a2) port. RS> > but the other is send to 41472(a200) not the 162.So the first is RS> > recongnized to

Re: how to use SNMP-TARGET-MIB

2004-09-24 Thread Coders
On Thu, 23 Sep 2004 12:52:57 +0800 ___ wrote: > when i send trap in my agent it can send 2 packages , one is send to > 162(00a2) port. > but the other is send to 41472(a200) not the 162.So the first is > recongnized to > SNMPTRAP, but the second one just a UDP package . why ? I use

RE: Problem sending trap in own sub-agent

2004-09-24 Thread Ponticiello Vincenzo
Title: RE: Problem sending trap in own sub-agent Hi Dave, Hi Bernhard, I have installed latest version of net-snmp (5.1.2) and all works correctly. Thanks a lot for yours help. Bye,     Vincenzo -Original Message- From: Dave Shield [mailto:[EMAIL PROTECTED]] Sent: giovedì

Re: Does snmpNotifyFilterTable really work?

2004-09-24 Thread Dave Shield
> Does snmpNotifyFilterTable really work? No. >From the FAQ: Where are these traps sent to? - Note that all notifications will be sent to all destinations. The agent does not (currently) support notification filtering. Dave --

Re: SNMP v3 inform

2004-09-24 Thread Dave Shield
> Where do i get the code for SNMP V3 informs??? First thing - can you please liaise with your colleagues to ensure that you only ask a question *once*. Two of you asking the same question separately is just wasting our time. The structure of an SNMPv3 inform is exactly the same as for an

SNMP v3 Informs

2004-09-24 Thread Devirani R.R
Hi All, Please let me know where can I get the code for SNMP v3 informs in net-snmp. Regards, Devirani --- This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 Project Admins to receive an Apple iPod Mini FREE f

SNMP v3 inform

2004-09-24 Thread Arunava
Hi All, Where do i get the code for SNMP V3 informs???I looked in the snmptraps.c but no discovery or time sync has been captured.I looked thru other trap files present under /apps/ but was not able to get the exact code.Can you please let me know the same? regards, Arunava -

RE: Problem sending trap in own sub-agent

2004-09-24 Thread Penz, Bernhard
Title: Problem sending trap in own sub-agent There was a problem with traps and 5.1. Check the link below to see if your version has this already fixed.   http://groups.google.at/groups?q=snmpd:+send_trap:+Unknown+PDU+type&hl=de&lr=&ie=UTF-8&selm=bpl0qo%242848%241%40FreeBSD.csie.NCTU.edu.tw&rn