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

How to user command in NetConfig when some command interactive with user?

How to user command in NetConfig when some command interactive with user?

Do it have specail character set to use ?

2 REPLIES
Cisco Employee

Re: How to user command in NetConfig when some command interacti

It depends on which version of Netconfig you are using, but you can use interactive commands in later versions. Here's an example of doing a write net command:

write net 192.1.1.1

the signifies a carriage return

Cisco Employee

Re: How to user command in NetConfig when some command interacti

This is a popular misconception. 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

Note: there is no trailing as the 'y' does not generate a new interactive prompt.

It is also important to note that for a given command, all responses must follow on the SAME LINE. That is, this will NOT work:

write net

192.168.1.1

my-rtr.cfg

y

171
Views
5
Helpful
2
Replies
CreatePlease login to create content