From owner-freebsd-current@FreeBSD.ORG Wed May 7 12:39:09 2014 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id CC08B2E7 for ; Wed, 7 May 2014 12:39:09 +0000 (UTC) Received: from blu0-omc2-s7.blu0.hotmail.com (blu0-omc2-s7.blu0.hotmail.com [65.55.111.82]) by mx1.freebsd.org (Postfix) with ESMTP id 9B4D61DC for ; Wed, 7 May 2014 12:39:08 +0000 (UTC) Received: from BLU179-W47 ([65.55.111.73]) by blu0-omc2-s7.blu0.hotmail.com with Microsoft SMTPSVC(6.0.3790.4675); Wed, 7 May 2014 05:39:01 -0700 X-TMN: [vfOcN6lXSjYE6vWA29jWJsS/JOBbeSJ1] X-Originating-Email: [brunolauze@msn.com] Message-ID: From: =?iso-8859-1?B?QnJ1bm8gTGF1euk=?= To: "freebsd-current@freebsd.org" Subject: wbem, cim and instrumentation Date: Wed, 7 May 2014 08:39:01 -0400 Importance: Normal Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginalArrivalTime: 07 May 2014 12:39:01.0887 (UTC) FILETIME=[5313B8F0:01CF69F1] X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 May 2014 12:39:09 -0000 One thing I feel FreeBSD always ignored =A0is instrumentation frameworks.= =0A= I am talking about wbem=2C cim model and implementation like OpenPegasus. W= hy is that?=0A= I ported OpenPegasus to work in FreeBSD with few patches.=0A= However=2C of course without providers a wbem doesn't go far. I started to = see how to shape providers for freebsd at:=0A= =0A= github.com/brunolauze/openpegasus-providers=0A= =0A= my openpegasus port is at:=0A= =0A= github.com/brunolauze/freebsd-ports/tree/master/net-mgmt/openpegasus=0A= =0A= =0A= Apple ships a wbem=0A= Microsoft ships a wbem / non-standard=0A= RedHat ships it.=0A= Suse ships it.=0A= z/OS ships it.=0A= Ubuntu and distro-like ships it.=0A= And Solaris does also.=0A= =0A= Why not us?=0A= =0A= The advantage outside of this idea is better coding technique and design to= expose API first and utility based on those APIs.=0A= if any utility can be used as API=2C this discard the need for application = to use system() or popen() to execute shell code to accomplish system tasks= =2C which is really bad but widely widespread in lack of good =A0API exposu= re of those utilities. This reduce a lot of error with changes in utilities= switches=2C etc. and mitigate security risks.=0A= =0A= Wouldn't it be great to query FreeBSD with queries like:=0A= select * from UNIX_DiskDrive where Storage_Capacity> 1000=0A= or=A0=0A= select * from UNIX_SCSIController WHERE LastErrorCode <> 0=0A= =0A= =0A= Anyway=2C this is just to talk=2C let me know your opinions!=0A= =0A= =0A= =0A= =