
HPUX
mau check how many bits? mode mana working on 32-bit or 64-bit
getconf KERNEL_BITS
locale info main nyorok2 dalam?
/usr/lib/nls/README.nls.10.0
To Copy sw depots from a remote system
swcopy -s
eg:
swcopy -s dumpy.abc.com:/swdist/IPF/mentibang-laut-source @ kaldai.abc.com:/kaldai
install software from a remote machine
swinstall -s
Example:
swinstall -s cipan.abc.com:/home/cipan/add_to_be/11.00/aCC.3.37.01.depot
nak list entries : swlist -s
nak preview installing software : swinstall -p -s
bedal install the software : swinstall -s
Enable/disable file system mounting for swinstall
swinstall, like HP-UX, assumes that every mounted disk is crucially
important to the running of the system. If it isn't important, it
should not be mounted. You've probably already seen the hangs with bdf
and logins when an NFS servicer fails. You can override the requirement
that everything in /etc/fstab must be mounted with the swinstall option:
-x mount_all_filesystems=false
nak create shared library in HPUX
cc -b +z test.c -o libtest.sl
+z - Generate Position Independent Code (PIC)
-b - Generate shared library
8. To find out machine information
Use the command:
/opt/ignite/bin/print_manifest on IA or PA
Only on IA
machinfo
nak check physical memory
a) grep Physical /var/adm/syslog/syslog.log
Works for any user
b) /usr/sbin/dmesg | grep Physical
untuk root
To tune kernel paramaters
Use /usr/sbin/kmtune OR
/usr/sbin/kctune
Tuning network paramaters
------------------------
- tcp_time_wait_interval
Set the value to 1 second:
# ndd -set /dev/tcp tcp_time_wait_interval 1000
- tcp_fin_wait_2_timeout
Set the value to 10 minutes:
# ndd -set /dev/tcp tcp_fin_wait_2_timeout 6000000
These settings need to be defined whenever the system is re-booted.
To do this update /etc/rc.config.d/nddconf with the required
parameter as shown in the following example:
TRANSPORT_NAME[0]=tcp
NDD_NAME[0]=tcp_time_wait_interval
NDD_VALUE[0]=1000
TRANSPORT_NAME[1]=tcp
NDD_NAME[1]=tcp_fin_wait_2_timeout
NDD_VALUE[1]=600000
Why do I get a malloc error during swremove?
* Session selections have been saved in the file
"/.sw/sessions/swremove.last".
ERROR: "hpomt1:/": Could not allocate memory on this remote host
during task initialization, analysis or execution -- malloc()
failed.
* The analysis phase failed for "hpomt1:/".
* Analysis had errors.
While removing softwares, the following two rules must not be broken:
1. no patch left on the system without its base
2. under a no-rollback situation, a patch cannot be removed without also removing its base.
this generally happens if a path removal is tried after removing Base product
To remove a particular revision when multiple revisions are present
To remove a particular revision of software, when multiple revisions are present:
swremove
eg: swremove keldai,r="4.51.000"
How can I change the timezone?
The timezone is dtermined by reading the 'TZ' environment variable.
This variable is set when you execute 'set_parms timezone'. Set_parms
edits the file '/etc/TIMEZONE,' which exports the 'TZ' environment
variable. When you reboot after executing set_parms, the file
/etc/TIMEZONE will be read and your TZ variable set to the value you
specified. The value is in the format:
[:]STDoffset[DST[offset][,rule]]
For example: PST8PDT for the U.S. Pacific Time Zone
See the environ(5) manpage for a detailed description of the format.
Note, the offset for daylight savings time is supplied by the
'/usr/lib/tztab' configuration file.
libc functions like ctime use the 'TZ' variable to determine the
To Fix the compiler crash with error
Error (internal problem) 7108: Exact position unknown; near ["../../test.cpp", line 1033]. # The value 0x22ec did not fit into a signed 14 bit field at offset 0x99dc (op code - MOVB) (7108)
Apply patch: PHSS_29483
16. Downgrading a software
swinstall -x allow_downdate=true -s $PWD/
0 comments:
Post a Comment