Cisco Cisco Prime Access Registrar 6.0 Livre blanc

Page de 20
 
 
© 2014 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public Information. 
Page 3 of 20 
Batch files are also useful for creating AAA scenarios and testing them prior to deployment. Finally, single 
commands and batch files simplify the central configuration tasks of integrating OSS with multiple Cisco Prime 
Access Registrar servers. For more information on using aregcmd 
commands, see the “Using the aregcmd 
Commands” chapter of the 
. 
Example 
This section illustrates the use of individual aregcmd commands, as well as batches of con
figuration commands in 
file that is launched using the aregcmd –f <filename> command. The following example uses the aregcmd –f 
command to add the user Bob to the cisco.com userlist with the password car60ispower by placing the following 
into a 
file named newuser
cd /radius/userlists/cisco.com 
add bob 
cd bob 
set password car60ispower 
Entering at the command prompt: 
aregcmd –f newuser 
[ //localhost/Radius/UserLists/cisco.com/bob ] 
Name = bob 
Description = 
Password = <encrypted> 
AllowNullPassword = FALSE 
Enabled = TRUE 
Group~ = 
BaseProfile~ = 
AuthenticationScript~ = 
AuthorizationScript~ = 
UserDefined1 = 
Alternately, you can add the user Bob by entering into a 
file: 
add /Radius/Userlists/cisco.com/bob "" car60ispower 
Notice that the double quotes ("") represent an empty description. 
An example of OSS executing the configuration change directly by running aregcmd follows: 
aregcmd add /Radius/Userlists/cisco.com/bob "" car60ispower 
Other examples of using aregcmd directly or in batch 
files to update configurations follow: 
● 
To reset a user password using the aregcmd command directly: 
aregcmd set /Radius/Userlists/cisco.com/bob/password mynewpassword 
● 
To reset numerous user passwords, place the usernames and new passwords in a 
file and process the file 
using the aregcmd 
–f <filename> command. For example, to reset the user passwords for Bob, Sergio, 
and Pam, at Cisco, enter the following into a 
file named newpass
set /Radius/Userlists/cisco.com/bob/password mynewpassword 
set /Radius/Userlists/cisco.com/sergio/password mynewpassword 
set /Radius/Userlists/cisco.com/pam/password mynewpassword