9 Aralık 2023 Cumartesi

VMware / Reset ESXi Root Password with Host Profile

1. Login to the vCenter WebClient

2. Go to Home and then choose Host Profiles from Operations and Policies Section.

3. Choose > Extract profile from a host.

4. In the Extract Host Profile menu wizard > Select the host you want to update the password for.

5. Name the Host Profile and click Next and then Finish to complete the capture of the host profile template.

 - The new host profile should appear on the Host Profile Objects Field.


6. Right Click the new Host Profile or using the Actions menu choose > Edit Settings

7. In the 'Edit Host Profile' Wizard. Uncheck all boxes.

8. Then using the search filter search for > root

9. Highlight and then select the check box for > root

10. A configurable window will display the root User configuration.

11. At the Password subsection, choose > Fixed password configuration

12. Here you will fill in the new password and confirm it before proceeding.

13. Double check that all other non applicable boxes have no check marks and proceed to Finish .

14. Once the Task Completes highlight the new host profile and from the 'Actions' drop down menu choose > Attach Detach Hosts and Clusters > then Select the host in the wizard.

15. From the Action Menu select Check Host Compliance.

16.  From the Action Menu select Remediate

17. Then Check Host Compliance.

18. Remove the Host Profile from the Host.

- At this time the host password should be successfully upgraded.

https://kb.vmware.com/s/article/68079

VMware / vmfsfilelockinfo

VMware üzerinde lock durumda olan bir sanal makine ya da dosyanın hangi host üzerinde lock durumda olduğunu ve detaylarını aşağıdaki örnek komut ile sorgulayabiliriz.

[root@esxihost:~] vmfsfilelockinfo -p "/vmfs/volumes/ESXI05/VMware vCenter Server 20395099/VMware vCenter Server 20395099.vmx.lck"

vmfsfilelockinfo Version 2.0

Looking for lock owners on "VMware vCenter Server 20395099.vmx.lck"

"VMware vCenter Server 20395099.vmx.lck" is locked in Exclusive mode by host having mac address ['6c:0b:84:b7:f6                                 :e2']

Trying to use information from VMFS Heartbeat


Host owning the lock on file is 92.68.10.26, lockMode : Exclusive

Total time taken : 5.400021321999986 seconds.

12 Eylül 2023 Salı

How to Uninstall McAfee DLP Endpoint

PsExec uygulaması ile McAfee DLP Endpoint kaldırılması.
  1. PsExec uygualaması
  1. Registry Uninstall yolundaki McAfee DLP Endpoint UninstallString değeri
PsExec.exe -s -i cmd
Registry içerisindeki McAfee DLP UninstallString değeri


HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall

Altında McAfee DLP uygulaması bilgilerinden UninstallString değeri

13 Haziran 2023 Salı

NetBackup / Database Manager service: Access is denied. (5)

NetBackup Master Server işletim sistemini Windows 2012'den Windows 2022'ye upgrade ettikten sonra NetBackup Admin Console çalışmasına rağmen backup alınamıyor, farklı hatalar veriyor.

Cannot initiate NetBackup bpdbm. Terminating.

The NetBackup Request Daemon service terminated with the following service-specific error: 

Attempt to use a file handle to an open disk partition for an operation other than raw disk I/O.

NetBackup Snapshot client not licensed.

Bprd hizmeti başlamıyor ve aşağıdaki hatayı gösteriyor:

15:00:40.134 [9400.12584] <4> bprd: VERBOSE changing from 0 to 5
15:00:40.134 [9400.12584] <2> bprd: Created terminate event:"Global\NetBackup Terminate Event, pid: 9400"
15:00:40.134 [9400.12584] <2> bprd: Created suspend event:"Global\NetBackup Suspend Event, pid: 9400"
15:00:40.134 [9400.12584] <2> bprd: INITIATING bprd (VERBOSE = 5): NetBackup 10.1.1 2022121007 on masterserver_name
15:00:40.134 [9400.12584] <2> bprd: Now initializing logging for libcorbaobj
15:00:40.134 [9400.12584] <2> bprd: the request timeout value is 300 seconds
15:00:40.134 [9400.12584] <2> bprd: commandline: "D:\Program Files\Veritas\NetBackup\bin\bprd.exe"
15:00:40.149 [9400.12584] <2> bprd: initiate dbm daemon...
15:00:40.149 [9400.12584] <2> db_dbm_initiate: Could not start the NetBackup Database Manager service: Access is denied. (5)
15:00:40.149 [9400.12584] <2> bprd: cannot start database daemon...exiting
--------------------

NetBackup hizmetlerini durdurduk ve hizmet kullanıcısını Local System ile oturum açılması için düzenledik.

D:\Program Files\Veritas\NetBackup\bin\goodies>nbserviceusercmd.exe -changeUser LocalSystem

NOTE:
- The NetBackup services must be stopped before changing the service user.

Do you want to proceed? (y/n): y

Preparing the list of files and folders, this may take some time.
Revoking permissions for NetBackup services on the following file(s)/folder(s):
D:\Program Files\Veritas\

Revoking permissions on NetBackup registry keys.
Setting 'NT AUTHORITY\SYSTEM' as 'log on as' account for all non-privileged services.
Saving 'NT AUTHORITY\SYSTEM' as service user in the NetBackup configuration.

The service user is successfully changed.

NOTE:
- Start the NetBackup services.
- It may take up to 10 minutes to get the updated value of service user in host DB.
- It is recommended that you take catalog backup immediately.

D:\Program Files\Veritas\NetBackup\bin\goodies>

26 Mart 2023 Pazar

NetBackup / Registering NB with OpsCenter

bash-4.2# pwd

/usr/openv/netbackup/bin/admincmd

bash-4.2# ./nbregopsc -addopscenter servername

Registering opscenter (opscenter servername) with NB

Successfully registered

Registering NB with opscenter (opscenter servername)

Successfully registered


9 Mart 2023 Perşembe

Active Directory / Get-ADUser

Kullanıcıdan SID sorgulama:

Get-ADUser -Identity ad_user | Select-Object -Property Name,SID

SID'den Kullanıcı Sorgulama:

Get-ADUser -Filter * | Select-Object -Property SID,Name | Where-Object -Property SID -like "*-6677"


27 Şubat 2023 Pazartesi

Windows / How to change password in RDP session

How to change password in RDP session
  • Start osk.exe
  • Hold Ctrl + Alt on your physical keyboard, then click on the del key in the on screen keyboard.
  • Minimize the On-Screen Keyboard
  • Click Change a password.

4 Ocak 2023 Çarşamba

NetBackup / How to silence the Disk Alarm on a NetBackup Appliance

How to silence the Disk Alarm on a NetBackup Appliance

Problem
The NetBackup Appliances will sound an audible alarm when a hard drive failure is detected.

Cause
This alarm is controlled by the RAID card installed on the Appliance.

Solution
First verify what is causing the Alarm:
 # /opt/MegaRAID/MegaCli/MegaCli64 -AdpGetProp AlarmDsply -aall

The Alarm can then be silenced with this command: 
# /opt/MegaRAID/MegaCli/MegaCli64 -AdpSetProp AlarmSilence -aall

If desired the Alarm can be disabled completely with:
# /opt/MegaRAID/MegaCli/MegaCli64 -AdpSetProp AlarmDsbl –aall
 
To enable the alarm again: 
# /opt/MegaRAID/MegaCli/MegaCli64 -AdpSetProp  AlarmEnbl –aall

Windows Server IIS üzerinden hizmet veren bir FTP servisine erişmek istediğimizde;  Internet Explorer, FileZilla vb. uygulamalar ile erişim ...