21 Aralık 2018 Cuma

NetBackup / bpexpdate -recalculate

C:\Program Files\Veritas\NetBackup\bin\admincmd> altından

-ret 3 ile backup image saklam asüresini 1 ay olarak değiştiebiliriz.

bpexpdate -recalculate -backupid backup_image_idsi -ret 3

Retention Periods
Level Days Label
0 7 1 week
1 14 2 weeks
2 21 3 weeks
3 31 1 month
4 62 2 months
5 93 3 months
6 186 6 months
7 279 9 months
8 365 1 year
9 24855 infinity
10 24855 infinity

29 Kasım 2018 Perşembe

NetBackup / Sybase ASE backup

NetBackup ile Sybase ASE db backup için aşağıdaki adımlar uygulanabilir.

1. Sunucuya NetBackup Client kurulumu yapılmalı

2. NetBackup Client Service yetkili kullanici ile çalismali

3. C:\Program Files\Veritas\NetBackup\DbExt\sybase altindaki libsybackup.dll  dosyası X:\sybase\GAD\ASE-16_0\lib altina kopyalanmalı

4. C:\Program Files\Veritas\NetBackup\DbExt\sybase\samples klasöründeki script düzenlenmeli, script içerisine sistem bilgileri girilmeli

5. script satırı kısaltılmalı, uzun olduğunda hata verebiliyor

echo dump DATABASE %DATABASE_NAME% to "sybackup::-POL TR_ALT_ASE_TALTPORTAL_POP -STAT_FILE %SYB_STATUS_FILE%" > "%SYB_INPUT_FILE%"

echo dump TRANSACTION %DATABASE_NAME% to "sybackup::-POL TR_ALT_ASE_TALTPORTAL_POP_LOG -STAT_FILE %SYB_STATUS_FILE%" > "%SYB_INPUT_FILE%"

6. script user pass bilgileri ile güncellenmeli, -X paremetresi eklenmeli

set CMD_LINE="%SYBASE%%OCS_QUAL%\bin\isql" -Usapsa -Pparola -I"%SYBASE%\ini\sql.ini" -S%SYBSERVER% -X -i "%SYB_INPUT_FILE%"

7. (5449) The script is not approved for execution hatasi ile ilgili olarak, asagidaki komutlari client üzerinde çalıştırılmalı
Scriptin c:\backup_scripts altında çalıştığı düşünülüyor

C:\Program Files\Veritas\NetBackup\bin>nbsetconfig.exe
nbsetconfig> DB_SCRIPT_PATH=c:\backup_scripts
nbsetconfig> ^Z enter diyoruz

8. DB ve LOG backup için ayrı script ve backup politikası tanımlanması daha kolay olabilir

DATABASE Backup için:
C:\backup_scripts\sybase_db_backup.cmd

TRANSACTION log backup için:
C:\backup_scripts\sybase_log_backup.cmd

--- ASE backupları için aşağıdaki log klasörleri kontrol edilebilir.
C:\Program Files\Veritas\NetBackup\logs\bphdb
C:\Program Files\Veritas\NetBackup\logs\sybackup


--- Sybase backup listelemek için aşağıdaki komut çalıştırılabilir
C:\Program Files\Veritas\NetBackup\bin>bplist.exe -C client.hayat.com.tr -t 7 -R /

--- Backup policy adımları:




MS-SQL / Recycle SQL Server Error Log file without restarting SQL Server Service

Recycle SQL Server error log file without restarting SQL Server Service

Use [master];
GOSP_CYCLE_ERRORLOGGO

USE [master];
GO
DBCC ERRORLOG
GO

6 Temmuz 2018 Cuma

IBM Storwize / satask restartservice

Syntax
Read syntax diagramSkip visual syntax diagram>>- satask -- restartservice -- -service -- service_name -- panel_name-><
Parameters
sataskSystem Administrator task; service commands that are only used in specific circumstances.
-service service_nameSpecifies the name of the service that you want to restart. The following services are supported:
sshd               Secure Shell Daemon
slpd               Service Location Protocol Daemon
easy               Easy Tier®
tomcat            Web server
cimom            CIMOM
panel_name   Identifies the node being serviced.


Description
When directed to do so by IBM® support, use this command to restart a named service.
An invocation example
satask restartservice -service tomcat
satask restartservice -service cimom


13 Haziran 2018 Çarşamba

MS-SQL / Cannot find MSSQLSERVER

If you cannot find the virtual account of your SQL Server instance try

searching for: NT Service\MSSQL

30 Mayıs 2018 Çarşamba

