25 Nisan 2017 Salı

Extract tar.gz file

Extract tar.gz file

tar -xzf your-software.tar.gz

Extract tar file


tar -xvf your-software.tar

Copying files between linux systems with scp

Copying files between linux systems with scp

scp ile klasör yapısını copyalama

scp -r  kaynak adres    hedef adres

scp -r root@192.168.2.93:/tmp/NetBackup/ /tmp

21 Nisan 2017 Cuma

Extend lvm swap volume

To extend an LVM2 swap logical volume 

(assuming /dev/VolGroup00/LogVol01 is the volume you want to extend):
  1. Disable swapping for the associated logical volume:
    # swapoff -v /dev/VolGroup00/LogVol01
    
  2. Resize the LVM2 logical volume by 256 MB:
    # lvm lvresize /dev/VolGroup00/LogVol01 -L +256M
    
  3. Format the new swap space:
    # mkswap /dev/VolGroup00/LogVol01
    
  4. Enable the extended logical volume:
    # swapon -va




18 Mart 2017 Cumartesi

Suse / timezone turkey +03

servername:~ # date
Sat Mar 18 01:40:53 EET 2017

servername:/tmp/time # zypper install timezone-2016g-0.60.1.x86_64.rpm
Loading repository data...
Reading installed packages...
Resolving package dependencies...

The following package is going to be upgraded:
  timezone

The following package is not supported by its vendor:
  timezone

1 package to upgrade.
Overall download size: 354.4 KiB. Already cached: 0 B. After the operation,
additional 1.3 KiB will be used.
Continue? [y/n/? shows all options] (y): y
Retrieving package timezone-2016g-0.60.1.x86_64                        (1/1), 354.4 KiB (  1.2 MiB unpacked)
Checking for file conflicts: .........................................................................[done]
(1/1) Installing: timezone-2016g-0.60.1.x86_64 .......................................................[done]
servername:/tmp/time # date
Sat Mar 18 02:42:30 +03 2017
servername:/tmp/time #

1 Mart 2017 Çarşamba

Get-DhcpServerv4Scope

$dateEnd = get-date

$filename = get-date $dateEnd -Format yyyyMMdd-hhmm


Get-DhcpServerv4Scope -ComputerName servername1 | Get-DhcpServerv4Reservation -ComputerName servername1 > C:\DHCPLOG\dhcp_reservation_"$filename".csv

Get-DhcpServerv4Scope -ComputerName servername2 | Get-DhcpServerv4Reservation -ComputerName servername2 >> C:\DHCPLOG\dhcp_reservation_"$filename".csv

Raporları oluşturmak için Flex üzerindeki master server'a PuTTY üzerinden appadmin ile giriş yapın ve "sudo -i" ile root kulla...