February 16, 2015

SCCM 2012 R2 - CentOS 7 client

  • Download SCCM 2012 R2 - Clients for Additional Operating Systems. 
  • cd /home/username/documents
  • chmod +x install
  • ./install -mp <Management Point FQDN> -sitecode <Side Code> ccm-Universalx64.tar
  • Go to All Systems collection and Approve the client
Hardware inventory request:
/opt/microsoft/configmgr/bin/ccmexec -rs hinv


Policy request:
/opt/microsoft/configmgr/bin/ccmexec -rs policy


Stop/Start client:
/etc/init.d/ccmexecd stop
/etc/init.d/ccmexecd start

Enable verbose logging:
/opt/microsoft/configmgr/etc/scxcm.conf
FILE (
PATH: /var/opt/microsoft/scxcm.log
MODULE: TRACE
MODULE: scx.client TRACE
)

Looking into logs:
tail -f  /var/opt/microsoft/scxcm.log

Before any configuration I suggest to walk through TechNet Virtual Lab: Implementing Linux Clients in Microsoft System Center 2012 R2 Configuration Manager

February 10, 2015

SCOM 2012 R2 - Linux agent discovery failed

When Linux server hostname differs from DNS entry:

openssl x509 -in /etc/opt/microsoft/scx/ssl/scx.pem -text
/opt/microsoft/scx/bin/tools/scxsslconfig -h <hostname> -d <domain name> -f -v

February 9, 2015

Office 365 - MailboxStatistics TotalItemSize

In Exchange on premise we could easily convert output of TotalItemSize value to Mb expression using Value.ToMb() method. Another story happened in Office 365. Following example shows us how to get statistics of all Office 365 shared mailboxes:

Get-mailbox | where {$_.RecipientTypeDetails -like "SharedMailbox"} | Get-MailboxStatistics | Select DisplayName,@{name="TotalItemSize (MB)";expression={[math]::Round(($_.TotalItemSize.ToString().Split("(")[1].Split(" ")[0].Replace(",","")/1MB),2)}},@{name="TotalDeletedItemSize (MB)";expression={[math]::Round(($_.TotalDeletedItemSize.ToString().Split("(")[1].Split(" ")[0].Replace(",","")/1MB),2)}},ItemCount,DeletedItemCount

This output shows all shared mailboxes including information about deleted items.