ios menu - per user - no cli

From: Aaron <aaron1_at_gvtc.com>
Date: Tue, 3 Jan 2012 11:13:35 -0600

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:13:35 ART

This archive was generated by hypermail 2.2.0 : Thu Feb 02 2012 - 11:52:51 ART