Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help Configuring a Menu System

Status
Not open for further replies.

1935

Technical User
May 17, 2002
77
US
Hello,

Is there some kind a way when someone select a specific number with text, they will be able to go into another option with text. Example:

menu Deal text 1. Ping Ethernet
menu Deal text 1. No Information Available


The second line is a sub text of the first line?

Thanks!
 
Can you call a menu from another menu?

ex:
menu Cmdr command 1 sh run
menu Cmdr command 2 menu menu2

 
Hello,

I was wondering if you can tell me where you get your menu commands from?

Is it the Cisco website? If so can you link me to where you got your information?

Thanks!
 
I found this. See if it helps.

Here is an example from my notes.

Router#sh run
Building configuration...

Current configuration : 3615 bytes
!
version 12.1
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname Router
!
aaa new-model
aaa authentication login default local
aaa authorization exec default local
enable password cisco
!
username basicmenu privilege 15 password 0 basicmenu
username basicmenu autocommand menu Basic
username cmdmenu privilege 15 password 0 cmdmenu
username cmdmenu autocommand menu Cmdr
username admin privilege 15 password 0 admin
!
!
!
!
ip subnet-zero
no ip finger
!
ipx routing 0000.0c14.6f01
!
!
!
interface Ethernet0
ip address 10.10.10.1 255.255.255.0
media-type 10BaseT
!
interface Ethernet1
no ip address
shutdown
media-type 10BaseT
!
interface Serial0
no ip address
shutdown
!
interface Serial1
no ip address
shutdown
!
interface Dialer0
no ip address
no cdp enable
!
router rip
network 10.0.0.0
!
ip classless
ip route profile
no ip http server
!
!
menu Basic title ^CC

*******************************************************
**** ****
**** This is a Basic Menu ****
**** ****
**** 1. Show Running Config ****
**** 2. Show Version ****
**** 3. Show Interface ****
**** 4. Show Frame PVC ****
**** 5. Show Ip Route ****
**** 6. Show Ipx Route ****
**** 7. Show Cdp Neighbor ****
**** 8. Echo Console to Screen ****
**** ****
**** 10. Disconnect ****
**** ****
*******************************************************

^C
menu Basic command 1 sh run
menu Basic command 2 sh ver
menu Basic command 3 sh int
menu Basic command 4 sh frame pvc
menu Basic command 5 sh ip route
menu Basic command 6 sh ipx router
menu Basic command 7 sh cdp nei
menu Basic command 8 term mon
menu Basic command 10 exit
menu Basic line-mode
!
menu Cmdr title ^CC

*******************************************************
**** ****
**** This is a Command Menu ****
**** ****
**** 1. Show Running Config ****
**** 2. Show Version ****
**** 3. Show Interface ****
**** 4. Show Frame PVC ****
**** 5. Show Ip Route ****
**** 6. Show Ipx Route ****
**** 7. Show Cdp Neighbor ****
**** 8. Echo Console to Screen ****
**** ****
**** 10. Exit To Command Line ****
**** ****
*******************************************************

^C
menu Cmdr command 1 sh run
menu Cmdr command 2 sh ver
menu Cmdr command 3 sh int
menu Cmdr command 4 sh frame pvc
menu Cmdr command 5 sh ip route
menu Cmdr command 6 sh ipx router
menu Cmdr command 7 sh cdp nei
menu Cmdr command 8 term mon
menu Cmdr command 10 menu-exit
menu Cmdr line-mode
!
!
!
!
line con 0
password cisco
transport input none
line aux 0
line vty 0 4
password cisco
!
end


====================================
 
Hello,

Is there some way can do an ip route statement when selecting a specific item?

Thanks!
 
In the example the Cmdr has option 5 which is "sh ip route"

 
Hello,

I don't want to be able to see all the routes, I like to be able by clicking on an item such as 1.

The ip route command is:

Ex. ip route 10.0.3.0 255.255.255.0 int s0/1

And some way to intiate this command to connect to another router. Is there a way to do that?

Thanks!

P.S. You are really being helpful. Thank You!
 
You can use any ONE LINE command you want.
But you cannot change a route like that.
Plus, you have only 20 spaces in each command.

As a reminder you have to have at least Three Commands to change a route.
ie:
(1) config terminal
(2) ip route 10.0.3.0 255.255.255.0 int s0/1
(3) exit

with this being three commands, you cannot do it by menu.

However, you can telnet to another router if you want, just replace the command in the menu item number
ie:
menu Cmdr command 5 telnet 10.0.4.1
or
menu Cmdr command 5 (any 1 command)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top