cancel
Showing results for 
Search instead for 
Did you mean: 

How to specify robotic path for tldtest on Windows media server

sclind
Level 6

I have a Windows 2012 media server running Netbackup 7.7.3.  I need to code tldtest in a Powershell script yet every reference to the robotic path I've tried has failed:

PS D:\Program Files\Veritas\volmgr\bin> .\tldtest -r {2,0,0,0}
usage: D:\Program Files\Veritas\volmgr\bin\tldtest.exe {-p port -b bus -t target -l lun | -r robotic_path}
[-d1 Drive_1_Path] [-d2 Drive_2_Path] ... [-d648 Drive_648_Path]

I know that 2,0,0,0 is the path of the robot.  I have another Windows master server that runs tldtest in a script; its path is 3,0,0,0 and it uses the above syntax in the script.

Am I missing something simple here?  There is lots of doc on paths for non-windows servers but I am not finding examples for Windows servers.

1 ACCEPTED SOLUTION

Accepted Solutions

quebek
Moderator
Moderator
   VIP    Certified

Hello

Well this was quite easy to manage ;) - please take a look

PS C:\> tldtest -r "{3,0,0,1}"
Opening {3,0,0,1}
MODE_SENSE complete
Enter tld commands (? returns help information)
s d
drive 1 (addr 1) access = 1 Contains Cartridge = no
drive 2 (addr 2) access = 1 Contains Cartridge = no
drive 3 (addr 3) access = 1 Contains Cartridge = no
READ_ELEMENT_STATUS complete

Open quotation marks prior and after curly bracket.... and this was ran from power shell...

PS C:\> Get-Variable ShellId

Name Value
---- -----
ShellId Microsoft.PowerShell

View solution in original post

6 REPLIES 6

Marianne
Level 6
Partner    VIP    Accredited Certified
Try robtest.
When you select the robot number, it will show the tldtest command with the robot path.

mph999
Level 6
Employee Accredited

Check the robotic path from tpconfig -d

That should work in tldtest 

Eg

From tpconfig -d

Currently defined robotics are:
TLD(0) SCSI coordinates = {4,0,0,1}

EMM Server = nbmaster1

Trying tldtest ...


C:\Users\Administrator>tldtest -r {4,0,0,1}
Opening {4,0,0,1}
MODE_SENSE complete
Enter tld commands (? returns help information)

Marianne
Level 6
Partner    VIP    Accredited Certified

Maybe Powershell has a special meaning for the curly brackets {} and you need a way to specify literal meaning? Like quotes or something similar.

quebek
Moderator
Moderator
   VIP    Certified

Hello

Well this was quite easy to manage ;) - please take a look

PS C:\> tldtest -r "{3,0,0,1}"
Opening {3,0,0,1}
MODE_SENSE complete
Enter tld commands (? returns help information)
s d
drive 1 (addr 1) access = 1 Contains Cartridge = no
drive 2 (addr 2) access = 1 Contains Cartridge = no
drive 3 (addr 3) access = 1 Contains Cartridge = no
READ_ELEMENT_STATUS complete

Open quotation marks prior and after curly bracket.... and this was ran from power shell...

PS C:\> Get-Variable ShellId

Name Value
---- -----
ShellId Microsoft.PowerShell

mph999
Level 6
Employee Accredited

Ahh powershell ... must need the " then

Thanks for pointing that out ....  ;0)

The quotes did it; Thanks!