2015-07-21

block Null Session Attacks on Windows Server

Edit  registry:
HKLM/System/CurrentControlSet/Control/LSA
Value: RestrictAnonymous=1

2015-07-08

show RPC port

for windows2008 and Windows2012
C:\Windows\system32>netsh int ipv4 show dynamicport udp

Protocol udp Dynamic Port Range
---------------------------------
Start Port      : 49152
Number of Ports : 16384


C:\Windows\system32>netsh int ipv4 show dynamicport tcp

Protocol tcp Dynamic Port Range
---------------------------------
Start Port      : 49152
Number of Ports : 16384

2014-11-10

remove child domain no longer exists

ntdsutil: metadata cleanup
metadata cleanup:
metadata cleanup: connections
server connections:
server connections: connect to server serv1.domain01.com
Binding to serv1...
Connected to serv1 using credentials of locally logged on user
server connections:
server connections: quit
metadata cleanup:
metadata cleanup: select operation target
select operation target:
select operation target: list domains
Found 2 domain(s)
0 - DC=domain01,DC=com
1 - DC=child01,DC=domain01,DC=com
select operation target:
select operation target: select domain 1
No current site
Domain - DC=child01,DC=domain01,DC=com
No current server
No current Naming Context
select operation target:
select operation target: quit
metadata cleanup:
metadata cleanup: remove selected domain

2014-07-31

Example lvm in LINUX

==This document is short note for lvm in LINUX==
[root@rhel64 /]#fdisk -l
[root@rhel64 /]#fdisk /dev/sdb1
[root@rhel64 /]#fdisk /dev/sdc1
[root@rhel64 /]#vgcreate vg1 /dev/sdb1 /dev/sdc1
[root@rhel64 /]#vgdisplay vg1
[root@rhel64 /]#lvcreate -L 14.98G -n testlv1 vg1
[root@rhel64 /]#mkfs.ext4 /dev/vg1/testlv1
[root@rhel64 /]#mount /dev/vg1/testlv1  /testlv1
===============






=====  online extend =====
[root@rhel64 /]#echo "- - -" > /sys/class/scsi_host/host3/scan
[root@rhel64 /]#fdisk /dev/sdd1
[root@rhel64 /]#vgextend vg1 /dev/sdd1
[root@rhel64 /]#lvextend -L 19G /dev/vg1/testlv1 
or
[root@rhel64 /]#lvextend -L +5G /dev/vg1/testlv1

[root@rhel64 /]#resize2fs /dev/vg1/testlv1


2014-07-03

How check any clients are connected to NFS server

- Can use  command netstat |grep nfsd

2014-06-25

copy dns file from unix to windows2008

copy file  xxx.xxx.zone  from unix   and past to  c:\windows\system32\dns
rename .zone to .dns
Exam.
  xxx.xxx.zone to xxx.xxx.dns
 

then  restart  service on window2008

2014-06-11

sun cluster clear stop failed on resource

- if The name of the resource and resource group that are in STOP_FAILED state
     Clear the STOP_FAILED error flag on the resources. 
# clresource clear -f STOP_FAILED -n nodelist resource
-f STOP_FAILED
Specifies the flag name.
-n nodelist
Specifies a comma-separated list of the names of the nodes where the resource is in the STOP_FAILED state. The list may contain one node name or more than one node name.
resource

Specifies the name of the resource.