Archive

Archive for December, 2012

Steve Pitcher › Goodbye Active Directory?

December 29th, 2012 Comments off
For me, just maybe.  I'm going to at least give this a solid look.

We have a loose migration plan for all of our x64-based Microsoft Windows servers to IBM Power Systems.  All except our Active Directory servers.  We use those for Group Policy, Domain authentication, Domino web authentication, DNS and a few other familiar functions.

As per ZDNet, the release of Samba 4 appears to be a viable alternative to Active Directory.  More to come once I dig a bit more information about it.  I wonder if I can run it on IBM i?   :)

http://www.zdnet.com/samba-4-released-brings-free-alternative-to-active-directory-7000008654/



Read the original at Steve Pitcher.

Categories: Blogs Tags:

Alan Seiden Consulting: PHP and IBM i Expertise › Using procedures and service programs with the PHP Toolkit for IBM i

December 27th, 2012 Comments off

The open source PHP Toolkit enables PHP applications to call procedures (functions) that are defined within RPG service programs on IBM i. (For more information on the toolkit, see my toolkit information page.)

Here’s an example that will work with PHP Toolkit API version 1.4.0 or higher. I also included some ‘boilerplate’ to show best practices for connecting to the toolkit and checking for a successful connection. The illustration of how to call a procedure is in the second half.

<?php
require_once('ToolkitService.php');

// connect to toolkit using DB2 credentials (can also leave blank for default authority)
try {
    $conn = ToolkitService::getInstance('*LOCAL', 'MYUSER', 'MYPASS');
} catch (Exception $e) {
    // Determine reason for failure.
    // Probably database authentication error or invalid or unreachable database.
    $code = $e->getCode();
    $msg = $e->getMessage();

    switch ($code) {
        case 8001:
            // "Authorization failure on distributed database connection attempt"
            // Usually means a wrong DB2 user or password
            echo 'Could not connect due to wrong user or password.';
            break;
        case 42705:
            echo 'Database not found. Try WRKRDBDIRE to check.';
            break; 
        default:
            echo 'Could not connect. Error: ' . $code . ' ' . $msg;
            break;
    } //(switch)
    die; // couldn't connect...handle this however you wish     
} //(try/catch)

// set stateless mode for easy testing (no 'InternalKey' needed).
// (setOptions() introduced in v1.4.0)
$conn->setOptions(array('stateless'=>true));

/* If you wish to test this script but you don't have a real service program,
 * use parseOnly and parseDebugLevel as shown below.
 * No program will be called and you'll get your original values back.
 * Simply uncomment the next line to try this great testing feature of the toolkit.
*/
//$conn->setOptions(array('parseOnly'=>true, 'parseDebugLevel'=>1));

// define several input/output params
$params[] = $conn->AddParameterChar('in', 1,'Division', 'DIV', 'A');
$params[] = $conn->AddParameterChar('in', 6,'Product', 'PROD', '123456');
$params[] = $conn->AddParameterPackDec('both', 7, 2, 'Quantity', 'QTY', '4.53');
$params[] = $conn->AddParameterZoned('out', 5, 2, 'Price', 'PRICE', '0');

// define a procedure return param. Can be any type, even a data structure
$retParam = $conn->AddParameterInt32('out', '4-byte int', 'MYRESULT', '13579');

/* Call service program procedure. 
 * In this example, assume your program is MYLIB/MYPGM and has a procedure/function 'myproc'
 * (procedure name is case-sensitive).
 * Note: specify optional procedure name in parameter 5, an array with associative index 'func'.
*/
$result = $conn->PgmCall('MYPGM', 'MYLIB', $params, $retParam, array('func'=>'myproc'));

if (!$result) {
    echo 'Error calling program. Code: ' . $conn->getErrorCode() . ' Msg: ' . $conn->getErrorMsg();
}

echo 'Called program successfully.<BR><BR>';
echo 'Input/output params: QTY: ' . $result['io_param']['QTY'] . ' PRICE: ' . $result['io_param']['PRICE'] . '<BR>'; 
echo 'Procedure return param MYRESULT: ' . $result['retvals']['MYRESULT']; 

/* 
The above will output something like:

Called program successfully.

Input/output params: QTY: 4.53 PRICE: 0.00
Procedure return param MYRESULT: 13579

*/


Read the original at Alan Seiden Consulting: PHP and IBM i Expertise.

UIIPA › Influence of Social Media on IBM i Community

December 18th, 2012 Comments off

I need your feedback!

What do you think are some of the most beneficial websites, news publications, social media outlets, or groups that has helped you in your IBM i career and why? For example, do you get great advice when you post on a certain LinkedIn group? Or has twitter helped you stay informed on what is happening in the market?

Leave your comments below and help us understand what has influenced you the most.

Keep in touch.



Read the original at UIIPA.

Categories: Blogs, LUGs Tags: , ,

Steve Pitcher › Selling the Metal!

December 17th, 2012 Comments off
Here's a piece I wrote for MC Press Online.  Check it out.

In the Wheelhouse: Selling the Metal

