SSH deploymentby Netconfig

Answered Question
Feb 29th, 2008
User Badges:

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?

Correct Answer by Joe Clarke about 9 years 4 months ago

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").

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (1 ratings)
Loading.
Correct Answer
Joe Clarke Fri, 02/29/2008 - 10:29
User Badges:
  • Cisco Employee,
  • Hall of Fame,

    Founding Member

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").

Actions

This Discussion