Usually you put the DUA commands in a script file so you can run them in batch mode.
The following set of command initializes the DUA and connects it to the DSA specified by the NSAP parameter in the bind request.
Example: Script for a DUA
# DUA Script Sample set summary-log = "DUAcli.log"; # keep a summary log echo-on # output commands to log # Include schema definitions. source "../schema/schema.dxg"; # schema rules # Log on bind-req user = <countryName "AU"> <organizationName "Democorp"> <organizationalUnitName "Services"> <organizationalUnitName "Networks"> <commonName "Brendan RANDALL" password = "secret" remote-addr = { nsap = ip "192.9.200.1" port 19389 } ; wait; if-reply bind-refuse then goto finish; # List root entries, to show we’re online list-req entry = < > ; wait; if-reply list-refuse then goto finish; # #...Put other DUA commands # #close the binding unbind req; wait; #...... % finish flush summary-log; quit;
Copyright © 2011 CA. All rights reserved. | Email CA Technologies about this topic |