Showing posts with label Windows Server. Show all posts
Showing posts with label Windows Server. Show all posts

Wednesday, 18 May 2016

Error enabling Operations Manager Audit Collection Service with SCOM 2016 TP4

Hi all,

If you want to install Operations Manager Audit Collection Service and the Audit collection services Collector Setup Wizard finishes with the following error:
start adtserver service: failure 0x00002098
...should it mean that you have some problems with the SPNs(Service Principal Name). If you check the Event Viewer,  you will find the following error registered:
EventID: 7023
Source: Service Control Manager
Message: The Operations Manager Audit Collection Service service terminated with the following error: Insufficient access rights to perform the operation.
Then the solution it's easy, you need to register the required SPN in order the service can start correctly:

Management Server:

  • AdtServer/FQDN DOMAIN\account
  • AdtServer/NetBios DOMAIN\account
  • MSOMHSvc/FQDN DOMAIN\account
  • MSOMHSvc/NetBios DOMAIN\account
Database Server:
  • MSSQLSvc/FQDN:1433 DOMAIN\account
  • MSSQLSvc/FQDN DOMAIN\account
  • MSSQLSvc/NetBios DOMAIN\account
Ok...let's go to see a real case...

Suppose you has a management server named "ScomServer", database server "RandomDBServer" and a domain named "TheXdom.com". Then the "Operations Manager Audit Collection Service" is running under "Network Service" account and the "SQL Server" service running under "TheXdom\sqlEngineAcc". Then you need to run in a elevated command prompt:

  1. setspn -S AdtServer/ScomServer.TheXdom.com TheXdom\ScomServer$
  2. setspn -S AdtServer/ScomServer TheXdom\ScomServer$
  3. setspn -S MSOMHSvc/ScomServer.TheXdom.com TheXdom\ScomServer$
  4. setspn -S MSOMHSvc/ScomServer TheXdom\ScomServer$
  5. setspn -S MSSQLSvc/RandomDBServer.TheXdom.com TheXdom\sqlEngineAcc
  6. setspn -S MSSQLSvc/RandomDBServer TheXdom\sqlEngineAcc
Don't worry if your environment still have one of these SPN, the -S parameter checks it for you!


If these steps cannot solve your problem, perhaps you need to check this Microsoft KB

Hope it helps!

Saturday, 21 March 2015

explorer.exe and Print Management suddenly stops in a Citrix environment

Hi all!

Some weeks ago I hit my head with a easy but annoying error: When a user opens a explorer.exe or Print Management published application in a Citrix environment, the application suddenly stops/disappear with no error message. After a time troubleshooting, it seems to appear a hidden error message: Server execution failed


In spite of we have two different errors: explorer.exe and Print Management, the error is the same because Print Management application runs explorer.exe with a parameter.

Environment:

Citrix 7.5 running Windows Server 2008 R2.

The problem:

The error appears because Windows Explorer looks for "Personal" folder specified in the registry hive:

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders\

If the folder does not exist, fails.


Resolution:

The problem was detected and solved by Microsoft with the KB2444677

If you cannot apply the KB article(restart needed, or others...) you can do two actions:
  1. Change the folder path for an existing
  2. Create the specified folder

Hope it helps!


Monday, 13 October 2014

Error starting cluster service in a Windows 2008 R2 Cluster

This post born after hours trying to resolve a Cluster issue, and without finding nothing clear in internet!

The problem:
Suddenly the second node of a Windows 2008 R2 Cluster, gets down and there are no way to start it up! The Event Viewer shows the following errors in System log:

Source: Service Control Manager
Event Id:7031
The Cluster Service service terminated unexpectedly. It has done this 1 time(s). The following corrective action will be taken in 60000 milliseconds: Restart Service
Source: Microsoft-Windows-FailoverClustering
Event Id:1069
Cluster resource 'Cluster Disk 1' in clustered service or application 'Cluster group' failed.
Source: Microsoft-Windows-FailoverClustering
Event Id:1573
Node 'node_name' failed to form a cluster. This was because the witness was not accessible. Please ensure that the witness resource is online and available.

Solution:
I tried to restart the server and to stop and start the cluster service with no success.

After that, I checked out the iSCSI configuration in the server and in the SAN, and I found some misconfigurations. After solving it, the problem continues, perhaps this is the origin of the problem, but not all is solved.

My third step is to run cluster service with log using the command:
cluster log /g
You can find the result in %windir%\cluster\reports. I could not see anything useful and went to revise every key of cluster in the regedit configuration at HKLM/Cluster, following some errors found in cluster service log....again no success.

Finally I decide to remove the node from the cluster and rejoin, and SOLVED. Some times its better to start from the end.

To remove a failed node from a cluster:

  1. Run this command from the failed node in elevated Power Shell:
    1. Import-Module FailoverClusters
    2. Clear-clusternode
  2. From the cluster administration MMC > right click on failed server, under nodes > More Actions > Evict
After step 2, you can add the node again into the cluster, and check Event Viewer for additional bugs.

Hope it helps!



Friday, 9 October 2009

Instalación SCE 2010 en 8 pasos

Realmente el anuncio de una mejora sustancial en los asistentes de instalación y configuración es más que cierta. Para poder verlo en persona y a la vez ilustrar una sencilla instalación de SCE 2010, aquí van 8 pasos para instalar System Center Essentials 2010!

Paso 1: Pequeñezes

Introducir Nombre y Organización.



Paso 2: Componentes


