netsconfig job on LMS 3.0

Answered Question
Apr 2nd, 2008
User Badges:

I want to schedule a daily job to copy my config to a flash card.


on the router the command would be

copy run disk1:


the router would then ask if the name should be running-config ...


How can I do this with netconfig? as I have no way of sending a carriage-return (enter)


Thanks

Correct Answer by Joe Clarke about 9 years 3 weeks ago

Netconfig does support interactive commands. You will need to use the command response sequence in your job. For example:


copy runn disk:


This assumes a dialog like:


copy runn disk1:

Destination filename [running-config]?

%Warning:There is a file already existing with this name

Do you want to over write? [confirm]


For more on Netconfig and interactive commands, consult the RME online help:


http://SERVER/help/rme/fundamentals/netcfg_AdhocTasks.html


Of course, you could configure "file prompt quiet" on the device, and then just run "copy runn disk1:" without needing to answer any questions.

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

    Founding Member

Netconfig does support interactive commands. You will need to use the command response sequence in your job. For example:


copy runn disk:


This assumes a dialog like:


copy runn disk1:

Destination filename [running-config]?

%Warning:There is a file already existing with this name

Do you want to over write? [confirm]


For more on Netconfig and interactive commands, consult the RME online help:


http://SERVER/help/rme/fundamentals/netcfg_AdhocTasks.html


Of course, you could configure "file prompt quiet" on the device, and then just run "copy runn disk1:" without needing to answer any questions.

srego4 Wed, 04/02/2008 - 14:54
User Badges:

thanks jclarke. I did not even finish filling up the TAC form... and got this answer.


and yes it worked fine.


Thanks again.

Actions

This Discussion