From owner-freebsd-net@freebsd.org Fri Aug 30 12:38:07 2019 Return-Path: Delivered-To: freebsd-net@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 98ECECDCAF for ; Fri, 30 Aug 2019 12:38:07 +0000 (UTC) (envelope-from patfbsd@davenulle.org) Received: from sender-of-o53.zoho.com (sender-of-o53.zoho.com [135.84.80.218]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 46KfCL4v2Nz45Ct for ; Fri, 30 Aug 2019 12:38:06 +0000 (UTC) (envelope-from patfbsd@davenulle.org) ARC-Seal: i=1; a=rsa-sha256; t=1567168681; cv=none; d=zoho.com; s=zohoarc; b=n51ADnEhWJItbSDtX5BIgpB80pXBq7Bbo8iX1c6GaP+BMGYSxC3vl+gO5W0/zpUNIQ7Wk4w1bq6oZRR2rm2rAVVJRYdcjngYYNzTImFB4kqgnaTsuZ0WO0rYZ4kk5dDCRlGwTN1Kfm94fK9kn89m+7umFYAuFaKsWUJqPEg47q4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1567168681; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:ARC-Authentication-Results; bh=VjRUgy7vhTNAiPD05IhumbMaAwkodHg7Rb2MKJ8GKZI=; b=LByJUlao3eS2jFLjnaO0kU+SOxpkb+aHE2uR11UrhyX2pKBHlMZ9t6YEV1eQbC4zvCii7y7nWxql5AGolGRWZFoox/q3cO4fmk9uNgBaY1itviplQZET52+MwviCeRDBX2NIhHecMowbiDXkLG6/4jYMEHOBF9imasJUx1LZdrg= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=pass header.i=davenulle.org; spf=pass smtp.mailfrom=patfbsd@davenulle.org; dmarc=pass header.from= header.from= Received: from mr185033.univ-rennes1.fr (mr185033.univ-rennes1.fr [129.20.185.33]) by mx.zohomail.com with SMTPS id 1567168678811177.66384931733114; Fri, 30 Aug 2019 05:37:58 -0700 (PDT) Date: Fri, 30 Aug 2019 14:37:37 +0200 From: Patrick Lamaiziere Cc: Eugene Grosbein , freebsd-net@freebsd.org Subject: Re: (11.3) bsnmpd and trap Message-ID: <20190830143737.21767c38@mr185033.univ-rennes1.fr> In-Reply-To: References: <20190830134845.4b8a75ac@mr185033.univ-rennes1.fr> X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-ZohoMailClient: External X-Rspamd-Queue-Id: 46KfCL4v2Nz45Ct X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of patfbsd@davenulle.org has no SPF policy when checking 135.84.80.218) smtp.mailfrom=patfbsd@davenulle.org X-Spamd-Result: default: False [-5.40 / 15.00]; RCVD_TLS_LAST(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[davenulle.org]; TO_MATCH_ENVRCPT_SOME(0.00)[]; NEURAL_HAM_SHORT(-0.96)[-0.958,0]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[218.80.84.135.list.dnswl.org : 127.0.15.0]; MISSING_TO(2.00)[]; R_SPF_NA(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:2639, ipnet:135.84.80.0/24, country:US]; RCVD_COUNT_TWO(0.00)[2]; IP_SCORE(-3.34)[ip: (-8.55), ipnet: 135.84.80.0/24(-4.72), asn: 2639(-3.39), country: US(-0.05)]; ARC_ALLOW(-1.00)[i=1] X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Aug 2019 12:38:07 -0000 On Fri, 30 Aug 2019 19:18:35 +0700 Eugene Grosbein wrote: > > bsnmpd sends a trap when an interface link goes up but not when the > > link goes down. > > > > Is there a way to have a trap when the link is down? > > Are you sure you not trying to send a trap for broken link over same > link? :-) Yes I'm sure :-) The interface to the snmp trap server is ix2 and i tried with the link of ibg0 (a link to a DMZ) Trap works fine with net-snmpd but I would like to remove it cause of some bugs. I've to patch it https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=231996 Regards,