Seleccionar componentes a instalar, podemos decidir si instalar soporte para Reporting y Virtualization Management
  • Reporting nos ayuda a analizar mejor nuestro entorno de IT, permitiéndonos ejecutar reports históricos de todo tipo, siempre relacionados con los diferentes management pack (MP) que tengamos instalados.
  • Virtualization Management sólo es útil en el caso de tener un entorno con máquinas virtuales. En caso de tenerlo nos permite moverlas entre los diferentes host físicos, crear nuevas, etc. 

 Paso 3: Control de prerequisitos


Análisis de si nuestra máquina cumple todos los prerequisitos necesarios para continuar la instalación.
En SCE 2010 no nos permite avanzar si nuestra memoria no es exactamente superior a 2.000 MB.


Paso 4: Instalar prerequisitos necesarios


SQL Server es un prerequisito que podemos solucionar de dos formas diferentes:
  • SQL Server Express: Viene de serie en el paquete SCE 2010 y nos permite instalar SCE sin necesidad de comprar una licencia de SQL Server. Claro está que esto tiene sus consecuencias, está limitado a:
    • 1 CPU físico con los núcleos que se quiera
    • 1 GB memoria RAM, si se tiene más no la va a usar
    • 4GB de datos, entre ficheros .mdf y ndf.

      • El log de transacciones no tiene límite 
      • El contenido FILESTREAM (novedad de 2008), tampoco se tiene en cuenta.
    • Integración con Visual Studio
    • Subconjunto de funcionalidades de Reporting Services
  •  SQL Server 2008: No viene de série en el paquete, lo tenemos que tener instalado en nuestra empresa. Las versiones soportadas son:
    • SQL Server 2008 Express Edition, x86 y x64, con Service Pack 1 (SP1) o posterior
    • SQL Server 2008 Workgroup Edition, x86 y x64, con SP1 o posterior
    • SQL Server 2008 Standard Edition, x86 y x64, con SP1 o posterior
    • SQL Server 2008 Enterprise Edition, x86 y x64, con SP1 o posterior


Paso 5: Ubicación de archivos y Windows Update


Normalmente, cuando instalamos cualquier programa, no suele preocuparnos la ubicación de la instalación y los archivos derivados. En System Center, cómo en tantos otros, es importante ser previsores en 2 aspectos:
  • Ubicación de las bases de datos: Se tiene que tener en cuenta tanto el espacio disponible, cómo el rendimiento.
    • Espacio disponible: Las bases de datos de System Center crecen a medida que pasan los días, aumentan las máquinas monitorizadas y agregamos management packs. También tenemos que tener en cuenta que los transaction log suelen crecer bastante rápido. Por lo tanto atent@s cuando asignamos las unidades que van a almacenar dichas bases de datos.
  • Ubicación de los archivos de Windows Update: Por lo que respeta a la gestión centralizada de las actualizaciones, tenemos dos opciones.
    1. Que nuestro SCE se descargue las actualizaciones(en caso de estar aprobadas) para posteriormente ponerlas a disposición de nuestro parque de PC's y servidores.
      • En este caso tendremos que escoger el directorio compartido dónde se van a guardar.
    2. Que nuestro SCE sólo gestione la aprobación de las actualizaciones y cada máquina se descargue las actualizaciones del sitio de Windows Update.

Paso 6: Ubicación de la Librería de 'VMM'


En este paso se nos pide que seleccionemos que directorio se va a usar para guardar las plantillas de las máquinas virtuales, los discos duros de las máquinas virtuales, imágenes de los distintos programas, etc.


Paso 7: Credenciales de la cuenta de gestión


SCE 2010 necesita una cuenta de dominio con privilegios de Administrador para realizar ciertas acciones administrativas.

IMPORTANTE: No usar la cuenta de administrador local, ni de administrador de dominio, ni nuestro usuario con privilegios de administrador.
Se tiene que usar una cuenta de servicio, la cual se crea únicamente para autenticar cierto servicio de cierta aplicación. Esta se configura de manera que su clave no caduca ni se puede cambiar por un usuario que se autentique con la misma cuenta.

 
Paso 8:


En esta pantalla se nos pide que seleccionemos si quieren auto enviar los errores, datos de operaciones o bien participar en el programa: Customer Experience Improvement. Lo dejo a su libre elección...



Finalmente se muestra el resultado de la configuración elegida....


..y empieza la instalación...




Espero que este post les haya servido para realizar una mejor instalación!!

Thursday, 24 September 2009

Disponible la Beta 1 de System Center Essentials 2010


Microsoft ha anunciado el lanzamiento de la primera beta de System Center Essentials 2010 (SCE 2010).

Para quien no esté al día del producto, SCE 2010, es un producto orientado a la pequeña y mediana empresa que permite una gestión unificada de nuestro entorno de IT, tanto a nivel físico cómo virtual. Permite gestionar servidores, pc's, distribución de software automática, controlar Windows Update de manera centralizada, etc.

Algunas de las novedades anunciadas hasta el momento son:
  • Gestión de nuestro entorno virtual: Gracias a la integración con VMM 2008 R2, permitiendo crear nuevos servidores virtuales basados en templates y live-migration
  • Licenciamiento: Ajuste de los límites para permitir gestionar el entorno virtual
  • Setup mejorado: Instalación más fácil
  • Agrupación de máquinas más flexible
  • Distribución de Software: Más criterios de distribución
Enlaces de interés:

Descargar la Beta 1(en inglés)
Descargar la Guía de Operaciones(en inglés)
Blog del equipo de SCE(en inglés)
Blog del equipo de System Center(en inglés)