Validation of Windows user
This topic provides instructions about how to validate a Windows local and domain users. If the validations for the user fail, see Troubleshooting.
Validation of Windows user for BMC PATROL for Microsoft SQL Server version 9.6.12 and later. Click here to expand.
A Windows user can either be a domain or local user. Windows user must be in FQDN format.
- For domain user: domain_name\user_name
- For local user: local_machine_name\user_name
Note
BMC recommends to use domain user for a cluster environment. If a user is defined on all possible nodes of the cluster environment, a local user can serve as a Windows user.
If the MS SQL Server login field is left blank, then the Windows user will serve to connect the MS SQL Server. In this case Windows user must pass all validation steps as described in Validation for integrated user section.
Validation
- Open command prompt from <PATROL_HOME>\mssql\x64 directory.
- Type the following command:
SQLCollector.exe -diag check_host_conn - Enter the hostname or IP of the host you want to check
- Remote host
- Enter Domain\User to use for host connectivity test
Enter password
Success scenario outputMessage displayed
Scenario
Pinging host sqlhost...success
Indicates a successful ping
Credentials are required for remote host sqlhost
Indicates that the host is a remote host and PATROL will use WMI technology for connection
Connecting to host... success
Indicates the connection has been established successfully
List of installed Microsoft SQL Server instances:
Lists all available Microsoft SQL server instances on a host discovered by PATROL after searching the host’s registry
Failed scenario output
Successful ping to remote host, but connection failed to the remote host using the provided credentials.
Local host
The logged in user is used for the testing.
Success scenario outputMessage displayed
Scenario
Pinging host vw-aus-bpm-qa11... success
Indicates a successful ping
Using user VW-AUS-BPM-QA11\Administrator for localhost
Indicates that the host is a local host and PATROL will use Windows Login methods to login to the local machine
Connecting to host vw-aus-bpm-qa11... success
Indicates the connection has been established successfully
List of installed Microsoft SQL Server instances:
Lists all available Microsoft SQL server instances on a host discovered by PATROL after searching the host’s registry
Failed scenario output
Successful ping to local host, connection has been established successfully but no Microsoft SQL server instances discovered on host
- Remote host
- To execute another query enter ‘y’ , enter ‘n’ to continue.
- To run another test type ‘y’, type ‘n’ to quit.
Note
To use another user for localhost test, run SQLCollector.exe using the RUNAS command:
Runas /user:<domain_name>\<user_name> "SQLCollector.exe -diag check_host_conn"
Validation of Windows user for BMC PATROL for Microsoft SQL Server version 9.6.11 and before. Click here to expand.
A Windows user can either be a domain or local user. Windows user must be in FQDN format.
- For domain user: domain_name\user_name
- For local user: local_machine_name\user_name
Note
BMC recommends to use domain user for a cluster environment.
If a user is defined on all possible nodes of the cluster environment, a local user can serve as a Windows user.
If the MS SQL Server login field is left blank, then the Windows user will serve to connect the MS SQL Server. In this case Windows user must pass all validation steps as described in Validation for integrated user section.
Validation
- Open command prompt from <PATROL_HOME>\mssql\x64 directory.
- Type the following command:
SQLCollector.exe -diag check_host_conn - Enter the properties of the host you want to check
- The host connection status and available MS SQL Server instances on host are displayed
Success scenario output for remote host:
Message displayed
Scenario
Ping to host vw-tlv-ngp-dv13... successIndicates a successful ping
Host vw-tlv-ngp-dv13 is remote hostIndicates that the host is a remote host and PATROL will use WMI technology for connection
trying to establish WMI connection... successIndicates the connection has been established successfully
List of installed SQL instances:Lists all available MS SQL server instances on host discovered by PATROL after searching the host’s registry
Check host connection successIndicates user approval. The tested user can be used as a Windows user on this host
Success scenario output for local host:
Message displayed
Scenario
Host 127.0.0.1 is local hostIndicates that the host is a local host and PATROL will use Windows Login methods to login into the local machine
trying to logon locally... successIndicates that the login is successful
Note
All other messages have the same meaning as for the remote host.
Failed scenario output:
If the validation of a user fails, the user cannot be used as Windows user on tested host till the issue(s) are resolved and user succeeds the validation