Sybase / Adaptive Server requires encryption of the login password on the network


Adaptive Server requires encryption of the login password on the network


The below errors are seen when connecting to a Sybase database when "AuthenticationMethod=1" is specified in the DSN.


This is seen when "sp_configure 'net password encryption reqd',2" is run on the Sybase Server. 

With "sp_configure 'net password encryption reqd',1" set, no errors are received.


https://knowledgebase.progress.com/articles/Article/000053483

14 Mayıs 2018 Pazartesi

Upgrade Windows 2012 R2 evaluation to full version

C:\Windows\system32>DISM /online /Get-CurrentEdition

Deployment Image Servicing and Management tool
Version: 6.3.9600.17031

Image Version: 6.3.9600.17031

Current edition is:

Current Edition : ServerStandardEval

The operation completed successfully.

C:\Windows\system32>DISM /online /Get-TargetEditions

Deployment Image Servicing and Management tool
Version: 6.3.9600.17031

Image Version: 6.3.9600.17031

Editions that can be upgraded to:

Target Edition : ServerStandard
Target Edition : ServerDatacenter

The operation completed successfully.

C:\Windows\system32>DISM /online /Set-Edition:ServerStandard /ProductKey:XXXXX /AcceptEula

Deployment Image Servicing and Management tool
Version: 6.3.9600.17031

Image Version: 6.3.9600.17031

Starting to update components...
Starting to install product key...
Finished installing product key.

Removing package Microsoft-Windows-ServerStandardEvalEdition~31bf3856ad364e35~amd64~~6.3.9600.16384
[==========================100.0%==========================]
Finished updating components.

Starting to apply edition-specific settings...
Finished applying edition-specific settings.

The operation completed successfully.
Restart Windows to complete this operation.

Do you want to restart the computer now? (Y/N)

18 Nisan 2018 Çarşamba

VMware / upgrade the vSphere Replication appliance

Upgrade the vSphere Replication appliance by using a downloadable ISO image

Prerequisites
  • Upgrade the vCenter Server instance that vSphere Replication extends.
  • Download the  VMware-vSphere_Replication-6.5.x.x-build_number.iso image from the vSphere Downloads page. Copy the ISO image file to a datastore that is accessible from the vCenter Server instance that you use with vSphere Replication.
  • If the vSphere Replication version that you run is not supported for direct upgrade to vSphere Replication 6.5, upgrade your vSphere Replication instance to a supported version. For example, to upgrade vSphere Replication 5.5 to 6.5, you must first upgrade 5.5 to 5.8.0.2, and then upgrade 5.8.0.2 to 6.1. See the interoperability matrix at http://www.vmware.com/resources/compatibility/sim/interop_matrix.php for solution upgrade paths for vSphere Replication.
  • Shut down and power off the vSphere Replication virtual machine.
Procedure
  1. Right-click the vSphere Replication virtual machine and select Edit Settings.
  2. If you are upgrading a vSphere Replication Server appliance, reconfigure the virtual machine to increase its memory from 512 MB to 716 MB RAM.
  3. On the Virtual Hardware tab, select CD/DVD Drive > Datastore ISO File.
  4. Navigate to the ISO image in the datastore.
  5. For File Type, select ISO Image and click OK.
  6. Select the option to connect at power on and follow the prompts to add the CD/DVD drive to the vSphere Replication virtual machine.
  7. Power on the vSphere Replication virtual machine.
  8. In a Web browser, log in to the virtual appliance management interface (VAMI).
The URL for the VAMI is https://vr_appliance_address:5480.
  1. Click the Update tab.
  2. Click Settings, select Use CDROM Updates, and click Save Settings.
  3. Click Status and click Check Updates.
The appliance version appears in the list of available updates.
  1. Click Install Updates and click OK.















  1. After the updates install, click the System tab and click Reboot.
  2. After the appliance reboots, start the console of the vSphere Replication virtual machine to monitor the process.
The vSphere Replication appliance reboots two more times for the upgrade procedure to complete.
  1. After the vSphere Replication appliance reboots, log in to the VAMI and repeat the steps to register the vSphere Replication appliance with vCenter Single Sign-On.
This registers the vSphere Replication appliance in the Lookup Service and SSO or updates an existing vSphere Replication registration.
  1. Log out of the vSphere Web Client, clear the browser cache, and log in again to see the upgraded appliance.

VMware / reset root password of vSphere Replication

Reset the root password of vSphere Replication appliance 6.5 (2150038)

