02-06-2017 01:50 PM
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.
Solved! Go to Solution.
02-07-2017 03:24 AM - edited 02-07-2017 03:26 AM
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
02-06-2017 10:13 PM
02-07-2017 12:56 AM
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)
02-07-2017 01:08 AM
Maybe Powershell has a special meaning for the curly brackets {} and you need a way to specify literal meaning? Like quotes or something similar.
02-07-2017 03:24 AM - edited 02-07-2017 03:26 AM
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
02-07-2017 03:47 AM
Ahh powershell ... must need the " then
Thanks for pointing that out .... ;0)
02-07-2017 06:28 AM
The quotes did it; Thanks!