We've a command line utility asadmin under <INSTALL_ROOT>/bin directory to do all the administrative tasks (similar to adminGUI). You can use this command line utility to create scripts.
[Message sent by forum member 'cchidamb' (cchidamb)]
http://forums.java.net/jive/thread.jspa?messageID=230349