Reboot the vSphere Replication appliance.In the Grub screen, press e to edit the current kernel parameters.
Use arrow key to scroll down to this line:
linux /vmlinuz-3.12.62-60 ......... . . . . . . silent quiet showopts
Add this line at the end:   init=/bin/bashExample: linux /vmlinuz-3.12.62-60 ..... . . . . . . silent quiet showopts init=/bin/bash"




Press F10 to reboot and vSphere replication appliance will reboot at run level 1.
Mount root filesystem as read write by running this command: mount -o remount,rw /
Run this command to reset the root password: passwd rootAfter the password is reset, reboot the appliance.

Note: If you do not mount root (/) directory as read write (rw) you will receive this error:
passwd: Authentication token manipulation errorpasswd: password unchanged

16 Nisan 2018 Pazartesi

Hyper-V / Virtual Machine failed to start.

Virtual Machine ' failed to start.

Virtual Machine failed to initialize. (Virtual machine ID EC3DE3E5-F285-4E02-9E85-D325DC6E4212)

Cluster resource 'Virtual Machine ' of type 'Virtual Machine' in clustered role '' failed. The error code was '0x42b' ('The process terminated unexpectedly.').

Based on the failure policies for the resource and role, the cluster service may try to bring the resource online on this node or move the group to another node of the cluster and then restart it.  Check the resource and group state using Failover Cluster Manager or the Get-ClusterResource Windows PowerShell cmdlet.



To disable this fix
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" /v FeatureSettingsOverride /t REG_DWORD /d 3 /f
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" /v FeatureSettingsOverrideMask /t REG_DWORD /d 3 /f

Restart the server for the changes to take effect.

Then enable the fix
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" /v FeatureSettingsOverride /t REG_DWORD /d 0 /f

reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" /v FeatureSettingsOverrideMask /t REG_DWORD /d 3 /f

reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Virtualization" /v MinVmVersionForCpuBasedMitigations /t REG_SZ /d "1.0" /f

Restart the server for the changes to take effect.


6 Nisan 2018 Cuma

Windows / WSUS Failure configuring Windows updates

Failure configuring Windows updates Reverting changes










To alleviate this problem on Windows 8 and Windows Server 2012 based systems, please export and delete the following registry value, reboot your system and then re-attempt the update: 

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WINEVT\Publishers\{e7ef96be-969f-414f-97d7-3ddb7b558ccc}

https://social.technet.microsoft.com/Forums/windowsserver/en-US/70219bcb-36a8-466e-900b-cbf390db38d2/failure-configuring-windows-updates-reverting-changes-postreboot-status-0x800f0922?forum=winserver8gen

21 Mart 2018 Çarşamba

Install Loopback Adapter

In the Device Manager window, 

Right-click the server name and select Add legacy hardware

Select Install the hardware that I manually select from a list (Advanced) and click Next.


Under Common hardware types, select Network adapters and click Next.

On the Select Network Adapter screen, select Microsoft select Microsoft KM-TEST Loopback Adapter



EMC DD / Exchange restore

EMC Data Domain Exchange restore


  • Mount edilecek DB Active Directory kullanıcının homeMDB bilgisinden bulunur
  • Exchange sunucuda aşağıdaki komut ile block based backuplar backup olarak tanımlanır$backup = Get-ExchangeBackup -BackupviaBlockBasedBackup
Windows PowerShell
Copyright (C) 2012 Microsoft Corporation. All rights reserved.
PS C:\Users\username> $backup = Get-ExchangeBackup -BackupviaBlockBasedBackup
cmdlet Get-ExchangeBackup at command pipeline position 1
Supply values for the following parameters:
(Type !? for Help.)
ClientName:
DataDomainHost:
DataDomainHostPath:
DataDomainUser:
  • Aşağıdaki komut ile tüm backuplar listelenir
    $Backup
  • Son backup 0 numaradır, buna göre restore edilecek DB numarası bulunur
  • Aşağıdaki komut ile DB mount edilir
    Mount-ExchangeBackup -Backup $Backup[1222]
  • EMC ItemPoint for Microsoft Exchange Server uygulaması ile mount edilen DB açılır
  • Item recovery için sunucu üzerinde Outlook uygulamasının da kurulu olması gerekmektedir

15 Mart 2018 Perşembe

EMC DD / config file

Windows sistemlerinde ddconfig.cfg dosyası düzenlenir

Linux sistemlerinde .utl dosyası düzenlenir

CLIENT=sql1.domain.com.tr
LOCKBOX_PATH="C:\Program Files\DPSAPPS\common\lockbox"
DDBOOST_USER=ddboostuser
DEVICE_HOST=dd1
DEVICE_PATH=/sql
DDBOOST_FC=TRUE
DEVICE_FC_SERVICE=dd1

