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. If you'd prefer to explore, try our test area to get started. And see here for current known issues.

New Member

Entering carriage returns in Netconfig.

Hi,

Does anyone know of a way to enter carriage returns within user defined tasks in NetConfig?

If this is not possible, has anyone tried this before and found a workaround?

i am trying to save the startup config to the local slot0: and a carriage return is required when naming the file and overwriting the old one.

Cheers.

1 ACCEPTED SOLUTION

Accepted Solutions
Cisco Employee

Re: Entering carriage returns in Netconfig.

You could always trying using a

The actually means "response to follow".

A without a response means "accept the default". If you wanted to use a different file for a write net, the command would be:

write net192.168.1.1my-rtr.cfg

And if you wanted to acknowledge each prompt explicitly:

write net192.168.1.1my-rtr.cfgy

(compliments of an earlier post)

3 REPLIES
Cisco Employee

Re: Entering carriage returns in Netconfig.

You could always trying using a

The actually means "response to follow".

A without a response means "accept the default". If you wanted to use a different file for a write net, the command would be:

write net192.168.1.1my-rtr.cfg

And if you wanted to acknowledge each prompt explicitly:

write net192.168.1.1my-rtr.cfgy

(compliments of an earlier post)

New Member

Re: Entering carriage returns in Netconfig.

Hi davistan,

This seems to do the trick, thanks for your help!

Can I just ask where the comes from? Looks like an HTML tag!?

Cisco Employee

Re: Entering carriage returns in Netconfig.

Looks similar to HTML tags, but is actually tags that are used when doing cli configs on devices. have a look at this link:

http://www.cisco.com/univercd/cc/td/doc/product/rtrmgmt/cw2000/cw2000e/e_4_x/4_0/u_guide/netcfg.htm#wp1085251

128
Views
5
Helpful
3
Replies