Sunday, June 10, 2018

Distributed cache in SharePoint Farm

During maintainence and operational work there is specific sequence that needs to be followed for Dsitributed cache to disconnect and connect in existing farm.

Below points are noteworthy:

- Stop and then Start the Distributed cache service.

- Change memory allocation
Use-CacheCluster
Get-AFCacheHostConfiguration -ComputerName ComputerName -CachePort "22233"
Update-SPDistributedCacheSize -CacheSizeInMB CacheSize

- Add or remove a server in Distributed Cache Cluster
Add-SPDistributedCacheServiceInstance
Remove-SPDistributedCacheServiceInstance

-  Graceful shutdown of Distributed Cache server
- Finetune
- Repair


Refer:
https://social.technet.microsoft.com/wiki/contents/articles/20348.sharepoint-2013-appfabric-and-distributed-cache-service.aspx

https://docs.microsoft.com/en-us/SharePoint/administration/manage-the-distributed-cache-service#graceful

SharePoint Cache Clearing Process in Farm

Follow the below steps to reset cache in SharePoint Farm:
  • Stop the “SharePoint 2010 Timer” service.
  • Delete all the XML files in the config cache. There are loads of XML files that can be found in the folder “C:\ProgramData\Microsoft\SharePoint\Config\”. Note there seems to only ever be one folder under Config which has a GUID. There are other folders which map onto this folder, but this one seems to be on every environment whereas the other locations may be found in different places on some environments. Therefore deleting the files from this folder should work in all environments.
  • Edit the “cache.ini” file in the same folder that contained the XML files, setting the content to “1″ (without the double-quotes). This indicates that all cache settings need to be refreshed. Eventually this value gets automatically updated to another number when the cache is repopulated.
  • Start the “SharePoint 2010 Timer” service.
Note: Require admin access.

SharePoint Build to Build Update - Install of CU & PU

Review/Prepare this checklist

Plan:
  • Get information about the update that is to be installed
  • Review Documentation of previous Update Installations: Any issues occurred?
  • Review Documentation of previous Update Installations: Task durations
  • Schedule Installation
  • Communication Preparation: 'Maintenance planned' announcement for all audiences
  • Communication to all audiences: Use prepared 'Maintenance planned' announcements
  • Zero Downtime Patching/Side-By-Side Feature for SharePoint 2016
  • Plan Server Patching sequence
  • Have a plan about how to deal with Distributed Cache Servers before rebooting them
Prepare:

  • Create/Update checklists for SharePoint functional tests
  • Communication Preparation: 'Maintenance starting' announcement for all audiences
  • Communication Preparation: 'Maintenance completed' announcement for all audiences
  • Communication Preparation: 'Maintenance delay' announcement for all audiences
  • Create PowerShell Scripts for Content Database Upgrade
  • Download Update Binaries
  • Prepare SharePoint Binary Installation Script
  • Copy binaries on all farm servers
  • Verify Content quality using Test-SPContentDatabase
  • Reset SharePoint Trace log Level to Default (if a custom level is applied)
  • Review SharePoint Farm Backup Concept
  • Verify SharePoint Farm Documentation is up to date
  • Use 3rd Party tools to check Farm Health
  • Use Search Health Reports to check Health of SharePoint Search

Saturday, June 9, 2018

Network Basics


DNS Server: Assigning Host Name to IP-address.

DHCP: Dynamic Host Configuration protocol for different configuration setting, automatically assigning IP address based on Broadcasting.

DHCP-server, which will assign IP-addresses, and a DHCP-client on your device, which will request for an address. At home, the DHCP-server is usually located in router

NAT: Network Address translation is a mechanism of resolving IP address

VPN: Virtual private network

LAN: Local area Network – Group of computers in same location.

WAN: Wide area network –  Two of more Lan network dispersed in different geographical location.

Port: Logical connection to IP address which acts as end point.ex: port 80 for HTTP
IP address: ipconfig/all

Bridge: Connect 2 LAN

Router: Device to translate data packet over a network or LAN

Switch: Filter and forward data packets

DNS: Translate domain name into IP address

NTFS: Uses windows OS for storing & retrieving files on hard disk.

For shares you should do the following
1) Everyone - Read  (optional not really needed but a nice just in case)
2) Authenticated Users - Change
3) Local Administators - Full Control
4) File Strucutre Administrators - Full Control

IIS: 8 with WS 2012, VDI Log Files, Port, IIS Manager, appcmd tool
Application, Web, Machine, Site & App web.config
·        C:\Windows\System32\inetsrv
AppCmd (command) (object-type) <identifier> </parameter1:value1 ...>
·        AppCmd.exe /? start, stop, list, add, delete, and set.

Wednesday, June 6, 2018

Update User Profile Email Address through Powershell

You may come up with requirement to update User Email address in SharePoint, you can use below script to do so:

$user = Get-SPUser -Identity <domain\user-id> -Web <”Web Application URL”>
$user | Select UserLogin,DisplayName,Email

Set-SPUser -Identity <domain\userId> -Email <email-id> -Web <”Web Application URL”>

Example:
$user = Get-SPUser -Identity “corp\mnj” -Web http://contoso.com:1111/
$user | Select UserLogin,DisplayName,Email

Set-SPUser -Identity “corp\mnj” -Email “mnj.plwl@contoso.com” -Web http://contoso.com:1111/

Sunday, May 27, 2018

APP Configuration

Steps:

- Create Forward Lookup Zone- Domain Name and Cnamne in DNS for app domain
- Verify Domain name and ping in netwrok.
-  Enable Microsoft SharePoint Foundation Subscription setting services, App management services
- Navigate to App settings & configure app URL

Refer:
http://www.enjoysharepoint.com/Articles/Details/configure-app-environment-and-create-a-app-in-sharepoint-server-2013-21894.aspx

Thursday, May 10, 2018

Office 365 Business Plans

Microsoft Offering -SaaS- Office365 comes up with different subscription associated with each subscription set of features.

Naming few are E1,E3,O365 Proplus, E5 plan deatiled of this subscription can be referred in below link provided.

https://products.office.com/en-in/business/compare-more-office-365-for-business-plans

Distributed cache in SharePoint Farm

During maintainence and operational work there is specific sequence that needs to be followed for Dsitributed cache to disconnect and conne...