4/18/2014

Sublime sfcb, granting access to wbem

Web management on Linux for servers and devices is pretty much the same as on Windows and elsewhere, it based on the WBEM protocol and a cimom server. It's kind of like SNMP and it maps inqueries over to those service providers too.

There are several cimom (common information management "object manager") daemons on Linux to choose from. The IBM Sublime opensource project Sblim sfcb (small-footprint, cimom broker) is one.

Installing it from # yum is simple

# yum install   --nogpg   sblim-sfcb   cim-schema   sblim-cmpi-*

But once its installed you need to grant permission to users to access the service.


This is done by adding them to a [  sfcb  ] group which isn't created by default.

# groupadd sfcb


Then create a user for the purpose

# useradd cimuser
# passwd cimuser

Then add them to the group

# usermod -G sfcb cimuser

Start the service

# service sblim-sfcb start

Test the service

#  wbemcli ecn https://cimuser:******@192.168.2.34:5989/root/cimv2 -noverify

192.168.2.34:5989/root/cimv2:Linux_OSProcess
192.168.2.34:5989/root/cimv2:CIM_Processor
192.168.2.34:5989/root/cimv2:CIM_System
192.168.2.34:5989/root/cimv2:CIM_UnixProcess
192.168.2.34:5989/root/cimv2:CIM_PhysicalPackage
192.168.2.34:5989/root/cimv2:Linux_ComputerSystem
192.168.2.34:5989/root/cimv2:CIM_PhysicalElement
192.168.2.34:5989/root/cimv2:Linux_OperatingSystem
192.168.2.34:5989/root/cimv2:SFCB_ServiceAffectsElement
192.168.2.34:5989/root/cimv2:Linux_Processor
192.168.2.34:5989/root/cimv2:CIM_OperatingSystem
192.168.2.34:5989/root/cimv2:CIM_Process
192.168.2.34:5989/root/cimv2:CIM_Card
192.168.2.34:5989/root/cimv2:CIM_ManagedSystemElement
192.168.2.34:5989/root/cimv2:CIM_SystemComponent
192.168.2.34:5989/root/cimv2:CIM_RunningOS
192.168.2.34:5989/root/cimv2:CIM_InstModification
192.168.2.34:5989/root/cimv2:CIM_LogicalDevice
192.168.2.34:5989/root/cimv2:CIM_SystemDevice
192.168.2.34:5989/root/cimv2:CIM_ComputerSystem
192.168.2.34:5989/root/cimv2:Linux_CSProcessor
192.168.2.34:5989/root/cimv2:Linux_BaseBoard
192.168.2.34:5989/root/cimv2:CIM_ProcessIndication
192.168.2.34:5989/root/cimv2:CIM_InstIndication
192.168.2.34:5989/root/cimv2:CIM_SystemPackaging
192.168.2.34:5989/root/cimv2:CIM_EnabledLogicalElement
192.168.2.34:5989/root/cimv2:CIM_ManagedElement
192.168.2.34:5989/root/cimv2:CIM_ServiceAffectsElement
192.168.2.34:5989/root/cimv2:CIM_InstCreation
192.168.2.34:5989/root/cimv2:Linux_RunningOS
192.168.2.34:5989/root/cimv2:CIM_OSProcess
192.168.2.34:5989/root/cimv2:Linux_CSBaseBoard
192.168.2.34:5989/root/cimv2:CIM_StatisticalData
192.168.2.34:5989/root/cimv2:CIM_Indication
192.168.2.34:5989/root/cimv2:CIM_ElementStatisticalData
192.168.2.34:5989/root/cimv2:CIM_Component
192.168.2.34:5989/root/cimv2:CIM_Dependency
192.168.2.34:5989/root/cimv2:Linux_UnixProcess
192.168.2.34:5989/root/cimv2:Linux_OperatingSystemStatisticalData
192.168.2.34:5989/root/cimv2:Linux_OperatingSystemStatistics
192.168.2.34:5989/root/cimv2:CIM_LogicalElement
192.168.2.34:5989/root/cimv2:CIM_ComputerSystemPackage