Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements
Webcast-Catalyst9k
New Member

netconfig : how can i represent "Enter" key in a command

hi,

i want the define a user-tasks to deploy this command:

SW_E3_IT_NAC2#copy flash:testNAC.txt startup-config

SW_E3_IT_NAC2#reload

now, i want to know how represent the "Enter" key in the script to confirm the destination :

Destination filename [startup-config]?

thanks.

4 REPLIES

Re: netconfig : how can i represent "Enter" key in a command

Hi,

use the script lines below

======================================

copy flash:testNAC.txt startup-config

startup-config

reload

yes

!

!

==========================================

Cisco Employee

Re: netconfig : how can i represent "Enter" key in a command

Use the notation to indicate the expected response. For example, above:

copy flash:testNAC.txt startup-config

reload

New Member

Re: netconfig : how can i represent "Enter" key in a command

hello clarke,

i used after each command :

erase nvram:

copy flash:testNAC.txt startup

reload

the switch reload, it's work fine and i got the result that i want!!

But the job result display to me "Failure", there is the message :

Deploy command partially failed Insufficient no. of interactive responses(or timeout) for command: reload. Could not synchronize RME archive with Device Config

what that means ???

Cisco Employee

Re: netconfig : how can i represent "Enter" key in a command

Any Netconfig job which ends in a reload will be reported as failed since the switch immediately reloads after the command, and RME cannot verify the results. This is fixed in RME 4.1 which has added a Netconfig task specifically to do a reload. If you end the job with this task, then the job will be reported as success.

562
Views
5
Helpful
4
Replies
CreatePlease to create content