Friday, January 27, 2006

 

Playing with prompts. (Question #3)

Check out the following output from my router running Cisco IOS. It is displaying an unusual prompt to issue IOS commands even though its hostname as determined by using the "show running-config" command is simply "Router". How was this achieved?

MYSTERY_PROMPT$show running-config | include hostname
hostname Router
MYSTERY_PROMPT$
If you think you know the answer, use the comments to let me know. If nobody gets the right answer, I will publish the answer in a few days.

Comments:
Router# :-)
Raybones.
 
I think you misunderstood the question. Normally with the hostname set to "Router" you would expect the prompt to be "Router#". However, that is not what my router is showing. It is instead displaying a different prompt as indicated in the question. What needs to be answered is how I got the system to display a prompt different from what the hostname command specified.
 
Router#(config)prompt MYSTERY_PROMPT$

--
traceroute
 
Yes, that's right.

The "prompt" command is not very well documented and probably not much used or very useful indeed. Yet, I guess if you didn't know about It, it could trip you up in an exam!
 
Post a Comment

Links to this post:

Create a Link



<< Home

This page is powered by Blogger. Isn't yours?