Search found 15 matches

by cforest
Thu Oct 24, 2019 4:56 pm
Forum: StarWind Virtual Tape Library (VTL) [+Free], VTL Appliance, Backup Appliance, Virtual Backup Appliance [+Free]
Topic: Getting the list of the tapes in the Offline Shelf
Replies: 3
Views: 7462

Re: Getting the list of the tapes in the Offline Shelf

Thank you! It seems to work. The only thing I changed was using both SlotType and TapeType, because I observed "Unknown" for tapes in the Offline Shelf and the tapes in Drives. if (($tape.SlotType -match 'Unknown') -and ($tape.TapeType -eq '')) { Offline Tape: SWPKU001 Offline Tape: SWPKU0...
by cforest
Wed Oct 23, 2019 5:10 pm
Forum: StarWind Virtual Tape Library (VTL) [+Free], VTL Appliance, Backup Appliance, Virtual Backup Appliance [+Free]
Topic: Getting the list of the tapes in the Offline Shelf
Replies: 3
Views: 7462

Getting the list of the tapes in the Offline Shelf

Hi there, Just wanted to ask if there is any way to get the lists of the tapes in the Offline Shelf for a given VTL device via StarWindX with PowerShell? We need it to automate inserting a tape back to the drive/slot when we don't know the names of the such tapes in advance. To automate it, we alrea...
by cforest
Fri Sep 13, 2019 2:56 pm
Forum: StarWind Virtual Tape Library (VTL) [+Free], VTL Appliance, Backup Appliance, Virtual Backup Appliance [+Free]
Topic: StarWindService.exe: memory leaks
Replies: 5
Views: 8887

Re: StarWindService.exe: memory leaks

Hi there,

It seems to have helped. I will keep an eye on it and let you know if anything like that occurs again (hopefully not)

Thank you!
by cforest
Mon Sep 09, 2019 4:56 pm
Forum: StarWind Virtual Tape Library (VTL) [+Free], VTL Appliance, Backup Appliance, Virtual Backup Appliance [+Free]
Topic: StarWindService.exe: memory leaks
Replies: 5
Views: 8887

StarWindService.exe: memory leaks

Hi there, Have you ever observed memory leaks for StarWindService.exe? In our environment, this process grabs Private Bytes quite fast, so the whole memory is consumed within a day, and the machine becomes unresponsive. It worked like a charm since January, but in the last month we began to observe ...
by cforest
Mon Jan 14, 2019 9:43 am
Forum: StarWind Virtual SAN (VSAN) [+Free], HCI Appliance (HCA), Virtual HCI Appliance (VHCA) [+Free]
Topic: Powershell cmdlets: running a script remotely
Replies: 5
Views: 7417

Re: Powershell cmdlets: running a script remotely

Boris, thank you so much, it works!

Honestly, running a script inside a script is a bit less convenient than specifying a code inside a script block, but I will be able to cope with that.

Thanks!
by cforest
Fri Jan 11, 2019 4:42 pm
Forum: StarWind Virtual SAN (VSAN) [+Free], HCI Appliance (HCA), Virtual HCI Appliance (VHCA) [+Free]
Topic: Powershell cmdlets: running a script remotely
Replies: 5
Views: 7417

Re: Powershell cmdlets: running a script remotely

Boris (staff) wrote:powershell.exe -sta -file "path_to_your_script.ps1" - did you try it this way?
I did. It doesn't work, the same error.
by cforest
Fri Jan 11, 2019 2:35 pm
Forum: StarWind Virtual SAN (VSAN) [+Free], HCI Appliance (HCA), Virtual HCI Appliance (VHCA) [+Free]
Topic: Powershell cmdlets: running a script remotely
Replies: 5
Views: 7417

Powershell cmdlets: running a script remotely

Hi there, Just wanted to ask if it is somehow possible to use StarWindX cmdlets while running a PowerShell script on a remote computer. Here is my code: param ( $tapeLibMachine ) $mycreds = ConvertTo-SecureString "MyPassword" -AsPlainText -Force | % {New-Object System.Management.Automation...
by cforest
Mon Dec 17, 2018 5:17 pm
Forum: StarWind Virtual SAN (VSAN) [+Free], HCI Appliance (HCA), Virtual HCI Appliance (VHCA) [+Free]
Topic: Powershell cmdlets: how to get a list of free slots?
Replies: 11
Views: 12306

Re: Powershell cmdlets: how to get a list of free slots?

Update: installed 12658 from scratch with no upgrade. Inserting a tape seems to work. Thanks for your help!

Yuri
by cforest
Mon Dec 17, 2018 3:59 pm
Forum: StarWind Virtual SAN (VSAN) [+Free], HCI Appliance (HCA), Virtual HCI Appliance (VHCA) [+Free]
Topic: Powershell cmdlets: how to get a list of free slots?
Replies: 11
Views: 12306

Re: Powershell cmdlets: how to get a list of free slots?

Actually, in a sample for 11818, it looks like that:

$slotName = "Slot_4096";

But thank you so much for pointing out, anyway! It seems to have been changed in the latest version. I could miss it after an upgrade. So I will try with integer.

Yuri
by cforest
Mon Dec 17, 2018 1:26 pm
Forum: StarWind Virtual SAN (VSAN) [+Free], HCI Appliance (HCA), Virtual HCI Appliance (VHCA) [+Free]
Topic: Powershell cmdlets: how to get a list of free slots?
Replies: 11
Views: 12306

Re: Powershell cmdlets: how to get a list of free slots?

Update: I tried to use StarWindX.dll from v.12658 with v. 11818 and got an error: Inserting tape...Cannot convert argument "1", with value: "Slot_1", for "InsertTape" to type "System.Int32": "Cannot convert value "Slot_1" to type "System.In...
by cforest
Mon Dec 17, 2018 9:11 am
Forum: StarWind Virtual SAN (VSAN) [+Free], HCI Appliance (HCA), Virtual HCI Appliance (VHCA) [+Free]
Topic: Powershell cmdlets: how to get a list of free slots?
Replies: 11
Views: 12306

Re: Powershell cmdlets: how to get a list of free slots?

Hi Boris, Thanks for the answer! If this issue is to be resolved with the latest build, is it possible to get StarWindX.dll from the latest build for x64 platform just to verify if it works in our environment? The reason we ask for it is to be sure it is a panacea. At the moment, we are quite satisf...
by cforest
Sun Dec 16, 2018 2:52 pm
Forum: StarWind Virtual SAN (VSAN) [+Free], HCI Appliance (HCA), Virtual HCI Appliance (VHCA) [+Free]
Topic: Powershell cmdlets: how to get a list of free slots?
Replies: 11
Views: 12306

Re: Powershell cmdlets: how to get a list of free slots?

Hi there, Just in case, here is the StarWind version: 8.0.0.11818 To be more specific, attached are some details: 1. Screenshot.png - here is my VTL configuration (10 tapes, one of them being offline) 2. getTapesAndSlots.ps1 - a script to get a list of all tapes and slots for my VTL 3. TapesAndSlots...
by cforest
Fri Dec 14, 2018 5:25 pm
Forum: StarWind Virtual SAN (VSAN) [+Free], HCI Appliance (HCA), Virtual HCI Appliance (VHCA) [+Free]
Topic: Powershell cmdlets: how to get a list of free slots?
Replies: 11
Views: 12306

Re: Powershell cmdlets: how to get a list of free slots?

In the sample script there is a comment as follows: # # print all slots. if barcode is empty it means that slot is empty. # It makes me this it is exactly what you are looking for. So, in your script you simply need to check whether the Barcode property is empty or not, and based on this you will b...
by cforest
Fri Dec 14, 2018 10:58 am
Forum: StarWind Virtual SAN (VSAN) [+Free], HCI Appliance (HCA), Virtual HCI Appliance (VHCA) [+Free]
Topic: Powershell cmdlets: how to get a list of free slots?
Replies: 11
Views: 12306

Powershell cmdlets: how to get a list of free slots?

Morning, I am trying to leverage the InsertVirtualTape.ps1 script available in the StarWindX folder. Generally, it works, but I fail to understand if there is any method/property for a given slot to get to know if it is empty or not. Is it possible? Just to make it more clear - here is the code: for...