Let's dissect two studies that put IBM i at the top of the list for lowest total cost of ownership, total cost of acquisition, and total amounts of awesome! You want justification? You got it.

ITG Studies to Help You Sell the Metal


International Technology Group (ITG) recently published two studies that talk about total cost of ownership, total cost of acquisition, risk exposure, cost of downtime, and security/malware considerations for the IBM i. The contents, in general, are things we know already: IBM i on Power Systems is the best platform to run our businesses on because of the cost reductions, consolidation, integration, security, simplicity, and the operating environment's virus resistance. Although some of this is old news, there are some great facts in here, so we need to dissect it a little bit. Why? Have you ever had to justify IBM i to a decision-maker? Wouldn't you love to have some key published information at your disposal? Absolutely. Those platform features I mentioned are a tall order to fill on most systems and may even sound like a bunch of hot air to those outside the IBM i community. Think about it. If you were a Windows administrator and lived only in the Windows world, what would you think if I told you that I could sell you a widely deployed operating system that had no known viruses? You probably wouldn't believe me.

Read the full article here.


Read the original at Steve Pitcher.

Categories: Blogs Tags:

Steve Pitcher › We’re Speaking At IBM Connect 2013!

December 14th, 2012 Comments off
Yes!  Now the real work begins!  All sessions are listed here
 
Session Business Agility and Efficiency with Consolidation
Program Lotusphere - For IT Practitioners
Track Track 08: Customer Case Studies (from an IT perspective)
Activity Type Lecture
Speaker(s) Tim Rowe, IBM; Steve Pitcher, Scotsburn Dairy Group; Roxanne Reynolds-Lair, Fashion Institute of Design & Merchandising
Abstract In today’s flat world, successful businesses have their staff, customers and business partners connected. Critical collaboration technologies include: email, instant messaging, internet meetings, mobile access and social networking. This enables better and smarter decisions to be made quickly. Collaboration can mean IT environments are getting more complex forcing companies to spend time managing their environments and not their businesses. Steve Pitcher of Scotsburn Dairy and Roxanne Reynolds-Lair CIO of Fashion Institute of Design & Merchandising will review how business value can be achieved with the state-of-the-art Collaboration Solutions running on Power Systems while keeping a simplified, agile and efficient IT environment.












Read the original at Steve Pitcher.

Categories: Blogs Tags:

Steve Pitcher › 2013 IBM Champions for Collaboration Solutions Announced

December 11th, 2012 Comments off
Today IBM announced their 2013 IBM Champions for Collaboration Solutions. 


I'm humbled to be included in this group for a second year.  Thanks for giving me the opportunity.

https://www-304.ibm.com/connections/blogs/socialbusiness/entry/december_10_2012_10_05_pm3?lang=en_us


Read the original at Steve Pitcher.

Categories: Blogs Tags:

Steve Pitcher › 2013 IBM Champions for Collaboration Solutions Announced

December 11th, 2012 Comments off
Today IBM announced their 2013 IBM Champions for Collaboration Solutions. 


I'm humbled to be included in this group for a second year.  Thanks for giving me the opportunity.

https://www-304.ibm.com/connections/blogs/socialbusiness/entry/december_10_2012_10_05_pm3?lang=en_us


Read the original at Steve Pitcher.

Categories: Blogs Tags:

Mike's IBM i PHP blog and more... › New Cumulative PTF for Zend Server for IBM i

December 10th, 2012 Comments off

 

Updates All in One!

Hot off the press, Zend Server Hot Fix 7 is a cumulative update for the Zend Server stack with almost all of the latest and greatest enhancements.  Folks who recently updated their PHP stack for Zend Server were probably getting annoyed at how many PTF's they needed to apply. Now in a single PTF update you can get all the following new enhancements to the PHP stack.

PHP Version 5.3.14

The PHP stack gets updated for PHP 5.3 users and this PTF is ONLY for PHP 5.3.  PHP 5.2 has been deprecated for some time and you'll notice from the download page that we reorganized the PHP 5.2 stuff to another page.  rest assured the 5.2 stuff will be around for a bit but the main download page was getting a tad cluttered.  

Zend Framework 1 & 2 

The Zend Framework stack for version 1 has been updated to 1.12.0 and Zend Framework 2 is now included.  The DB2 adapter is still undergoing some beta work and should be out soon, but for those who want to get going with ZF2 the code is there at 2.0.2.

PHP Toolkit and XML Service

We've updated the toolkit with a fresh copy of XML Service and the PHP code from the YiPs website but another version is coming soon.  Stay tuned. 

The PTF Process

When we introduced Zend Server we moved from an automatic update to a PTF approach as more and more IBM i shops were looking for a controlled environment.  So please get your PTF from the Zend Server download page and have an updated stack.  As always, please get your questions in early and often and feel free to ring up your account manager if your bandwidth is maxed out.  Our services folks would love to help!  Need some training?  Got that too!!!

As this will probably be my last blog of the year, please have a Merry Christmas and a Happy & Healthy New Year!  Wishing you all a Peaceful and Joyous 2013!  
  


Read the original at Mike's IBM i PHP blog and more....

Categories: Blogs Tags:
css.php