From owner-freebsd-net@freebsd.org Mon Sep 2 07:35:56 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 F2888D4546 for ; Mon, 2 Sep 2019 07:35:56 +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 46MMMH5jB4z4Mw1 for ; Mon, 2 Sep 2019 07:35:55 +0000 (UTC) (envelope-from patfbsd@davenulle.org) ARC-Seal: i=1; a=rsa-sha256; t=1567409689; cv=none; d=zoho.com; s=zohoarc; b=YGkaf+QHCXOAFESSwBEJ6eNqZchUnBFsv9iKJwGRtuNgqI6XMFRWrQ+2UQ3W2mZiXnm1w/l+VgaNT+pxhQ/qv0tgI/yKmfSduP18y9m0mRjYFjC+cVexoqYVAa15CGfye3LdZNYVoULrezllWgpD7hx5r3+OA7ls/csMfimSmew= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1567409689; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To:ARC-Authentication-Results; bh=1dMdm6irHHLazFmyA2OsxJZ9PnToWFrZj5c1KXwyZyc=; b=iqdJWSiWoC8epRJ/IAVNlsqGiwuJ8B7s/9CfWaIttbOb4Ih24M9bI7DISJKN3Pt7aFF5AR9mkpvV/jAnidf27n+HY/KNee20Mx0KuyMfeNM2FOPTLWsSLaqfdApqlJ20cyoxAbUpYJBuurDQKgnC51XdbIWHsPG7AyNe74zIWLQ= 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 156740968882028.41679765295737; Mon, 2 Sep 2019 00:34:48 -0700 (PDT) Date: Mon, 2 Sep 2019 09:34:41 +0200 From: Patrick Lamaiziere To: freebsd-net@freebsd.org Cc: Eugene Grosbein Subject: Re: (11.3) bsnmpd and trap Message-ID: <20190902093441.57ff5120@mr185033.univ-rennes1.fr> In-Reply-To: <53020df3-e555-e46e-301b-f5552397fa46@grosbein.net> References: <20190830134845.4b8a75ac@mr185033.univ-rennes1.fr> <20190830143737.21767c38@mr185033.univ-rennes1.fr> <53020df3-e555-e46e-301b-f5552397fa46@grosbein.net> 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: 46MMMH5jB4z4Mw1 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 [-7.48 / 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.99)[-0.988,0]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[218.80.84.135.list.dnswl.org : 127.0.15.0]; 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.39)[ip: (-8.76), ipnet: 135.84.80.0/24(-4.72), asn: 2639(-3.41), 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: Mon, 02 Sep 2019 07:35:57 -0000 On Sat, 31 Aug 2019 08:04:11 +0700 Eugene Grosbein wrote: Hello, > >>> 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) > > Does your kernel write a notification to dmesg for this event? Yes : Aug 28 14:09:28 fucop2 kernel: igb0: link state changed to DOWN Aug 28 14:09:53 fucop2 kernel: igb0: link state changed to UP > Have you verified that devd(8) is running meantime? Yes, and the configuration of devd is unmodified. Regards.