Thursday, March 12, 2015

HMC web console V7R7.3 pending issue

For Firefox
1) Start up Firefox 
2) In the URL area, type about:config 
3) In the search area type tls 
4) Change security.tls.version.min from "1" (default) to "0." 
5) Change security.tls.version.fallback-limit from "1" to "0"

For Chrome
1) Start Chrome 
2) In the URL area type: chrome://flags 
3) Find the "Minimum SSL/TLS version supported" flag and change the value to SSLv3. 

Monday, May 26, 2014

Edit the "last" output in AIX

/usr/sbin/acct/fwtmp <./wtmp > ./dummy.file

/usr/sbin/acct/fwtmp -ic <./dummy.file > ./wtmp

Friday, May 09, 2014

Export Windows Update History

Windows 2008

wmic qfe get /format:csv > updates.csv

Friday, October 25, 2013

Windows 2008 Time sync. configuration

1. check the time server with "w32tm /stripchart /computer:[Time_Server_IP] /dataonly /samples:5"

2. sync by setting "w32tm /config /manualpeerlist:[Time_Server_IP],0x8, /syncfromflags:manual /update"

  • 0x8 -- set Windows time to use client mode

3. Or if it has joined the domain, default it should be syncing with one of the Domain controllers

4. you can manually configure that by typing: "w32tm /config /syncfromflags:domhier /update"

5. restart the time service
  • net stop w32time
  • net start w32time

6. "w32tm /resync" to sync immediately ( it may failed, re-run step1 to verify the status)

Monday, September 16, 2013

Export and Import DHCP Reservations for Windows Server

Export the DHCP reservation list on A server,

netsh dhcp server [ip address] scope [scope address] dump > reservation_list.txt
e.g. netsh dhcp server 172.17.32.131 scope 172.17.32.0 dump > reservation_list.txt

Edit the exported file in notepad 'reservation_list.txt' , Simply do a Find and Replace for the A server IP you ran the export on and change to the B server IP you are importing to and remove out everything else in the text file except for the reservations config section.

Import the DHCP reservation list:
netsh exec reservation_list.txt


Friday, April 05, 2013

AIX NFS sharing/mounting

NFS Sharing

start NFS service
-->smitty-->Communications Applications and Services-->NFS-->Network File System (NFS)-->Configure NFS on This System-->Start NFS
share a file system
-->smitty-->Communications Applications and Services-->NFS-->Network File System (NFS)-->Add a Directory to Exports List (or smitty mknfsexp)
list out all shared file system
#showmount -e localhost

NFS Mounting


mount a file system
-->smitty-->Communications Applications and Services-->NFS-->Network File System (NFS)-->Add a File System for Mounting (or smitty mknfsmnt)

Thursday, December 06, 2012

Add static route in windows

Add static route in windows:

 1. shows routing table

 netstat -nr

 2. permanent add connecting to 172.17.0.0 through 172.17.32.1 gateway with the lower priority 2

 route -p add 172.17.0.0 mask 255.255.0.0 172.17.32.1 metric 2


Tuesday, April 12, 2011

blocking application in winXP

1. Start->Run->secpol.msc 

2. Expand software restriction policies
Right click Additional rules-> New Path Rule
Path: C:\Program Files\Outlook Express\msimn.exe
Security Level: Disallowed
Click OK

Monday, October 11, 2010

Manage Windows7 SEP client with SEP 11 SEM

1.) Clients don't appear in the SEM console
a. Delete %programfiles%\Common Files\Symantec Shared\HWID\sephwid.xml
b. Open the registry and navigate to HKLM\Software\Symantec\Symantec Endpoint Protection\SMC\Sylink\Sylnk
c. Edit the "HardwareID" value data to be blank
d. Restart the client workstation or Symantec Management Client (SMC) service in the services snap-in.

refer: http://www.symantec.com/business/support/index?page=content&id=TECH102815&locale=en_US

Wednesday, March 24, 2010

sed & awk

Split the line with field separator ".", and restructuring again
awk -F. '/stbdbp/{ print $2"."$3"."$4"."$5".Z"}' ./list.txt
 
Insert "go" to the next of every lines from test_new.log
sed '1,$ {
        a\
go
}' test_new.log
 
Remove the line which contains "#" from test_new.log
sed '/#/d' test_new.log
 
Remove blank line from test_new.log
sed '/^[ ]*$/d' test_new.log

Monday, June 08, 2009

solaris 10 with Storage 3320

#sccli
>show lun
>show channel
>show logical-drive
>show partition

Thursday, November 06, 2008

error log, enable tty console

errlogter (test the errpt)
/usr/lib/errdemon (errpt demon)
alog -o -t console (show console message)

smitty tty

Friday, October 24, 2008

check memory info. in AIX

# bootinfo -r

# svmon -G (use 4K block to count)
size inuse free pin virtual
memory 1048576 584861 463715 82089 532513
pg space 425984 409635

work pers clnt lpage
pin 82089 0 0 0
in use 289507 295354 0 0

Thursday, October 09, 2008

Unlock root account in HP-UX

From
How to unlock locked root account in HP-UX

By default HP-UX disables the root account if there is repeated number of failed (bad password) attempts. If you root account has been disabled because of bad password there are two options you two ways you can unlock the account without rebooting the server.

1.If you have sudo installed and your account is setup with root privileges then you can login as sudo su and then you can unlock the account using modprpw

$/usr/local/bin/sudo su –

##/usr/lbin/modprpw –l –k root


2.If you don't have sudo setup then other way out is to check on GSP console if you already have root logged in then you can re-enable root account from GSP console

Thursday, August 21, 2008

About Tape Drive in Solaris

New install:
devfsadm

Already installed
modinfo //find the 'st' driver.
modunload -i //The driver should unload.
mt -f /dev/rmt/0cbn status //The driver should reload.

Tuesday, April 01, 2008

nice command

kill process from "ps -ef"
ps -ef grep -v grep grep [process_name] awk '{print $2}' xargs -t kill -9 >> $outfile 2>&1

Thursday, February 14, 2008

Sybase RPC between different servers

local server: A
remote server: B

1. login to A
2. add server B records at A's interfaces file
3. isql to A's Sybase
4. sp_addserver [server name],[remote server network name (e.g. same as interfaces file)]
  • sp_addserver B,B
  • go
5. create proxy table [table_name] at "[server.db.dbo.table]"
  • use master
  • go

  • create proxy_table proxy_tb_a at "B.db_a.dbo.tb_a"
  • go

  • insert into proxy_tb_a values(....)
  • go

Monday, February 04, 2008

solaris 5.8 notes 3

large file maintenance:
cp large.log large.log.20080204.bak
cat /dev/null > large.log