cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2286
Views
5
Helpful
4
Replies

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

bdiouf99
Level 1
Level 1

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 4

Hi,

use the script lines below

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

copy flash:testNAC.txt startup-config

startup-config

reload

yes

!

!

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

Joe Clarke
Cisco Employee
Cisco Employee

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

copy flash:testNAC.txt startup-config

reload

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 ???

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.