Ahhh, I think I got it....
Replaced command 9 with "exit" rather than "menu-exit"
Seems to work to dump NOC user out of menu and also to a logged out console.
(I guess I would need a password on that console or login local or tacacs
config on that console to cause user to only come in a NOC user)
I cleaned it up a little too....removed that status line which seemed to be
getting in the way of the ping/trace results (like it wasn't doing a
carriage return before displaying that status thing...)
menu mymenu text 1 Ping R5
menu mymenu command 1 ping 150.1.5.5
menu mymenu text 2 Traceroute R5
menu mymenu command 2 tracer 150.1.5.5
menu mymenu text 3 Ping R6
menu mymenu command 3 ping 150.1.6.6
menu mymenu text 4 Traceroute R6
menu mymenu command 4 tracer 150.1.6.6
menu mymenu text 9 Exit The Menu
menu mymenu command 9 exit
-----Original Message-----
From: nobody_at_groupstudy.com [mailto:nobody_at_groupstudy.com] On Behalf Of
Aaron
Sent: Tuesday, January 03, 2012 11:14 AM
To: ccielab_at_groupstudy.com
Subject: ios menu - per user - no cli
How would you accomplish allowing user NOC to go to a menu upon login that
allows them to ping and trace to R5 and R6 and NOT have any cli access when
they exit from the menu?
Here's what I did, but it seems to still allow cli upon exit (9)..
username NOC noescape password 0 CISCO
username NOC autocommand menu mymenu
menu mymenu title ^C
Ping and Trace to R5 and R6
^C
menu mymenu text 9 Exit The Menu
menu mymenu command 9 menu-exit
menu mymenu text 1 Ping R5
menu mymenu command 1 ping 150.1.5.5
menu mymenu text 2 Traceroute R5
menu mymenu command 2 tracer 150.1.5.5
menu mymenu text 3 Ping R6
menu mymenu command 3 ping 150.1.6.6
menu mymenu text 4 Traceroute R6
menu mymenu command 4 tracer 150.1.6.6
menu mymenu status-line
.testing with.
"login" command from exec prompt..then using NOC username and pwd shown
above..this auto opens the menu.
Aaron
Blogs and organic groups at http://www.ccie.net
Received on Tue Jan 03 2012 - 11:25:53 ART
This archive was generated by hypermail 2.2.0 : Thu Feb 02 2012 - 11:52:51 ART