Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

interactive commands (Netconfig) and the use of <R>

Dear,

I use the <R> for interaction, like:

CLI Command<R>command response 1 <R>command response 2

(LMS2.6, RME4.0.6 on Solaris)

An example:

I would like to do the configuration like this:

NRCC7002#conf t

Enter configuration commands, one per line. End with CNTL/Z.

NRCC7002(config)#crypto key generate rsa general-keys label ssh-key

% You already have RSA keys defined named ssh-key.

% Do you really want to replace them? [yes/no]: yes

Choose the size of the key modulus in the range of 360 to 2048 for your

General Purpose Keys. Choosing a key modulus greater than 512 may take

a few minutes.

How many bits in the modulus [512]: 2048

% Generating 2048 bit RSA keys, keys will be non-exportable...[OK]

NRCC7002(config)#

NRCC7002(config)#ip ssh rsa keypair-name ssh-key

Therefore I use:

crypto key generate rsa general-keys label ssh-key <R>yes <R>2048

ip ssh rsa keypair-name ssh-key

exit

wr

Now, I get a message:

Command(s) failed on the device TFTP: Failed on the device. Insufficient no. of interactive responses(or timeout) for command: crypto key generate rsa general-keys label ssh-key . Could not synchronize RME archive with Device Config

Q:

The key generation can take over 30 seconds. So could that be a reason that the config fails. Is there a way to announce netconfig to wait long enough on the second interaction ?

Jan

1 REPLY
Cisco Employee

Re: interactive commands (Netconfig) and the use of <R>

Yes, just increase the telnet timeout for this device in RME under RME > Devices > Device Management > RME Devices > Edit Device Attributes. The default is 36 seconds.

Additionally, DO NOT do "exit" then "wr". Instead, select the option in Netconfig to copy the running config to startup.

239
Views
0
Helpful
1
Replies