Hi,
I have an issue with a PERL5 script that calls MQCONN. I get this error on this Perl step when connecting to my Q manager: "Undefined Undefined subroutine &main::MQCONN called at ./quelog.pl "
I use this code:$Hconn = MQCONN($QMGR,$CompCode,$Reason);
In my .profile:
export... (2 Replies)
Can someone please tell me how I can find out what version of SNMP I have running on any linux and solaris server?
i would think this was an easy thing to find. but google wasn't able to turn up anything on this.
snmp -v should do the trick but it doesn't.
thank you guys (1 Reply)
How can I find out with a C program, on which RedHat version the program is being ran ? I do know through compilation variables that I'm on RedHat but so far cannot find out which one.
Currently the closest I got was to invoke an ls or cat through syscall for the release or motd files.
... (5 Replies)
Iam new to shellscript.
1)How to strart QUERYMANAGER using shellscript.
2)How to put and get messages in MQSeries using shellscripts.
3)iam using local queues .
Thanks lot. (0 Replies)
hi,
i am looking through the perl documentation in the man pages for the first time but I have looked at some other reference giudes before (at a glance) and remember that there is a find command used by perl can any one give me a structured example of that command and how it works and if possible... (2 Replies)
Hi,
I wanted to know how can I get the version of underlying HP-OS installed on a HPUX workstation. The output required is "June 2001" version or "March 2003" version etc whatever OS is present.
Thanx in advance for your help.
Regards,
Pankaj (3 Replies)
Hi,
Is there anyway to find what version of a software is installed on a particular box ?
For Tru64 unix, the setld -i command lists all the software that is installed. But how do i get the version ? is there a unix command for this?
Is setld specific to Tru64 ?
Do reply
VJ (1 Reply)
I am extremely new here. Someone wants to upgrade off of Unix to Windows 2000 and wants to know if they need to buy new hardware
How do I find out what type of Unix they're using?
How do I find out the current hardware of the system? (Intel, ..etc)
Thanks (3 Replies)
MQSERIES_PUT(3) 1 MQSERIES_PUT(3)mqseries_put - MQSeries MQPUTSYNOPSIS
void mqseries_put (resource $hConn, resource $hObj, array &$md, array &$pmo, string $message, resource &$compCode, resource &$rea-
son)
DESCRIPTION
The mqseries_put(3) (MQPUT) call puts a message on a queue or distribution list. The queue or distribution list must already be open.
PARAMETERS
o $hConn
-Connection handle.This handle represents the connection to the queue manager.
o $hObj
-Object handle.This handle represents the object to be used.
o $md
-Message descriptor (MQMD).
o $pmo
-Put message options (MQPMO).
o $message
-The actual message to put onto the queue.
o $compCode
-Completion code.
o $reason
-Reason code qualifying the compCode.
RETURN VALUES
No value is returned.
EXAMPLES
Example #1
mqseries_put(3) example
<?php
// open connection to the queue manager
mqseries_conn('WMQ1', $conn, $comp_code, $reason);
// $conn now hold the reference to the connection to the queue manager.
// open the connectio to the testq queueu
mqseries_open(
$conn,
array('ObjectName' => 'TESTQ'),
MQSERIES_MQOO_INPUT_AS_Q_DEF | MQSERIES_MQOO_FAIL_IF_QUIESCING | MQSERIES_MQOO_OUTPUT,
$obj,
$comp_code,
$reason);
// $obj now holds the reference to the object (TESTQ)
// setup the message descriptor array. Check MQSeries reference manuals.
$md = array(
'Version' => MQSERIES_MQMD_VERSION_1,
'Expiry' => MQSERIES_MQEI_UNLIMITED,
'Report' => MQSERIES_MQRO_NONE,
'MsgType' => MQSERIES_MQMT_DATAGRAM,
'Format' => MQSERIES_MQFMT_STRING,
'Priority' => 1,
'Persistence' => MQSERIES_MQPER_PERSISTENT);
// setup the put message options.
$pmo = array('Options' => MQSERIES_MQPMO_NEW_MSG_ID|MQSERIES_MQPMO_SYNCPOINT);
// put the message 'Ping' on the queueu.
mqseries_put($conn, $obj, $md, $pmo, 'Ping', $comp_code, $reason);
if ($comp_code !== MQSERIES_MQCC_OK) {
printf("put CompCode:%d Reason:%d Text:%s<br>
", $comp_code, $reason, mqseries_strerror($reason));
}
// close the object reference $obj
mqseries_close($conn, $obj, MQSERIES_MQCO_NONE, $comp_code, $reason);
// disconnect from the queue manager.
mqseries_disc($conn, $comp_code, $reason);
?>
SEE ALSO mqseries_conn(3), mqseries_connx(3), mqseries_open(3), mqseries_get(3).
PHP Documentation Group MQSERIES_PUT(3)