Stacy Simpkins
Stacy Simpkins
Brandon, Florida, USA
Any source code or other supplementary material referenced by the author in this book is available to readers on GitHub via the book’s product page, located at www.apress.com/9781484231371 . For more detailed information, please visit http://www.apress.com/source-code .
ISBN 978-1-4842-3137-1
e-ISBN 978-1-4842-3138-8
https://doi.org/10.1007/978-1-4842-3138-8
Library of Congress Control Number: 2017960834
© Stacy Simpkins 2017
This work is subject to copyright. All rights are reserved by the Publisher, whether the whole or part of the material is concerned, specifically the rights of translation, reprinting, reuse of illustrations, recitation, broadcasting, reproduction on microfilms or in any other physical way, and transmission or information storage and retrieval, electronic adaptation, computer software, or by similar or dissimilar methodology now known or hereafter developed.
Trademarked names, logos, and images may appear in this book. Rather than use a trademark symbol with every occurrence of a trademarked name, logo, or image we use the names, logos, and images only in an editorial fashion and to the benefit of the trademark owner, with no intention of infringement of the trademark. The use in this publication of trade names, trademarks, service marks, and similar terms, even if they are not identified as such, is not to be taken as an expression of opinion as to whether or not they are subject to proprietary rights.
While the advice and information in this book are believed to be true and accurate at the date of publication, neither the authors nor the editors nor the publisher can accept any legal responsibility for any errors or omissions that may be made. The publisher makes no warranty, express or implied, with respect to the material contained herein.
Printed on acid-free paper
This book is dedicated to Saanvi, Owen, Willow, Oaklyn, and Weston.
This introduction covers, at a high level, the topics that this book discusses. The book assumes that you already have a development SharePoint environment that you can use to perform the exercises. If you don’t have a development farm and are not sure about the steps needed to create one, you should get a copy of my book Building a SharePoint 2016 Home Lab: A How-To Reference on Simulating a Realistic SharePoint Testing Environment (Apress, 2016). Although it is possible to read each chapter independently, there are parts of chapters that build off previous chapters and/or assume some requisite SharePoint knowledge. The following is the 40,000-foot view.
This chapter thoroughly discusses building a SharePoint farm using least privileging. It starts to peel away the troubleshooting onion, layer by layer, and explains why a least-privileged build is important for troubleshooting.
This chapter is the first of two parts that cover the key settings of a good build. You’ll learn about SQL aliases, MSDTC, to IIS WAMREG and DCOM, Network Service, and the local security needs of a farm account.
This chapter finishes the discussion on key settings in the file system as they relate to App Fabric and Distributed Cache, User Profile Synchronization, publishing infrastructure, account management, logging locations and levels, and path-based vs. host headers, also known as host named site collections.
This chapter explores the changes that SharePoint makes to a Windows server file system and discusses how this relates to IIS. It looks at IIS logging and opens the discussion that surrounds the connection between IIS logs, SharePoint logs, and Windows logs.
This chapter opens SQL Server Management Studio and looks at the SQL Server settings, database settings, server roles, database mappings, SQL logging, and various PowerShell and/or command-line operations as they relate to SharePoint database security operations from within SSMS and/or SQL Server configuration.
This chapter covers a few more SQL-related topics, such SQL database backup and restore options, unattached restores, SQL file restores, and PowerShell site collection backup and restore. We look at some Windows OS commands that yield helpful troubleshooting information, including systeminfo, ncpa.cpl, msinfo32, SC, and others as I talk about finding answers to troubleshooting questions.
This chapter peels back a deeper layer of the troubleshooting onion as it relates to issues with search, search configuration with PowerShell, and the search service application. We look at some cool scripts and take a fairly good dive into search.
This chapter looks at troubleshooting User Profile Synchronization Connections, Excel Services, Office Web app connections, and patching Office Web apps. We look at managed metadata term stores and discuss the connection to the User Profile Service. I’ll discuss web.config modifications and using PowerShell to determine if the web.config is modified. Along with looking at web.config, PowerShell interrogates timer jobs, log levels, and databases. Finally, PowerShell is used to unprovision and provision services.
This chapter’s primary focus centers on ULS logs, ULS viewer, merge-splogfile, and other PowerShell cmdlets that pertain to Windows logs. It discusses the numerous settings of ULS viewer and some various scenarios and methods. The chapter explains the connection between SharePoint and Windows event logs and helps the reader understand how to decipher what the logs are saying and how to use the logging system and configure it.
This chapter discusses the use of ProcMon, WireShark, Fiddler, NetMon, developer dashboard, and more! It also covers a few more tools used to look at network packets, IIS logs, and page load performance.
This chapter discusses the SharePoint Health Analyzer report, the Performance Analysis of Logs (PAL) tool for SharePoint, the SharePoint Manager tool, the SharePoint feature admin tool, and finally, a summation of the three chapters on troubleshooting tools.
In this book, we use keyboard shortcuts, the run bar, and commands quite a bit. Table- A lists some of the commands with a brief description.
CommandKeyboard Shortcut | Description of Run Command |
---|---|
Windows key + R | Opens the run bar |
Cmd | Opens the Command window |
Comexp | Opens the Component Services manager |
Compmgmt.msc | Opens the Computer Management console |
ipconfig | Opens the ipconfig information |
nslookup | Opens a command-line interface to DNS |
Ncpa.cpl | Opens the network connections |
Regedit | Opens the registry editor |
Control netconnections | Opens the network connections |
Msinfo32 | Opens the system information |
Sysdm.cpl | Opens the system properties |
Services.msc | Opens the Services console |
Dsa.msc | Opens the Active Directory users and computers |
Dnsmgmt.msc | Opens the Domain Name System manager |
Gpmc.msc | Opens the Group Policy Manager |
Control Panel | Open the control panel |
Lusrmgr.msc | Open the Local Users and Groups administration console |
Notepad | Opens Notepad |
Adsiedit.msc | Opens the Active Directory Service Interface editor |
The goal of this book is to provide you with a much broader troubleshooting arsenal for SharePoint and perhaps a deeper understanding of how the file system relates to the databases. We do not delve into unsupported activities, such as table modifications, as that would not be in best practice; however, there are a couple points in the book where we come close, as we look into certain tables inside the SharePoint SQL Server database tables. No animals were hurt during the making of this book and all of the tools you see used in this book are available free of charge and are downloadable on the Internet.
I’d like to thank my fellow Rackspace SharePoint engineers for their contributions: Scott Fawley, J. T. Shoupe, Stephen Swinney, Danny Pugh, Mike Ross, Mike Clarke, Jarod Oliver, Daocheng Li (Richard), Mark Watts, Ryan Holderread, Brad Slagle, and Tray Harrison. Originally, I had planned to provide a short bio of everyone on this list; however, we weren’t able to pull them all together before printing. To everyone on this list, I sincerely thank you for your fanatical support and the awesome SharePoint knowledge, and the wisdom you’ve shared with me over the last year.
Stacy Simpkins is a SharePoint engineer with Rackspace, the number-one managed cloud company. He is passionate about SharePoint and loves helping customers understand and get the most out of SharePoint. Prior to Rackspace, Stacy worked with the federal government as an IT specialist and across multiple industries (food, legal, manufacturing, health insurance, and professional services) architecting and developing small, medium, and large SharePoint environments as a consultant. As a consultant, he served as a solutions architect for Magenium Solutions and as a senior consultant for Sogeti LLC. Stacy holds numerous Microsoft Certifications. During his limited free time, he enjoys blogging about SharePoint and other Microsoft products, speaking at user group meetings, and leading the Tampa Bay SharePoint user group.
Samarjeet Singh Tomar is a SharePoint Engineer for the Blue Cross Blue Shield Association (BCBSA), a national federation of 36 independent, community-based and locally operated Blue Cross and Blue Shield companies. He is passionate about SharePoint and .Net Core, Tableau, Angular, D3, Power-BI and helping customers and business in automate and visualization. Prior to BCBSA, Samar worked with various industry domains and service area. He is passionate about learning and implementing different technology and build scalable solution using proven practices. During his limited free time, he enjoys blogging about SharePoint and other technologies, he loves travelling and playing computer games.
3.137.171.121