📄 yaz-client-ssl.1
字号:
.\" This manpage has been automatically generated by docbook2man .\" from a DocBook document. This tool can be found at:.\" <http://shell.ipoline.com/~elmert/comp/docbook2X/> .\" Please send any bug reports, improvements, comments, patches, .\" etc. to Steve Cheng <steve@ggi-project.org>..TH "YAZ-CLIENT" "1" "04 September 2003" "" "".SH NAMEyaz-client \- Z39.50/SRW client for implementors.SH SYNOPSIS\fByaz-client\fR [ \fB-m \fIfilename\fB\fR] [ \fB-a \fIfilename\fB\fR] [ \fB-c \fIfilename\fB\fR] [ \fB-q \fIfilename\fB\fR] [ \fB-p \fIaddr\fB\fR] [ \fB-u \fIauth\fB\fR] [ \fB-k \fIsize\fB\fR] [ \fBaddr\fR] \fByaz-client-ssl\fR [ \fBoption\fR\fI ...\fR] [ \fBaddr\fR] .SH "DESCRIPTION".PP\fByaz-client\fR is a Z39.50/SRW client (origin) with asimple command line interface that allows you to test behavior andperformance of Z39.50 targets and SRW servers..PP\fByaz-client-ssl\fR is identical to\fByaz-client\fR except that it supports SSL transport..PPIf the \fIaddr\fR is specified, the client createsa connection to the Z39.50/SRW target at the address..SH "OPTIONS".TP\fB-m \fIfilename\fB\fRIf specified, retrieved MARC (ISO2709) records willbe appended to the file given..TP\fB-a \fIfilename\fB\fRIf specified, logging of protocol packages will be appendedfile given. The special filename -(dash) denotes standard output..TP\fB-u \fIauth\fB\fRIf specified, the \fIauth\fR stringwill be used for authentication..TP\fB-c \fIfilename\fB\fRIf specified, CCL configuration will be read fromthe file given..TP\fB-q \fIfilename\fB\fRIf specified, CQL configuration will be read fromthe file given..TP\fB-p \fIaddr\fB\fRIf specified, the client will use the proxy at the addressgiven..SH "COMMANDS".PPThe YAZ client accepts the following commands..TP\fB open \fIzurl\fB \fROpens a connection to a server. The syntax for\fIzurl\fR is the same as describedabove for connecting from the command line.Syntax:[(tcp|ssl|unix|http)':']\fIhost\fR[:\fIport\fR][/\fIbase\fR].TP\fB quit \fRQuits YAZ client.TP\fB f \fIquery\fB\fRSends a Search Request using the \fIquery\fRgiven..TP\fB delete \fIsetname\fB\fRDeletes result set with name \fIsetname\fRon the server..TP\fB base \fIbase1\fB \fIbase2\fB ... \fRSets the name(s) of the database(s) to search. One or moredatabases may be specified separated by blanks. This commands overridesthe database given in \fIzurl\fR..TP\fB show [\fIstart\fB[+\fInumber\fB]] \fRFetches records by sending a Present Request from the startposition given by\fIstart\fRa number of records given by \fInumber\fR. If\fIstart\fR is not given, then the clientwill fetch from position of the last retrieved record plus 1. If\fInumber\fR is not given, then one record willbe fetched at a time..TP\fB scan \fIterm\fB \fRScansdatabase index for a term. The syntax resembles the syntaxfor find.If you want to scan for the word water you couldwrite.nf scan water .fibut if you want to scan only in, say the title field, you would write.nf scan @attr 1=4 water .fi.TP\fB sort \fIsortspecs\fB \fRSorts a result set. The sort command takes asequence of sort specifications. A sortspecification holds a field (sort criteria) and is followed by flags.If the sort criteria includes = it is assumedthat the sort SortKey is of type sortAttributes using Bib-1.The integer before = isthe attribute type and the integer following =is the attribute value.If no = is in the SortKey it is treated as asortfield-type of type InternationalString.Flags observed are: sfor case sensitive, i for case insensitive,< for sort ascending and >for sort descending..TP\fB sort+ \fRSame as sort but stores the sortedresult set in a new result set..TP\fB authentication \fIopenauth\fB \fRSets up a authentication string if a server requiresauthentication (v2 OpenStyle). The authentication string is firstsent to the server when the open command isissued and the Z39.50 Initialize Request is sent, so this commandmust be used before open in order to be effective.A common convention for the \fIauthopen\fR stringis that the username - and password is separated by a slash, e.g.myusername/mysecret..TP\fB lslb \fIn\fB \fRSets the limit for when no records should be returnedtogether with the search result.See theZ39.50 standard <URL:http://lcweb.loc.gov/z3950/agency/markup/04.html#3.2.2.1.6>for more details..TP\fB ssub \fIn\fB \fRSets the limit for when all records should be returned withthe search result.See theZ39.50 standard <URL:http://lcweb.loc.gov/z3950/agency/markup/04.html#3.2.2.1.6> for more details..TP\fB mspn \fIn\fB \fRSets the number of records should be returned if thenumber of records in the result set is between the values oflslb and ssub.See theZ39.50 standard <URL:http://lcweb.loc.gov/z3950/agency/markup/04.html#3.2.2.1.6>for more details..TP\fB status \fRDisplays the values of lslb,ssub and mspn..TP\fB setname \fRSwitches named result sets on and off. Default is on..TP\fB cancel \fRSends a Trigger Resource Control Request to the target..TP\fB format \fIoid\fB \fRSets the preferred transfer syntax for retrieved records.yaz-client supports all the record syntaxes that currentlyare registered. SeeZ39.50 Standard <URL:http://lcweb.loc.gov/z3950/agency/defns/oids.html#5>for more details. Commonly used records syntaxes include usmarc,sutrs, grs1 and xml..TP\fB elements \fIe\fB \fRSets the element set name for the records. Many targets supportelement sets are B (for brief) and F (for full)..TP\fB close \fRSends a Z39.50 Close APDU and closes connection with the peer.TP\fB querytype \fItype\fB \fRSets the query type as used by command find.The following is supported:prefix forPrefix Query Notation (Type-1 Query);ccl for CCL search (Type-2 Query),cql for CQL (Type-104 search with CQL OID),ccl2rpn forCCL to RPN conversion (Type-1 Query).cql2rpn forCQL to RPN conversion (Type-1 Query)..TP\fB attributeset \fIset\fB \fRSets attribute set OID for prefix queries (RPN, Type-1)..TP\fB refid \fIid\fB \fRSets reference ID for Z39.50 Request(s)..TP\fB itemorder \fItype\fB \fIno\fB \fRSends an Item Order Request using the ILL External. \fItype\fR is either 1 or 2 which corresponds toILL-Profile 1 and 2 respectively. The \fIno\fRis the Result Set position of the record to be ordered..TP\fB update \fRSends Item Update Request. This command sends a "minimal"PDU Update to the target supplying the last received record fromthe target.If no record has been received from the target this command is ignoredand nothing is sent to the target..TP\fB . \fIfilename\fB \fRExecutes list of commands fromfile \fIfilename\fR, just like source onmost UNIX shells..TP\fB ! \fIargs\fB \fRExecutes command \fIargs\fR in subshellusing the system call..TP\fB push_commande \fIcommand\fB \fRThe push_command takes another command as its argument.That command is then added to the history information (soyou can retrieve it later). The command itself is notexecuted. This command only works if you have GNU readline/historyenabled..TP\fB set_apdufile \fIfilename\fB \fRSets that APDU should be logged to file\fIfilename\fR. This command does thething as option -a..TP\fB set_marcdump \fIfilename\fB \fRSpecifies that all retrieved records should be appended otfile \fIfilename\fR. This command does thething as option -m..TP\fB schema \fIschemaid\fB \fRSpecifies schema for retrieval.Schema may be specified as an OID for Z39.50.For SRW, schema is a simple string URI..TP\fB charset \fInegotiationcharset\fB [\fIoutputcharset\fB] \fRSpecifies character set (encoding) for Z39.50negotiation / SRW encoding and/or character set for output (terminal).\fInegotiationcharset\fR is the nameof the character set to be negotiated by the server. The special name- for \fInegotiationcharset\fRspecifies \fBno\fR character set to be negotiated.If \fIoutputcharset\fR is given, it specifies nameof the character set of the output (on the terminal on whichYAZ client is running). To disable conversion of charactersto the output encoding, the special name - (dash)can be used.If the special name auto is given, YAZ client willconvert strings to the encoding of theterminal as returned by \fBnl_langinfo\fR call..sp.RS.B "Note:"Since character set negotation takes effect in the Z39.50Initialize Request you should issue this command beforecommand open is used..RE.sp.RS.B "Note:"MARC records are not covered by Z39.50 character set negotiation.See marccharset..RE.TP\fB marccharset \fIcharset\fB \fRSpecifies character set for retrieved MARC records sothat YAZ client can display them in a character suitablefor your display. See charset command.If auto is given, YAZ will assumethat MARC21/USMARC is using MARC8/UTF8 and ISO-8859-1for all other MARC variants..TP\fB set_cclfields \fIfilename\fB \fRSpecifies that CCL fields should be read from filefile \fIfilename\fR. This command does thething as option -c..TP\fB set_cqlfields \fIfilename\fB \fRSpecifies that CQL fields should be read from filefile \fIfilename\fR. This command does thething as option -q..TP\fB register_oid \fIname\fB \fIclass\fB \fIOID\fB \fRThis command allows you to register your own objectidentifier - so that instead of entering a long dot-notationyou can use a short name instead.The \fIname\fR is yourname for the OID, \fIclass\fR is theclass, and \fIOID\fR is the raw OID indot notation. Class is one appctx,absyn, attet,transyn, diagset,recsyn, resform,accform, extserv,userinfo, elemspec,varset, schema,tagset, general.If you're in doubt use the generalclass..SH "FILES".PP\fIyaz-<version>/client/client.c\fR.SH "SEE ALSO".PP\fByaz\fR(7).PPSection "The YAZ Client" in the YAZ manual..PPSection "Prefix Query Format" in the YAZ manual..PPSection "Common Command Language" in the YAZ manual..PPSection "Common QUery Language" in the YAZ manual.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -