CMP(1) General Commands Manual CMP(1)NAME
cmp - compare two files
SYNOPSIS
cmp [ -l ] [ -s ] file1 file2
DESCRIPTION
The two files are compared. (If file1 is `-', the standard input is used.) Under default options, cmp makes no comment if the files are
the same; if they differ, it announces the byte and line number at which the difference occurred. If one file is an initial subsequence of
the other, that fact is noted.
Options:
-l Print the byte number (decimal) and the differing bytes (octal) for each difference.
-s Print nothing for differing files; return codes only.
SEE ALSO diff(1), comm(1)DIAGNOSTICS
Exit code 0 is returned for identical files, 1 for different files, and 2 for an inaccessible or missing argument.
CMP(1)
Check Out this Related Man Page
CMP(1) BSD General Commands Manual CMP(1)NAME
cmp -- compare two files
SYNOPSIS
cmp [-l | -s] file1 file2 [skip1 [skip2]]
DESCRIPTION
The cmp utility compares two files of any type and writes the results to the standard output. By default, cmp is silent if the files are the
same; if they differ, the byte and line number at which the first difference occurred is reported.
Bytes and lines are numbered beginning with one.
The following options are available:
-l Print the byte number (decimal) and the differing byte values (octal) for each difference.
-s Print nothing for differing files; return exit status only.
The optional arguments skip1 and skip2 are the byte offsets from the beginning of file1 and file2, respectively, where the comparison will
begin. The offset is decimal by default, but may be expressed as an hexadecimal or octal value by preceding it with a leading ``0x'' or
``0''.
The cmp utility exits with one of the following values:
0 The files are identical.
1 The files are different; this includes the case where one file is identical to the first part of the other. In the latter case, if the
-s option has not been specified, cmp writes to standard output that EOF was reached in the shorter file (before any differences were
found).
>1 An error occurred.
SEE ALSO diff(1), diff3(1)STANDARDS
The cmp utility is expected to be IEEE Std 1003.2 (``POSIX.2'') compatible.
BSD June 6, 1993 BSD
Hi all,
I wonder, how I can change Time To Live field for icmp packet in Redhat 7.1, kernel 2.4.2-2? I looked up in /proc/sys/net/ipv4 and did find this field in there.
There should be a way to change TTL. If it's in header file, in which one?
Thank you all :p (11 Replies)
Hi,
I needed space on a FS, and when I've added the space on the filesystem, I did it trough the regular smitty fs inteface and not with smitty cl_lvm.
Can someone help me to repair the situat before a faileover happen ?
Thanks for your help,:mad: (13 Replies)
Hi,
need advice on this.
Is it possible to assign a mountpoint from a SAN storage to server1 & server2.
Use NFS to the same mountpoint from server2 so that concurrent access is allowed.
Can this setup be used together with HACMP?
If server1 crash, the mountpoint resource will swing to... (8 Replies)
Hello folks,
I am facing a problem with NFS after doing the HACMP configuration
Issue : The showmount -e pr2serv at pr1serv ,it is only showing 1 mount exported /oracle , instead of showing all 7 as per /etc/exports file.
issue : while mounting /oracle at pr1serv getting permission... (8 Replies)
Hi all,
I have an HACMP (v5.3.0.0) cluster vg attached to ibm shark that need to be decommissioned. The data need to move to the HP EVA disk. The OS is on AIX 5200-10. The plan is to add a new disk from EVA & mirror the existing vg & break the mirror from Shark disk once the mirror finished.
... (12 Replies)
Hi all,
I am new to HACMP. So sorry for the newie question. But I did search the forum and it seems that no one asks this before.
So if a 2-node cluster runs in active-active mode (and the same application), what is the benefit of using HACMP ?
If it runs in active-stanby, it is easy to... (9 Replies)
Hello,
Does HACMP have bugs ? I have version 5.4 on AIX 6.1 and when I try to increase filesystem space or logical volume partitions which are under HACMP VG it gives me error:
# lsvg
rootvg
pr0oravg
px0oravg
pb0oravg
pr0sapvg
px0sapvg
pb0sapvg
pr1_pr2_vg
pr2_px1_vg
#
#... (11 Replies)
Hi
I had an active passive cluster. Node A went down and all resource groups moved to Node B.
Now we brought up Node A. What is the procedure to bring everything back to Node A.
Node A #lssrc -a | grep cl
clcomdES clcomdES 323782 active
clstrmgrES cluster... (9 Replies)
Hi,
Not sure if this is the correct forum to post this on but maybe a mod could move it if not.
When trying to move a HACMP resource group between lpars on AIX I receive the following.
State not STABLE/RP_RUNNING or ibcasts Join for node 2 rejected,
Clearing in join protocol flag... (11 Replies)
Hello Everyone,
Hope you all doing well. I have configured a powerHA with 2 RG. Whenever am moving a RG to the 2 node, the 2 node becoming unavailable. But its working fine in the console also cluster not having any issues. Once i ran the tcp/ip configuration via smitty , the node... (9 Replies)
Hello!
I have this infraestructure:
- 1 POWER7 with single VIOS on Site A.
- 1 POWER6 with single VIOS on Site B.
- 1 LPAR called NodeA as primary node for PowerHA 6.1 on Site A.
- 1 LPAR called NodeB as secondary (cold) node for PowerHA 6.1 on SiteB.
- 1 Storage DS4700 on Site A.
- 1... (8 Replies)
I have troubles making clstat work. All the "usual suspects" have been covered but still no luck. The topology is a two-node active/passive with only one network-interface (it is a test-setup). The application running is SAP with DB/2 as database. We do not use SmartAssists or other gadgets.
... (8 Replies)
Hello Everyone,
Hope you all are doing great!
As you can see by the title on top, we are in the process of migrating alot of our servers from Power5 (physical) to Power8 (Virtual). Now it's turn for servers with HACMP Cluster on it. Let me lay out the environment like:
OLD ENVIRONMENT:
... (12 Replies)
Dear Fellows,
I'm now working under a HACMP Cluster (version 7.1) with 2 nodes (Node1 active / Node2 passive), and 1 Resource Group on active node (Node1), which is UNMANAGED for boths nodes.
So, all VG Data are on Node1.
Then I had a JFS2 FileSystem full (located on one of these VG Data... (8 Replies)