How 2 Know
If you can't Google it, You Can Knowing it.

January, 2013Archive for

0315-021 Cannot open error message catalog – errpt

Wednesday, January 30th, 2013

when you try to use errpt command and you get the following error :

0315-021 Cannot open error message catalog /var/adm/ras/codepoint.cat. The error report will still run, but it will not have explanatory messages.

Continue Reading…

AIX Life Cycle

Wednesday, January 30th, 2013

Product

Continue Reading…

last update on password

Tuesday, January 29th, 2013

to check last update on users password, run the following commands :

#pwdadm -q root
root:
lastupdate = 1340177035

#perl -le 'print scalar localtime(shift);' 1340177035
Wed Jun 20 09:23:55 2012

Useful HACMP Commands

Tuesday, January 29th, 2013

Useful HACMP commands

    1. clstat – show cluster state and substate; needs clinfo.
    2. cldump – SNMP-based tool to show cluster state.
    3. cldisp – similar to cldump, perl script to show cluster state.
    4. cltopinfo – list the local view of the cluster topology.
    5. clshowsrv -a – list the local view of the cluster subsystems.
    6. clfindres (-s) – locate the resource groups and display status.
    7. clRGinfo -v – locate the resource groups and display status.
    8. clcycle – rotate some of the log files.
    9. cl_ping – a cluster ping program with more arguments.
    10. clrsh – cluster rsh program that take cluster node names as argument.
    11. clgetactivenodes – which nodes are active?
    12. get_local_nodename – what is the name of the local node?
    13. clconfig – check the HACMP ODM.
    14. clRGmove – online/offline or move resource groups.
    15. cldare – sync/fix the cluster.
    16. cllsgrp – list the resource groups.
    17. clsnapshotinfo – create a large snapshot of the HACMP configuration.
    18. cllscf – list the network configuration of an HACMP cluster.
    19. clshowres – show the resource group configuration.
    20. cllsif – show network interface information.
    21. cllsres – show short resource group information.
    22. lssrc -ls clstrmgrES – list the cluster manager state.
    23. lssrc -ls topsvcs – show heartbeat information.
    24. cllsnode – list a node centric overview of the hacmp configuration.

    Continue Reading…

preserved files

Monday, January 28th, 2013

if you search under /var directory, of course you see strange directory which named “preserve”.

this directory contains preserved data from interrupted edit sessions. which means, if you open file to edit it using vi command or any editor, the system take a copy from the opened file and keep it under “/var/preserve”, and if your sessions is crashed for any reason, you can reopen the file again using the following steps:

Continue Reading…

Removing Control Characters

Monday, January 28th, 2013

To Remove the Control Characters (^M) from File in Linux/UNIX do the following Steps:
1- Check the file first (You will see ‘^M’ on the end of each line): #cat -vte filename
2- open the file : #vi filename
3- press ESC button on Keyboard then press “:” (Command Mode)
5- write the following “1,$ s/^M//g”   (HINT: to write the ‘^M’ char on step Number 5, just press “CTRL+v+m”)
6- save the file using “:wq”
7- check the file again: #cat -vte filename

Continue Reading…

AIX Display memory in GB

Monday, January 28th, 2013

To Display Memory Information in Gigabyte use the Follwoing Command :

#svmon -O,unit=GB

This Command Tested on AIX 6.1