Earlier in the month I posted a question on how you could have multiple
commands coming from one menu item i.e. user presses key 1 and it shuts down
an interface.  I have eventually came up with a solution which is posted
below.  Just in case anyone out there has to do the same.

have a menu which calls a file from the flash and copies it into your
running config

menu EMOS text 1 SHUTDOWN LUCY
menu EMOS command 1 copy slot0:shut91 runn
menu EMOS text 2 SHUTDOWN ANDERSON
menu EMOS command 2 copy slot0:shut92 runn
menu EMOS text 3 SHUTDOWN CUMMING
menu EMOS command 3 copy slot0:shut93 runn
menu EMOS text 4 SHUTDOWN DAVIDSON
menu EMOS command 4 copy slot0:shut94 runn
blah blah blah

the flash looks like 
 2  -rw-    10467208   Jan 05 2001 05:12:37  c7200-js-mz.121-4.bin
   15  -rw-          28   May 22 2001 11:01:33  open91
   17  -rw-          28   May 22 2001 11:01:42  open92
   18  -rw-          28   May 22 2001 11:01:47  open93
   19  -rw-          28   May 22 2001 11:01:56  open94
   20  -rw-          28   May 22 2001 11:02:01  open95
   21  -rw-          28   May 22 2001 11:02:06  open96
   22  -rw-          25   May 22 2001 11:02:12  shut91
   23  -rw-          25   May 22 2001 11:02:17  shut92
   24  -rw-          25   May 22 2001 11:02:21  shut93
   25  -rw-          25   May 22 2001 11:02:26  shut94
   26  -rw-          25   May 22 2001 11:02:30  shut95
   27  -rw-          25   May 22 2001 11:02:34  shut96

the file called shut91 looks like

more flash:shut91

int fast0/0.91
shut
end

note the file has to end with "end" otherwise you will have unexpected end
of file in your logs every time the command is issued.  I used this menu as
a means for users in a 24 hour by 7 support team who know very little about
Cisco equipment to allow them to shut or open interfaces depending on what
is needed.  I had to do this as we have backup servers in a different
location which surprise surprise require the same IP address as its primary
server.

HTH anyone in the near future.
Robert McCallum




Message Posted at:
http://www.groupstudy.com/form/read.php?f=7&i=6510&t=6510
--------------------------------------------------
FAQ, list archives, and subscription info: http://www.groupstudy.com/list/cisco.html
Report misconduct and Nondisclosure violations to [EMAIL PROTECTED]

Reply via email to