HPE StoreEver Tape Storage
1855933 Members
11968 Online
104107 Solutions
New Discussion

Re: LTFS StoreOpen - Windows Command Line Operations

 
Hannes334
Visitor

LTFS StoreOpen - Windows Command Line Operations

Currently on HPE StoreOpen Standalone 3.5.0 with a HPE LTO Ultrium-8 drive.

Although the "LTFS Configuration" GUI utility works fine, I would prefer the command line utility for scripting purposes.  This ships with a Windows command-line application ltfs.exe, however after consulting the "advanced help" via the ltfs -a command, I am still unable to figure out how to do the following:

  • physically eject cartridge

For example, i try to  physically eject an LTFS cartridge mounted to drive F:, I tried this command

ltfs F:\ -o eject

but results in the following error message in the cmd window:

ERROR: Running as a console only supported in debug mode.

4 REPLIES 4
Vinky_99
Esteemed Contributor

Re: LTFS StoreOpen - Windows Command Line Operations

@Hannes334 

Good day! 

The error message you encountered suggests that the command you used to physically eject the cartridge is incompatible with the console-only mode. To resolve this issue, you need to run the ltfs.exe command in debug mode.

 

Let me know if that helps! 

These are my opinions so use it at your own risk.
Hannes334
Visitor

Re: LTFS StoreOpen - Windows Command Line Operations

Oh? Is that so? I wouldn't have dreamed that a message saying that the command is only supported in debug mode would tell me to run the command in debug mode.

Vinky_99
Esteemed Contributor

Re: LTFS StoreOpen - Windows Command Line Operations

@Hannes334 

>> Open a command prompt as an administrator.


>> Navigate to the directory where the ltfs.exe command is located. For example, if it's installed in the "C:\Program Files\LTFS" directory, you can use the following command to change the directory:

cd C:\Program Files\LTFS

>> Run the ltfs.exe command in debug mode using the "-d" option. Here's an example command to physically eject the cartridge from drive F:

ltfs.exe -d F:\ -o eject

>>By using the "-d" option, you enable debug mode, which allows you to use the eject command successfully. Make sure you replace "ltfs.exe" with the actual name of the executable file if it differs in your system.

Note: Debug mode may produce additional output for troubleshooting purposes. If you don't require the debug information, you can redirect the output to a file by appending "> output.txt" to the command. This way, the output will be saved in the "output.txt" file for further analysis if needed.

After executing the command, the LTFS utility should attempt to physically eject the cartridge from the specified drive. Please ensure that there are no active file operations or open files on the cartridge, as it may prevent ejection.

I hope this helps! Let me know how it goes....

These are my opinions so use it at your own risk.
Sunitha_Mod
Honored Contributor

Re: LTFS StoreOpen - Windows Command Line Operations

Hello @Hannes334,

Let us know if you were able to resolve the issue.

If you have no further query and you are satisfied with the answer then kindly mark the topic as Solved so that it is helpful for all community members.