14 Mart 2018 Çarşamba

EMC DD / snapshot

snapshot list mtree *

EMC DD / Remove-ExchangeBackup

Remove-ExchangeBackup -BackupID msapp_bbb:1517460816 -DataDomainHost dd1 -DataDomainUser ddboostuser -DataDomainPath /exchange1 -ClientName dag.domain.com.tr -Confirm:$false

EMC DD / Get-ExchangeBackup last day

Get-ExchangeBackup -BackupViaBlockBasedBackup -DataDomainHost dd1 -DataDomainUser ddboostuser -DataDomainPath /exchange1 -ClientName dag.domain.com.tr -After (Get-Date).AddDays(-1)

EMC DD / Get-ExchangeBackup before 15 days

Get-ExchangeBackup -BackupViaBlockBasedBackup -DataDomainHost dd1 -DataDomainUser ddboostuser -DataDomainPath /exchange1 -ClientName dag.domain.com.tr -Before (Get-Date).AddDays(-15)

12 Mart 2018 Pazartesi

SSL / DigiCert Certificate Utility for Windows

DigiCert Certificate Utility for Windows

Certificate Management & Troubleshooting Made Easy

The free DigiCert Certificate Utility for Windows is an indispensable tool for administrators and a must-have for anyone that uses SSL Certificates for Websites and servers or Code Signing Certificates for trusted software.

https://www.digicert.com/util/

https://www.digicert.com/util/DigiCertUtil.zip



1 Mart 2018 Perşembe

IBM Storwize / lsarraymemberprogress

IBM_Storwize:V3700:superuser>lsarraymemberprogress
mdisk_id mdisk_name member_id drive_id task     new_drive_id progress estimated_completion_time
0        mdisk1     7         20       exchange 9            23       180124172214

20 Şubat 2018 Salı

EMC DD / import sfs_dump data into Excel

Generate and capture the sfs_dump data:

In this section you will need to know how to connect to your Data Domain via a ssh client, and how to configure its ability to log any data which appears on the screen. This log file is not written on the Data Domain, it will be written to the system from which you are running the ssh client (perhaps your laptop). You should ensure there is sufficient space for the log file (which could be around 200 MB for systems with 1 million files).

1.     Login to the DDR from a ssh client
2.     Type system show serialno
3.     Type priv set se
4.     Authenticate using the serial number from Step 2. If your system uses retention-lock compliance then you will need to authenticate using a user with the "security" role first.
5.     Switch on logging within your ssh client, ensure "all session output" is enabled, the output file is named logically and will be placed in a suitable directory where you can find it. For PuTTY, this is under the Session -> Logging tab of the configuration screen. You may need to check the manual if you are using a different ssh client.
6.     Type se sfs_dump -c (you can specify a path if you want to limit to a particular dir or mtree, eg se sfs_dump -c /data/col1/mymtree.)
7.     When the command has completed, switch off logging. If Excel is not installed on the same machine as the log file just created then you will need to copy it across.

Import into Excel:
In this section the previously created log file will be opened inside Excel, and the data imported into a spreadsheet. Excel's "Text Import Wizard" will be configured to split the data into individual columns. Any redundant information above the actual data will be removed.

8.     Start Excel
9.     Open the file created by your ssh client's logging, using File -> Open. You may need to set the dialog to show "All files", depending on the suffix of the log file you created.
10.   Excel will start the "Text Import Wizard"
11.   Choose "Delimited" to describe the data
12.   Scroll through the preview, looking for a line which starts with "namemtimefileidsizeseg_bytes" and note the row number. This line is the header for the sfs_dump data and is the first line we wish to import. Set the "Start import at row" value to this number.
13.   Click "Next"
14.   Ensure the "Tab" delimiter box is ticked and the others are unticked, check the preview to see filenames in the first column, and numbers in the remaining columns. Note: You may need to scroll down a little as the preview starts at the top of the file, rather than the header line set in Step 12. If the preview does not show filenames in the first column, and numbers in the remaining columns then you should click "Back" and follow Steps 11-14 again. If it still doesn't appear correct then you will need to restart from Step 1 - paying particular attention to ensuring that "all session output" is enabled. This is essential to allow the tab characters used in the sfs_dump output to be saved in the log file.
15.   Click "Next"
16.   Click "Finish"
17.   At this point, Excel should contain data in columns A to I. If data is only present in column A, but stretches across the screen, then close Excel and retry from Step 8. If you still see the same result, re-read Step 14 and then restart from Step 1.

