Esteemed monks, I'm trying to get DBD::TSM to work, but it refuses to accept my administrative username and password. Using Perl v5.8.8 on CentOS 5.4, have installed TIVsm-API-6.1.0-2 and TIVsm-BA-6.1.0-2. My test script is a slight rewrite of the example script ("dbi" was spelled "DBB" and no environment variables were set).
#!/usr/bin/perl -w use DBI; my ($server_name,$user,$password)=("enigsy-ser-backup-01", "########", + "########"); $ENV{'DSM_DIR'} = "/opt/tivoli/tsm/client/ba/bin/"; $ENV{'DSMADMC'} = "dsmadmc"; $ENV{'DSM_CONFIG'} = $ENV{'DSM_DIR'}."dsm.sys"; my $dbh=DBI->connect( "dbi:TSM:$server_name", $user, $password, { RaiseError => 0, PrintError => 0 } ) or die $DBI::errstr; my $sth=$dbh->prepare("query status") or die $dbh->errstr; $sth->execute() or die $sth->errstr(); print "@{$sth->{NAME}}\n"; $sth->dump_results();

The result? Connect: Invalid user id or password '########/########': 255/. at ./testq line 12.

The manual test suggested in the docs works ok, which should confirm that the dsmcadm and the login/password is OK:

[root@ikt-anlu-c5 bin]# dsmadmc -id=######## -pa=######## -se=enigsy-s +er-backup-01 query status IBM Tivoli Storage Manager Command Line Administrative Interface - Version 6, Release 1, Level 0. +2 (c) Copyright by IBM Corporation and other(s) 1990, 2009. All Rights R +eserved. Session established with server ENIGSY-SER-BACKUP-01: Windows Server Version 6, Release 1, Level 3.0 Server date/time: 02/03/2011 14:01:04 Last access: 02/03/2011 13:58 +:20 ANS8000I Server command: 'query status' Storage Management Server for Windows - Version 6, Release 1, Level 3. +0 Server Name: ENIGSY-SER-BACKUP-01 [...]

And here's dsm.sys:

SErvername enigsy-ser-backup-01 COMMMethod TCPip TCPPort 1500 TCPServeraddress 172.29.20.30 passwordaccess generate errorlogretention 14 d * 14 dager, d = delete errorlogname /var/log/dsm.errorlog schedlogretention 14 d schedlogname /var/log/dsm.schedlog managedservices webclient schedule *** Include/exclude Exclude /tmp Exclude /proc Exclude /.../core Exclude.Dir /mnt

I'm looking for someone who has worked with this module before and perhaps knows where to start looking for the cause?

Update: moritz suggested I use tcpdump to inspect the network traffic. DBD::TSM generates none at all.

-- Time flies when you don't know what you're doing

In reply to DBD::TSM says Invalid user id or password by FloydATC

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.