i want to schedule a job on netcofig to run ssh on all my switches in HQ ,the commands to be deployed is:
ip domain-name mycompany.net
crypto key generate rsa
bu the problem is the second command when run will ask about the length of the key ,so at this stage the task will not be completed through the netconfig,
is there any work around to handle this task by the netconfig?
There are two ways to do what you want. The first is to specify all the arguments to the crypto key command on one line. For example:
crypto key generate rsa modulus 1024
The second is to use Netconfig's interactive command feature. For example, your template would change to:
crypto key generate rsa1024
See the RME online help for more on Netconfig and interactive commands (search for "interactive").