Add extra calculated fields:
In this section, extra fields will be added to show various compression values, and to convert the timestamp data into a human readable value. We will also remove any redundant information below the data. When you first enter the formulae in the following steps, the cell will display "#VALUE!" - this is normal and expected.

Firstly, the timestamp conversion.

18.   Copy the following formula and paste into cell J1: =(((B1/1000000000+(-6*3600))/86400)+25569)

a)     Change the -6 in the -6*3600 section to the offset between your timezone and UTC, ie -6 for Central, -5 for Eastern, -8 for Pacific. For timezones East of UTC (ie mainland Europe, India) the offset will be positive (ie 1 for Central Europe). If your timezone has a half hour difference, make sure you include .5 in the value you use.

b)     Secondly, the compression information.  

19.   Copy the following formula and paste into cell K1: =IF(H1=0,0,D1/H1)
20.   Copy the following formula and paste into cell L1: =IF(I1=0,0,H1/I1)
21.   Copy the following formula and paste into cell M1: =K1*L1
22.   Select cell J1, right click, then "format cell", choose your preferred format from the Date selection.
23.   Select cells K1,L1,M1, right click, then "format cell", set to Number with one decimal place

Next, we are going to copy the formulae we have just added, to every row of data, using some useful shortcuts.

24.   Select cells J1,K1,L1,M1, right click, select copy
25.   Scroll down to the bottom of the data using the vertical scrollbar on the right (which is quicker than using the arrow keys.)  Look for the last row which contains data in columns A through to I. Take a note of the row number. There should be a blank row below this one, followed by some summary information.  
26.   Select the cells in columns J,K,L,M in the row for which you noted its row number, then scroll back to the top of the sheet (drag the vertical slider to save time), hold down shift and select cells J2,K2,L2,M2. Now press enter so that the values are pasted all the way down. Now we are going to remove any redundant rows below the data.
27.   Return to the bottom of the data again, to the row number recorded in step 25.
28.   Select any entire row underneath this row which contains data, and delete it.

Add remaining headers and filtering functionality:
In this section, we will name the calculated columns we added, and enable Excel's powerful filtering and sorting ability.

29.   Go to cell J1, change this to read "Last written date"
30.   Change cell K1 to read "Global compression"
31.   Change cell L1 to read "Local compression"
32.   Change cell M1 to read "Overall compression"
33.   Double click on the divider between the headers for column A and B to resize column A to the widest filename.
34.   Select cell A1.  Select "Format as Table" from the "Home" ribbon menu. Click on your preferred style - any from the 2nd line under the "Medium" heading have been found to be easy to read. Ensure "My table has headers" is ticked, then click "OK" in the "Format as Table" dialog.
35.   "Save as", ensuring the type is set to "Excel Workbook (*.xlsx) 

Information on the columns:

·         A contains filename
·         D is the original size of the file
·         H is the size after global compression
·         I is the size after global and local compression
·         J contains the datestamp for when the file was last written..
·         K contains the global compression or dedupe
·         L contains the local compression
·         M contains the overall compression for the file

All filesizes are in bytes.

You can now use Excel to filter/sort as required to report on your data.
·         For example, to show only files within the MTree "/data/col1/backup" which are over 30 days old:
·         Click on the down arrow in the "Name" header, select "Text Filters", then "Begins With" and type "/data/col1/backup/" into the box. The trailing slash is important.  Click "OK"
·         Click on the down arrow in the "Last Written Date" Header", select "Date Filters", then "Before".  Use the date picker on the right of the dialog to select a date 30 days ago. Click "OK"
·         The status bar at the bottom will show how many rows match this selection.
Notes:
This procedure relies on the Data Domain's sfs_dump command. The information returned from this command includes a timestamp of the file (in a non-human readable format) and internal information related to deduplication. This information is only stored when then the file is first written to the Data Domain, hence it tends to become less accurate as other data is written to/deleted from the Data Domain.

Please note this particular procedure uses the "-c" option of sfs_dump, which outputs in columns which are separated by tabs. It is essential that the tab characters present in the output are saved in the logging file, otherwise Excel will not be able to separate the fields correctly. There are other output formats for sfs_dump, and EMC Support may have requested these in other situations.

The instructions given assume a reasonable knowledge of Excel, but may be translated into other spreadsheet software.
Modern versions of Excel allow a large number of rows (bear in mind that each file on your system will require a row in the spreadsheet.)
If your system has too many files for your version of Excel you can try running the procedure once for each Mtree, so you will have multiple spreadsheets for the system.


How to import sfs_dump data into Excel?

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