Useful HACMP Commands

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

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

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