1. vi text file
2. use vi command " :1,$ s/^M//g"
^M=Ctrl+v+m
3. done
Tuesday, May 26, 2009
[AIX] How to edit or clear /var/adm/wtmp
Clear:
cp /dev/null /var/adm/wtmp
Edit:
/usr/sbin/acct/fwtmp < /var/adm/wtmp > dummy.file
/usr/sbin/acct/fwtmp -ic <> /var/adm/wtmp
cp /dev/null /var/adm/wtmp
Edit:
/usr/sbin/acct/fwtmp < /var/adm/wtmp > dummy.file
/usr/sbin/acct/fwtmp -ic <> /var/adm/wtmp
Monday, May 25, 2009
[AIX] Remove mksysb mirror information
1. build image.data, use mkszfile command.
2. vi image.data, make LPs = PP and COPIES=1 in each LV.
3. mksysb and include fixed image.data.
done
2. vi image.data, make LPs = PP and COPIES=1 in each LV.
3. mksysb and include fixed image.data.
done
Sunday, May 24, 2009
[AIX] Watch and Extract .bff File
To see whats in the lpp/bff (backup / restore format)
restore -qTvf lpp_name.bff
To extract files from it
restore -qxvdf lpp_name.bff ./path/to/file/to/restore
http://www.ibm.com/developerworks/forums/thread.jspa?messageID=13996224
restore -qTvf lpp_name.bff
To extract files from it
restore -qxvdf lpp_name.bff ./path/to/file/to/restore
http://www.ibm.com/developerworks/forums/thread.jspa?messageID=13996224
TPC for Disk Install error at JVMST062
1. Open "Control Panel"
2. Double-click on "System" icon in "Control Panel"
3. Click "Advanced" tab in "System Properties" panel
4. Click "Environment Variables" button
5. Click "New" button in "User variables for UserID" in "Environment Variables" panel
6. Input "IBM_JAVA_OPTIONS" in "Variable Name" input field, and "-Xmx512M" in "Variable Value"
7. Click "OK" button, and close all panels
8. Try again
2. Double-click on "System" icon in "Control Panel"
3. Click "Advanced" tab in "System Properties" panel
4. Click "Environment Variables" button
5. Click "New" button in "User variables for UserID" in "Environment Variables" panel
6. Input "IBM_JAVA_OPTIONS" in "Variable Name" input field, and "-Xmx512M" in "Variable Value"
7. Click "OK" button, and close all panels
8. Try again
Subscribe to:
Posts (Atom)