⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 debug.texi

📁 gnu 的radius服务器很好用的
💻 TEXI
📖 第 1 页 / 共 2 页
字号:
@dfn{Test mode} is used to test various aspects of radiusconfiguration, without starting the daemon. To enter test mode,run@smallexampleradiusd -mt@end smallexample@noindentYou will see usual @command{radiusd} diagnostics and the following two lines:@smallexample@cartouche** TEST SHELL **(radiusd) _@end cartouche@end smallexampleThe string @samp{** TEST SHELL **} indicates that @command{radiusd}has entered test mode, the string @samp{(radiusd)} is the shellprompt, indicating that @command{radiusd} is waiting for yourcommands.The syntax of test shell command resembles that of Bourne shell:each command consists of a list of @dfn{words} separated byany amount of whitespace. Each word is either a sequence of@dfn{allowed word characters} (i.e. alphabetical characters, decimaldigits, dashes and underscores), or any sequence of charactersenclosed in a pair of double quotes. The very first word isa @dfn{command verb}, the rest of words are arguments to thiscommand verb. A command verb may be used in its full form,in its abbreviated form (i.e. you may type only several firstcharacters of the verb, the only condition being that theydo not coincide with another command verb), or in it's shortform.The first command you should know is @code{help} (or, in its shortform, @code{h}). This command takes no arguments and displaysthe short summary of all the available commands. Here is an exampleof its output:@smallexample@group@cartouche(radiusd) helph       help                           Print this help screenq       query-nas NAS LOGIN SID PORT [IP]                                       Query the given NASg       guile                          Enter Guilers      rewrite-stack [NUMBER]         Print or set the Rewrite                                       stack sizer       run-rewrite FUNCTION(args..)   Run given Rewrite functions       source FILE                    Source the given Rewrite filet       timespan TIMESPAN [DOW [HH [MM]]]                                       Check the timespan intervald       debug LEVEL                    Set debugging levelrd      request-define [PAIR [,PAIR]]  Define a requestrp      request-print                  Print the requestquit    quit                           Quit the shell@end cartouche@end group@end smallexampleEach line of the output consists of three fields. The first fieldshows the short command form. The second one lists its full formand its arguments, optional arguments being enclosed in squarebrackets. The third field contains short textual description ofthe command. @deffn {Test Shell Command} query-nas @var{nas} @var{login} @var{sid} @var{port} [@var{ip}]@deffnx {Test Shell Abbreviation} qQueries the given @NAS{} about the session described by itsarguments. This command is useful in testing simultaneous login verification(@pxref{Multiple Login Checking}. Its arguments are@table @var@item nasSpecifies the @NAS{} to query. It cn be its short name as definedin @file{raddb/naslist}, or its fully qualified domain name, orits @IP{}.@item loginName of the user whose session should be verified.@item sidSession ID.@item portPort number on the @NAS{}.@item ipFramed @IP{}, assigned to the user.@end tableThe command displays the following result codes:@table @asis@item 0The session is not active.@item 1The session is active@item -1Some error occurred.@end table@end deffn@deffn {Test Shell Command} guile@deffnx {Test Shell Abbreviation} gEnter Guile shell. The command is only available if the package hasbeen compiled with Guile support. For more information, @xref{Guile}.@end deffn@deffn {Test Shell Command} rewrite-stack [@var{number}]@deffnx {Test Shell Abbreviation} rsPrints or sets the Rewrite stack size. @end deffn@deffn {Test Shell Command} run-rewrite @var{function}(@var{args} @dots{})   @deffnx {Test Shell Abbreviation} rRuns given Rewrite @var{function} and displays its returnvalue. Function arguments are specified in the usual way, i.e. as acomma-separated list of Rewrite tokens. If the function being tested operates on request contents(@pxref{Rewriting Incoming Requests}), you may supply the requestusing @code{request-define} command (see below).@end deffn@deffn {Test Shell Command} source @var{file} @deffnx {Test Shell Abbreviation} sReads and compiles (``source'') the given Rewrite @var{file}. Thecommand prints @samp{0} if the file was compiledsuccessfully. Otherwise, it prints @samp{1} and any relevant diagnostics.@end deffn@deffn {Test Shell Command} timespan @var{timespan} [@var{day-of-week} [@var{hour} [@var{minutes}]]]@deffnx {Test Shell Abbreviation} t       Checks whether the given time falls within the timespaninterval. Its first argument, @var{timespan}, contains the valid@radiusd{} timespan specification (@pxref{Login-Time}). Rest ofarguments define the time. If any of these is omitted, thecorresponding value from current local time is used.@table @var@item day-of-weekOrdinal day of week number, counted from 0. I.e.: Sunday -- 0, Monday-- 1, etc.@item hourHours counted from 0 to 24.@item minutesMinutes.@end tableThe following set of samples illustrates this command:@smallexample@group@cartouche(radiusd) timespan Wk0900-1800ctime: Tue Dec  2 16:08:47 2003inside Wk0900-1800: 6720 seconds left(radiusd) timespan Wk0900-1800 0ctime: Sun Nov 30 16:09:03 2003OUTSIDE Wk0900-1800: 60660 seconds to wait(radiusd) timespan Wk0900-1800 0 12 30ctime: Sun Nov 30 12:30:13 2003OUTSIDE Wk0900-1800: 73800 seconds to wait(radiusd) timespan Wk0900-1800 1 05 00ctime: Mon Dec  1 05:00:33 2003OUTSIDE Wk0900-1800: 14400 seconds to wait(radiusd) timespan Wk0900-1800 1 09 10ctime: Wed Jan  7 22:09:41 2004OUTSIDE Wk0900-1800: 39060 seconds to wait(radiusd) timespan Wk0900-1800 1 09 10ctime: Mon Dec  1 09:10:44 2003inside Wk0900-1800: 31800 seconds left(radiusd) @end cartouche@end group@end smallexample@end deffn@deffn {Test Shell Command} debug @var{level}@deffnx {Test Shell Abbreviation} dSet debugging level. @var{Level} is any valid debug levelspecification (@pxref{Debugging}).@end deffn@deffn {Test Shell Command} request-define [@var{pair} [,@var{pair}]]@deffnx {Test Shell Abbreviation} rd     Define a request for testing Rewrite functions. The optional argumentsare a comma-separated list of @AVP{}s. If they are omitted, thecommand enters interactive mode, allowing you to enter the desired@AVP{}s, as in the following example:@smallexample@group@cartouche(radiusd) request-defineEnter the pair list. End with end of file[radiusd] User-Name = smith, User-Password = guessme[radiusd] NAS-IP-Address = 10.10.10.1[radiusd] NAS-Port-Id = 34[radiusd] (radiusd) @end cartouche@end group@end smallexampleNotice that any number of @AVP{}s may be specified in a line. Tofinish entering the request, either type an @key{EOF} character orenter an empty line.@end deffn@deffn {Test Shell Command} request-print @deffnx {Test Shell Abbreviation} rpPrints the request, defined by @code{request-define}.@smallexample@group@cartouche(radiusd) request-print    User-Name = (STRING) smith    User-Password = (STRING) guessme    NAS-IP-Address = (IPADDR) 10.10.10.1    NAS-Port-Id = (INTEGER) 34(radiusd) @end cartouche@end group@end smallexample@end deffn@deffn {Test Shell Command} quitImmediately quits the shell.@end deffn

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -