Information Technology Reference
In-Depth Information
Using a Command-Line Interface
You can configure your RRAS server's accounting parameters from the command line using
the
netsh ras AAAA
syntax.
To display the accounting methods used by your RRAS server, run the following command:
> netsh ras AAAA show acctserv [[name=]
ServerID
]
In this code,
name
is an optional parameter that specifies the fully qualified domain name
(FQDN) or IP address of the server whose accounting method you want to display. If omitted,
the command will return results on all configured accounting servers.
The output will look like this:
> netsh ras AAAA show acctserv
Name Address Port Score Timeout Messages
RADIUS1 RADIUS1 1813 30 5 enabled
■
Note
The table will not contain any data if Windows accounting is used.
To configure the accounting method used by your RRAS server, run the
netsh ras AAAA
add acctserv
command:
> netsh ras AAAA add acctserv [name=]
<ServerID>
[[secret=]
<SharedSecret>
]
[[init-score=]
<ServerPriority>
] [[port=]
<Port>
] [[timeout=]
<Seconds>
]
[[messages=] {enabled | disabled}]
The parameters used by this command are as follows:
Name
: Required parameter that specifies the name of the RADIUS server. You may enter
this value as either the DNS name of the server or its IP address.
Secret
: Optional parameter that specifies the shared secret.
Init-Score
: Optional parameter that specifies the initial score or server priority. If omitted,
the default score of
30
will be assumed.
Port
: Optional parameter that specifies the port on which the RADIUS server listens for
authentication requests. If omitted, the default port of
1812
will be assumed.
Timeout
: Optional parameter that specifies the timeout value, specified in seconds. If omitted,
the default timeout of
5
seconds will be assumed.
Messages
: Optional parameter that specifies whether to send accounting ON and OFF
messages.
For example, to configure RRAS to send accounting details to the
RADIUS1
server with a
shared secret of
NCC1701A
, use the following command: