• Please help support our sponsors by considering their products and services.
    Our sponsors enable us to serve you with this high-speed Internet connection and fast webservers you are currently using at ADSM.ORG.
    They support this free flow of information and knowledge exchange service at no cost to you.

    Please welcome our latest sponsor Tectrade . We can show our appreciation by learning more about Tectrade Solutions
  • Community Tip: Please Give Thanks to Those Sharing Their Knowledge.

    If you receive helpful answer on this forum, please show thanks to the poster by clicking "LIKE" link for the answer that you found helpful.

  • Community Tip: Forum Rules (PLEASE CLICK HERE TO READ BEFORE POSTING)

    Click the link above to access ADSM.ORG Acceptable Use Policy and forum rules which should be observed when using this website. Violators may be banned from this website. This notice will disappear after you have made at least 3 posts.

retrieve directories with special characters from console

waelti

ADSM.ORG Member
Joined
Apr 20, 2010
Messages
46
Reaction score
1
Points
0
Location
Germany
Sometimes we need to retrieve directories with contain special characters (äöüß).
The problem is, that I can´t type those characters in the console, because in TSM they are unicode.
In the attached picture you can see what I get, if I do a "q ar \\amanda\Projekte\Projekt\Abteilungsprojekte\B15\B151\UWS\Nifco\*"
The real result should be "\\amanda\Projekte\Projekt\Abteilungsprojekte\B15\B151\UWS\Nifco\20170663_Erprobung_Haken_Gepäckraum_10207400"
If I copy the string in the console (Windows), the special character is missing (in this case "ä")
So a retrieve doesn´t work (console closes after executing <Enter>)
I tried to set the codepage to unicode (65001), but this doesn´t change anything.
I don´t want to use the retrieve gui, because on TSM 7.1.6 it takes about 90 minutes, before ist opens. It seems, that the retrieve gui searches for all files, which are ever archived, before it opens. The restore gui doesn´t have this behaviour, it open immediately. I tried to use "-pick", but this takes only the directory without any file/directory below. I always need "-subdir=yes replace=no"
 

marclant

ADSM.ORG Moderator
Joined
Jun 16, 2006
Messages
3,619
Reaction score
580
Points
0
Location
Canada
Website
www-947.ibm.com
Use the ?, it's a single character wildcard:

dsmc restore "\\amanda\Projekte\Projekt\Abteilungsprojekte\B15\B151\UWS\Nifco\20170663_Erprobung_Haken_Gep?ckraum_10207400"
 

waelti

ADSM.ORG Member
Joined
Apr 20, 2010
Messages
46
Reaction score
1
Points
0
Location
Germany
Sorry, it doesn´t work:
tsm> q ar "\\amanda\projekte\Projekt\Abteilungsprojekte\B15\B151\UWS\Nifco\20170663_Erprobung_Haken_Gep?ckraum_10207400\*"
ANS1092W No files matching search criteria were found

I tried it before with a "*", this did not work (same error), so I didn´t try the "?"
tsm> q ar "\\amanda\projekte\Projekt\Abteilungsprojekte\B15\B151\UWS\Nifco\20170663_Erprobung_Haken_Gep*\*"
If a "q ar" doesn´t work, a "restore" shouldn´t work too, or am I wrong?
 

marclant

ADSM.ORG Moderator
Joined
Jun 16, 2006
Messages
3,619
Reaction score
580
Points
0
Location
Canada
Website
www-947.ibm.com
If you do:
q ar "\\amanda\projekte\Projekt\Abteilungsprojekte\B15\B151\UWS\Nifco\"
Do you see 20170663_Erprobung_Haken_Gep?ckraum_10207400 in the output?
 

waelti

ADSM.ORG Member
Joined
Apr 20, 2010
Messages
46
Reaction score
1
Points
0
Location
Germany
I see it, but the "ä" is another character (see attached file).
If I use Lucida console as a font, I see the "ä", but all after it is cut off.
I think, I need a console, which supports unicode character set, but I didn´t know any.
 

Attachments

marclant

ADSM.ORG Moderator
Joined
Jun 16, 2006
Messages
3,619
Reaction score
580
Points
0
Location
Canada
Website
www-947.ibm.com
It's far fetched, but if you copy the directory name as listed in the output and paste it in your following command.
 

waelti

ADSM.ORG Member
Joined
Apr 20, 2010
Messages
46
Reaction score
1
Points
0
Location
Germany
If I copy it, the special character isn´t copied (it looks like "20170663_Erprobung_Haken_Gepckraum_10207400"
When I hit <Enter> the console closes, I don´t even get an error message.
 

chad_small

ADSM.ORG Moderator
Joined
Dec 17, 2002
Messages
2,273
Reaction score
52
Points
0
Location
Gilbert, AZ
Website
www.tsmadmin.com
You might need to inspect the file in the backup and/or archive table to see how Spectrum Protect handled the file when it was backed up. Did it replace the character or did it capture it. I would run a select query on the backup table with the details of the directory (HL_NAME) to just before the stated directory with the problem character(s).
 

waelti

ADSM.ORG Member
Joined
Apr 20, 2010
Messages
46
Reaction score
1
Points
0
Location
Germany
HL_NAME is in capital letters and contains the correct letter in UTF-8
 

waelti

ADSM.ORG Member
Joined
Apr 20, 2010
Messages
46
Reaction score
1
Points
0
Location
Germany
Because Windows doesn´t seems to support unicode, I tried to use a Linux-client. When I start "dsmc -virtualnode=IN-PCSERVER" I get the warning "ANR1949W Session 1014 for node IN-PCSERVER (Linux x86-64) refused - the node has a unicode filespace but the client does not use unicode." LC_ALL is set to de_DE.utf-8. The version of the client is 7.1.8 . Does anybody know, how I have to configure the Linux-client to use unicode?
 

marclant

ADSM.ORG Moderator
Joined
Jun 16, 2006
Messages
3,619
Reaction score
580
Points
0
Location
Canada
Website
www-947.ibm.com
Because Windows doesn´t seems to support unicode, I tried to use a Linux-client. When I start "dsmc -virtualnode=IN-PCSERVER" I get the warning "ANR1949W Session 1014 for node IN-PCSERVER (Linux x86-64) refused - the node has a unicode filespace but the client does not use unicode." LC_ALL is set to de_DE.utf-8. The version of the client is 7.1.8 . Does anybody know, how I have to configure the Linux-client to use unicode?
You can't. Windows is the only client that uses unicode filespaces. You have to use the same type of client to do the restore as was used for the backup.
 

Advertise at ADSM.ORG

If you are reading this, so are your potential customer. Advertise at ADSM.ORG right now.

UpCloud high performance VPS at $5/month

Get started with $25 in credits on Cloud Servers. You must use link below to receive the credit. Use the promo to get upto 5 month of FREE Linux VPS.

The Spectrum Protect TLA (Three-Letter Acronym): ISP or something else?

  • Every product needs a TLA, Let's call it ISP (IBM Spectrum Protect).

    Votes: 18 18.2%
  • Keep using TSM for Spectrum Protect.

    Votes: 61 61.6%
  • Let's be formal and just say Spectrum Protect

    Votes: 12 12.1%
  • Other (please comement)

    Votes: 8 8.1%

Forum statistics

Threads
31,755
Messages
135,383
Members
21,748
Latest member
fabiont
Top