Posts

Showing posts from 2007

32 Bit 64 Bit Funda

How to identify the machine is 64-bit SUN/HP-UX/AIX ? -on Solaris box the command : a) dmesg | grep bit if system is 64 bit then it returns with output : SunOS Release 5.7 Version 64-bit [UNIX(R) System V Release 4.0] b) isainfo -v 64-bit sparcv9 applications 32-bit sparc applications When the same command is run on older SPARC systems, or on UltraSPARC systems running the 32-bit operating system: % isainfo -v 32-bit sparc applications -on HP box the command: a) swlist | grep bit if system is 64 bit then it returns output : HPUXEng64RT B.11.00 English Hp-UX 64-bit Runtime Environment. b) getconf command can be used with the following arguments _CS_KERNEL_BITS Returns whether the executing kernel is running in 32-bit or 64-bit mode. _CS_HW_CPU_SUPP_BITS "32" Only 32-bit HP-UX is supported "32/64" Both 32-bit and 64-bit HP-UX are supported "64" Only 64-bit HP-UX is supported. - on AIX box cat init

Nokia mobile phone - some Tips

1. *#0000# To view Software Version 2. *#92702689# [*#war0anty#] takes you to a secret menu with 6 choices: a) Displays Serial Number. b) Displays the Month and Year of Manufacture (0997) c) Displays (if there) the date where the phone was purchased (MMYY) d) Displays the date of the last repairment - if found (0000) e) makes you capebel of transferring user data if you have the gear for it f) shows how many hours the phone has been on 3. *#3370# - Enhanced Full Rate Codec (EFR) activation. It will automatically restart. *#3370* - Enhanced Full Rate Codec (EFR) deactivation. It will automatically restart. *#4720# - Half Rate Codec activation. It will automatically restart *#4720* - Half Rate Codec deactivation. It will automatically restart 4. *#06# for checking the IMEI 5. *#746025625# [*#sim0clock#] To check if the Sim-Clock can be Stopped (Sim-clock-stop is a kind of standby mode which will save battery time) 6. All Nokia phones (2110 and newer) have four different

HPUX Tips

1. HOW MANY BITS? HP-UX counterpart for finding on which mode you are currently working (32-bit or 64-bit): getconf KERNEL_BITS 2. The locale info will be present in /usr/lib/nls/README.nls.10.01 3. Profiling programs - use prof (acc -p) Profiling C++ programs Use gprof aCC -G Programs should not be compiled with the -G option to profile Shared Libraries. To profile a shared library: Set LD_PROFILE=Sharelibpath eg: LD_PROFILE=/opt/OV/lib/libOvCoda.sl Set the env. variable GPROFDIR The profiled output file will be present in ${GPROFDIR} 4. To Copy sw depots from a remote system Use the following command to Copy the depot: swcopy -s @ localsystem:/ eg: swcopy -s dumpy.abc.com:/swdist/IPF/OpenSource @ ramki.abc.com:/ramki 5. To install a software from a remote machine swinstall -s Example: swinstall -s ramki.abc.com:/home/ramki/add_to_be/11.00/aCC.3.37.01.depot You can list one of the entries

Some useful AIX commands

AIX Useful Commands compress -c file.txt > file.Z Create a compressed file. uuencode (infile) (extract-file-name) > (output file) Converts a binary file to an ASCII file for transfer by modem or email uudecode (encoded file) Extracts a binary file from encoded file and calls it the extract-file-name examples :- uuencode maymap maymap > maymap.enc uudecode maymap.enc od -c /tmp Displays contents of the /tmp directory file ls -i Lists files with their inode numbers echo * Lists files, can be used if ls is corrupt/missing chtz (timezone eg GMT0BST) Changes the timezone in /etc/environment file chlang (language eg En_GB) Changes the language in /etc/environment file ar -v -t (archive file) List contents of an archive ar -v -x (archive file) Extracts the archive ar -v -t /usr/lib/libC-r.a Lists contents of the libC_r.a library find /source -print | cpio -pdm /target Copying directories using cpio, creates /target/source directory. dump -nTv (binary executable) Displays th

Useful AIX Tips

1. Changing Core File path The syscorepath utility, provided with AIX v5.2 or highter, can be used to specify a single system-wide directory where all core files of any processes will be saved. The syntax for this command is: syscorepath -p alternate_directory The syscorepath command enables a system administrator to set up a single system-wide directory in which to dump core files from any processes. This can ease administrative tasks in managing file-system space and provides a single, known directory in which to find core files. By default, the core file is created in the working directory of the process being coredumped. The directory should have read and write privileges for all users on the system. If a user does not have permission to write in the directory, a core file will not be created. Core files will be given unique names based on the process ID and time, so a core file will be named core.pid.MMddhhmmss, where pid is the process ID, MM is month, dd is the day of t

Command to list all the installed packages on Unix systems

1. Linux rpm -qa 2. HP swlist 3. Solaris pkginfo 4. Tru64 setld -i 5. AIX lslpp -l 6. On Ubuntu/Debian Linux dpkg-query -l dpkg -l