From: McCallum, Robert (Robert.McCallum@xxxxxxxxxxxxxxxxxx)
Date: Thu May 10 2001 - 07:49:45 GMT-3
Dhana,
What I have to do is for the 3 commands below to be tied to one menu
command.
Basically what i am trying to do is enter from the command line 2 commands
i.e.
conf t ; int fast0/0 then press return and i want to be in interface
configuration mode. When I type this command however i just go into global
configuration mode. Does anyone know how to do this??
-----Original Message-----
From: Dhana [mailto:sakthi_vel23@rediffmail.com]
Sent: 10 May 2001 11:42
To: Robert.McCallum@let-it-be-thus.com; ccielab@groupstudy.com;
cisco@groupstudy.com
Subject: Re: Menus
Hai,
Text displays the menu options and the line no has to match with command
line nos. Make sure that you give way out from the menu loop by using
"menu-exit" command.
menu robert text 1 config
menu robert text 2 int-e0
menu robert text 3 shut
menu robert text 4 Exit
menu robert command 1 config terminal
menu robert command 2 interface ethernet 0/0
menu robert command 3 shut
menu robert command 4 menu-exit
Hope this helps
Regards
Sakthi
------------- Original Message --------------
"McCallum, Robert" <Robert.McCallum@let-it-be-thus.com> wrote:
To:"'Ccielab' (E-mail)" <ccielab@groupstudy.com>,
"Cisco@Groupstudy.
Com (E-mail)" <cisco@groupstudy.com>
From:"McCallum, Robert" <Robert.McCallum@let-it-be-thus.com>
Date:Thu, 10 May 2001 10:37:40 +0100
Subject:Menus
Hi,
Does anyone know how to configure a menu such that by pressing key 1 it will
do various commands i.e.
menu robert text 1 Press key 1 to shut ehternet interface down
menu robert command 1 conf t
then when you put in more menu robert command 1 they just overwrite each
other.
What I need to do is
menu robert command 1 config terminal
menu robert command 1 interface ethernet 0/0
menu robert command 1 shut
menu robert command 1 exit
BUT the only command which is showing is the last menu robert command 1
exit.
I have tried to do menu robert command 1 conf t int e0/0 shut exit
but of course it errors as expected saying that there is no more commands
after conf t i.e. when you normally type the command in.
Any help much appreciated.
Robert McCallum
**Please read:http://www.groupstudy.com/list/posting.html
This archive was generated by hypermail 2.1.4 : Thu Jun 13 2002 - 10:30:38 GMT-3