MP_CompareOIDs(3MPAPI) Common Multipath Management Library Functions MP_CompareOIDs(3MPAPI)NAME
MP_CompareOIDs - compare two object IDs
SYNOPSIS
cc [ flag... ] file... -lMPAPI [ library... ]
#include <mpapi.h>
MP_STATUS MP_CompareOIDs(MP_OID oid1, MP_OID oid2);
PARAMETERS
oid1 An object ID that has type MP_OIDs for two objects to compare.
oid2 An object ID that has type MP_OIDs for two objects to compare.
DESCRIPTION
The MP_CompareOIDs() function compares two object IDs (OIDs) for equality to see whether they refer to the same object. The fields in the
two object IDs are compared field-by-field for equality.
RETURN VALUES
MP_STATUS_FAILED The object IDs do not compare.
MP_STATUS_SUCCESS The two object IDs refer to the same object.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Interface Stability |Standard: ANSI INCITS 412 |
| |Multipath Management API |
+-----------------------------+-----------------------------+
|MT-Level |Safe |
+-----------------------------+-----------------------------+
SEE ALSO libMPAPI(3LIB), attributes(5)
Multipath Management API Version 1.0
SunOS 5.11 15 Feb 2006 MP_CompareOIDs(3MPAPI)
Check Out this Related Man Page
MP_EnableAutoProbing(3MPAPI) Common Multipath Management Library Functions MP_EnableAutoProbing(3MPAPI)NAME
MP_EnableAutoProbing - enable auto-probing
SYNOPSIS
cc [ flag... ] file... -lMPAPI [ library... ]
#include <mpapi.h>
MP_STATUS MP_EnableAutoProbing(MP_OID oid);
PARAMETERS
oid The object ID of the plugin or multipath logical unit.
DESCRIPTION
The MP_EnableAutoProbing() function enables auto-probing.
RETURN VALUES
MP_STATUS_INVALID_OBJECT_TYPE
The oid parameter does not specify any valid object type . This is most likely to happen if an uninitialized object ID is passed to the
API.
MP_STATUS_INVALID_PARAMETER
The oid parameter has a type subfield other than MP_OBJE CT_TYPE_PLUGIN or MP_OBJECT_TYPE_MULTIPATH_LU.
MP_STATUS_OBJECT_NOT_FOUND
The oid parameter owner ID or object sequence number is invalid.
MP_STATUS_SUCCESS
The operation is successful.
MP_STATUS_UNSUPPORTED
The API is not supported.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Interface Stability |Standard: ANSI INCITS 412 |
| |Multipath Management API |
+-----------------------------+-----------------------------+
|MT-Level |Safe |
+-----------------------------+-----------------------------+
SEE ALSO libMPAPI(3LIB), MP_DisableAutoProbing(3MPAPI), attributes(5)
Multipath Management API Version 1.0
SunOS 5.11 15 Feb 2006 MP_EnableAutoProbing(3MPAPI)
Hello everybody...
I have a Server conected to a Disk Array through 2 canals of FiberChannel... I've installed RedHat Advance Server 3 and of course i see two device files that refer the same disk: for example: /dev/sda and /dev/sdb are refered to the same Lun... This is the same case for a new... (2 Replies)
I have two log files which keeps appending every sec...I want to extract a certain field from each file(using awk for extracting the data) and compare them in real time...
ex:
log1
122
234
567
log2
234
567
log3
122
i need a log3 which keeps appending the data found in log1 and... (7 Replies)
Hi all,
I need to construct a automated script, which compare the text at bash prompt and if it finds then it sends the relevant text.
how would we use if to compare string
like if we want to compare "Please enter selection:"
and then we want to send a numeric or string to it ...
... (2 Replies)
hi
how can i read a file using the unix script and check for one or more field value for a predefined status/value
for example : the file contains the following text
Name IP Address/Mask Type Connection Status
mgmt-eth0(1) ... (2 Replies)
Hi,
I am trying to compare two dates but its not giving me desired results.
date1=8-Feb-10
date2=31-Jan-10
export date1
export date2
if
then
echo "$date1 is greater than $date2"
else
echo "$date2 is greater than or equal to $date1"
fi
The result it give is:
31-Jan-10 is... (4 Replies)
I don't undestand how to combine 4 nics in order to use DM Multipath. Do I have to install each nic with its IP address? If yes, do I need a group IP address? This concept is not clear for me.
The connection beetwen the server (DELL Poweredge T710) and the SAN through iscsi works well, I used... (1 Reply)
Hi Folks,
I have a file with 22 columns. In which, I need to remove nulls if found at $2, $4, $14 & $16. Then, needs to compare the fields such as $2 == $14 && $4 == $16. The final output will print all the fields where the above conditions are satisfied.
Could you please anyone help me... (6 Replies)
HI
I'm having some troubles to compare and permut diffrent fields indexed with another filed like the following example `:
file1
1 1
2 2
3 3
file2
7 1
9 2
10 3
result------------------- (6 Replies)
I have two files File1, File2. File1 has whole list of IDs and File2 has a limited IDs. i need to compare these two files and take the IDs which are not present in File2 but present in File1. can someone tell me a command. (3 Replies)
Dear friends,
I have two files. One with all IDs(in a single field) . And another with data(of which say field 5 is ID). I want to create an array of IDs using first file and
while reading second file if the ID appears in the array I need to print $0 else skip.
After a long gap I am... (6 Replies)
Hello all,
I am running "Red Hat Enterprise Linux Server release 6.4 (Santiago)"
The root Filesystem is currently part of the Multipath configuration and I need to remove it without rebooting the production Server.
The wwid I want to remove from Multipathing is the last one i the list of... (3 Replies)
Hi All,
I have situation where my file looks like this log.file. ID Start time IP SQL
1256152 05-Aug-15, 11:25:06 MST 10.54.20.33 Select * from TES
1004768 05-Aug-15, 11:25:06 MST 10.54.20.33 Select dummy
323323 05-Aug-15, 12:00:06 MST 10.15.20.77 ... (1 Reply)
Hello ,
I am trying to compare two files i.e one master file and the other exclusion file. If the second field of masterfile is oracle8 then I need to compare the 3rd field of master file with the 1st field of all the rows of exclusion file else I need to compare 2nd field from master file with... (2 Replies)