04-21-2017 06:41 AM - edited 03-05-2019 08:24 AM
Hello All,
I have configured the below autocommad menu for a customer as below
menu alge_menu title ^CC
******************Test******************
* *
* *
* Telnet Menu *
* *
* *
******************************************
^C
menu alge_menu text 1 show interface desc
menu alge_menu command 1 show interface desc
menu alge_menu options 1 pause
menu alge_menu text 2 show ip interface brief
menu alge_menu command 2 show ip interface brief
menu alge_menu options 2 pause
menu alge_menu text 3 show policy-map interface
menu alge_menu command 3 show policy-map interface
menu alge_menu options 3 pause
menu alge_menu text 4 show route-map input
menu alge_menu command 4 show route-map input
menu alge_menu options 4 pause
But when i enter option 7 and 10 i get the below error
CC
******************test****************
* *
* *
* Telnet Menu *
* *
* *
******************************************
1 show interface desc
2 show ip interface brief
3 show ip route
4 show version
5 show log
6 show ip access-list
7 ping
8 show ip arp
9 show ip route
10 trace
11 show ip arp
0 exit
Selection: 7
Protocol [ip]:
% Unknown protocol - "", type "ping ?" for help
--More--
Also in my selection if i enter 1 the screen scrolls down fast instead of displaying the full command jumps back to the mail menu how can i stop the same
Also the router where i want to run it has AAA enabled so how can i add a username to be given to the customer to use this autocommand menu
Regards,
ranjit
Solved! Go to Solution.
04-21-2017 07:14 AM
Hi Ranjit
that doesn't look like its fully built
I just built menu systems for all our branch sites , you can have this an manipulate it to what you need or just use the format it works , it may be a bit more detailed but you don't need to use all of it
As well personally I wouldn't use the autocommand under the vty , I ran into serious issues with some mgmt. applications that were pulling info off the routers , they couldn't access it due to that command and the lines were hanging locking out the vty and I had to reboot several due to it
Instead when there logging in just get them to type in the menu name in > mode or # mode
so mine below you just login and type menu network and up pops the menu , then all the sub-menus are contained within but you can call sub-menus up separately as well
I have removed my ips and DNS names and the IWAN menus as there using an alias and unless there using IWAN it wont be any use
menu Network title ^CCC Menu For Network Team TShoot ^C
menu Network prompt ^CCC Please Choose your selection: ^C
menu Network text 1. Ping Jumpbox Reachability Menu
menu Network command 1. menu Ping
menu Network options 1. pause login
menu Network text 2. Trace Jumpbox Reachability Menu
menu Network command 2. menu Traceroute
menu Network options 2. pause login
menu Network text 3. Router Interface Menu
menu Network command 3. menu Interface
menu Network options 3. pause login
menu Network text 4. BGP/IWAN/DMVPN Connectivity Sub-Menus
menu Network command 4. menu AdvancedWAN
menu Network options 4. pause login
menu Network text 5. Device Health Check Menu
menu Network command 5. menu DeviceHealth
menu Network options 5. pause login
menu Network text 6. Qos And Voice Check Menu
menu Network command 6. menu QOS
menu Network options 6. pause login
menu Network text 0. Exit Menu System
menu Network command 0. menu-exit
menu Network clear-screen
!
menu Ping title ^CCC Ping Jumpbox Reachability Sub-Menu ^C
menu Ping text 1 Pingtest..xxxxxxxx
menu Ping command 1 ping xxxxx re 50
menu Ping text 2 Pingtest..xxxxxx
menu Ping command 2 ping xxxxxx re 50
menu Ping text 3 Pingtest..xxxxxxx
menu Ping command 3 ping xxxxxx re 50
menu Ping text 4 Pingtest..xxxxxx
menu Ping command 4 ping xxxxxx re 50
menu Ping text 5 Pingtest..xxxxxxx
menu Ping command 5 ping xxxxxx re 50
menu Ping text 0 Exit
menu Ping command 0 menu-exit
!
menu Traceroute title ^CCC Trace Jumpbox Reachability Sub-Menu ^C
menu Traceroute text 1 Traceroute..xxxxxxx
menu Traceroute command 1 trace xxxxxx
menu Traceroute text 2 Traceroute..xxxxxxxxx
menu Traceroute command 2 trace xxxxxxxxxxx
menu Traceroute text 3 Traceroute..xxxxxxxx
menu Traceroute command 3 trace xxxxxxxx
menu Traceroute text 4 Traceroute..xxxxxxxxx
menu Traceroute command 4 trace xxxxxxxxxx
menu Traceroute text 5 Traceroute..xxxxxxxxx
menu Traceroute command 5 trace xxxxxxxxxx
menu Traceroute text 0 Exit
menu Traceroute command 0 menu-exit
!
menu AdvancedWAN title ^CCCC Advanced BGP.IWAN.DMVPN Sub-Menu ^C
menu AdvancedWAN prompt ^CCC Please Choose your selection: ^C
menu AdvancedWAN text 1. IWAN.Master Detailed Menu
menu AdvancedWAN command 1. menu IWAN.Master
menu AdvancedWAN options 1. pause login
menu AdvancedWAN text 2. IWAN.Border Detailed Menu
menu AdvancedWAN command 2. menu IWAN.Border
menu AdvancedWAN options 2. pause login
menu AdvancedWAN text 3. BGP Detailed Menu
menu AdvancedWAN command 3. menu BGP
menu AdvancedWAN options 3. pause login
menu AdvancedWAN text 4. DMVPN Detailed Menu
menu AdvancedWAN command 4. menu DMVPN
menu AdvancedWAN options 4. pause login
menu AdvancedWAN text 5. Crypto NHRP/IWAN Confirmation Menu
menu AdvancedWAN command 5. menu Crypto
menu AdvancedWAN options 5. pause login
menu AdvancedWAN text 0. Exit Menu System
menu AdvancedWAN command 0. menu-exit
menu AdvancedWAN clear-screen
!
menu Interface title ^CCC Show Interface Sub-Menu ^C
menu Interface text 1 Check router Interface Summary And Drop Rate
menu Interface command 1 show interface summ
menu Interface text 2 Show Interface Status
menu Interface command 2 Show ip interface brief
menu Interface text 3 Check WAN Interface Specifics
menu Interface command 3 Show int g0/0/1
menu Interface text 0 Exit
menu Interface command 0 menu-exit
!
menu DeviceHealth title ^CC Device Health Check Sub-Menu ^C
menu DeviceHealth text 1 Check logging Tail Last 25
menu DeviceHealth command 1 sh logg | tail 25
menu DeviceHealth text 2 Check CPU Live Status
menu DeviceHealth command 2 show proc cpu sorted | ex 0.00
menu DeviceHealth text 3 Check For IOS Memory Leaks
menu DeviceHealth command 3 show memory failures alloc
menu DeviceHealth text 4 Check Uptime And Current Software Version
menu DeviceHealth command 4 show version | i uptime | Version
menu DeviceHealth text 5 Check CPU History Stats
menu DeviceHealth command 5 sh proc cpu history
menu DeviceHealth text 6 Check IOS-XE Software Current CPU-Mem Usage And Health
menu DeviceHealth command 6 show platform software status control-processor brief
menu DeviceHealth text 0 Exit
menu DeviceHealth command 0 menu-exit
!
menu QOS title ^CC Qos And Voice Check Menu ^C
menu QOS text 1 Check Qos Policy Summary
menu QOS command 1 sh policy-map summary
menu QOS text 2 Check ISDN Line Status
menu QOS command 2 show isdn status
menu QOS text 3 Check ISDN Current Calls
menu QOS command 3 show isdn active
menu QOS text 4 Check WAN Qos
menu QOS command 4 sh policy-map interface g0/0/1
menu QOS text 5 Check LAN Qos
menu QOS command 5 sh policy-map interface g0/0/0
menu QOS text 0 Exit
menu QOS command 0 menu-exit
!
menu BGP title ^CCCC BGP Detailed Connectivity Menu ^C
menu BGP text 1 BGP RIB Failure Check (Routes not inserted into the IP table)
menu BGP command 1 show ip bgp rib-failure
menu BGP text 2 BGP Peer Neighbour Check
menu BGP command 2 show ip bgp neighbors
menu BGP text 3 BGP Prefix Summary Check And Peer Status
menu BGP command 3 show ip bgp summary
menu BGP text 4 BGP IWAN Connectivity Check
menu BGP command 4 show ip bgp all summary
menu BGP text 5 BGP RIB Failure Check (Routes not inserted into the IP table)
menu BGP command 5 show ip bgp rib-failure
menu BGP text 0 Exit
menu BGP command 0 menu-exit
!
menu DMVPN title ^CCCC DMVPN Detailed Connectivity Menu ^C
menu DMVPN text 1 show dmvpn detail static
menu DMVPN command 1 show dmvpn detail static
menu DMVPN text 2 Check Hub To Spoke MPLS Tunnel VPN Rputer (T12)
menu DMVPN command 2 show dmvpn interface tunnel 12 detail static
menu DMVPN text 3 Check Hub To Spoke MPLS Tunnel MPLS Rputer (T11)
menu DMVPN command 3 show dmvpn interface tunnel 11 detail static
menu DMVPN text 4 Check NHRP Summary Connections
menu DMVPN command 4 sh ip nhrp summary
menu DMVPN text 5 Check NHRP Traffic and Registration VPN
menu DMVPN command 5 sh ip nhrp traffic interface tunnel 12
menu DMVPN text 6 Check NHRP Traffic and Registration MPLS
menu DMVPN command 6 sh ip nhrp traffic interface tunnel 11
menu DMVPN text 7 Check NHRP General Stats
menu DMVPN command 7 sh ip nhrp stats
menu DMVPN text 0 Exit
menu DMVPN command 0 menu-exit
!
menu Crypto title ^CCCC Crypto Detailed Connectivity Menu ^C
menu Crypto text 1 Verify Crypto is in correct QM_IDLE state
menu Crypto command 1 show crypto isakmp sa
menu Crypto text 2 Verify IPsec Encrypt/decrypt counters:
menu Crypto command 2 show crypto ipsec sa | i encrypt|decrypt
menu Crypto text 3 Verify Ploicy/Lifetime/Hash and Encryption type
menu Crypto command 3 show crypto isakmp policy
menu Crypto text 4 Check Current Crypto Sessions
menu Crypto command 4 sh crypto session
menu Crypto text 5 Provide full crypto output
menu Crypto command 5 sh crypto tech-support
menu Crypto text 0 Exit
menu Crypto command 0 menu-exit
!
04-21-2017 07:14 AM
Hi Ranjit
that doesn't look like its fully built
I just built menu systems for all our branch sites , you can have this an manipulate it to what you need or just use the format it works , it may be a bit more detailed but you don't need to use all of it
As well personally I wouldn't use the autocommand under the vty , I ran into serious issues with some mgmt. applications that were pulling info off the routers , they couldn't access it due to that command and the lines were hanging locking out the vty and I had to reboot several due to it
Instead when there logging in just get them to type in the menu name in > mode or # mode
so mine below you just login and type menu network and up pops the menu , then all the sub-menus are contained within but you can call sub-menus up separately as well
I have removed my ips and DNS names and the IWAN menus as there using an alias and unless there using IWAN it wont be any use
menu Network title ^CCC Menu For Network Team TShoot ^C
menu Network prompt ^CCC Please Choose your selection: ^C
menu Network text 1. Ping Jumpbox Reachability Menu
menu Network command 1. menu Ping
menu Network options 1. pause login
menu Network text 2. Trace Jumpbox Reachability Menu
menu Network command 2. menu Traceroute
menu Network options 2. pause login
menu Network text 3. Router Interface Menu
menu Network command 3. menu Interface
menu Network options 3. pause login
menu Network text 4. BGP/IWAN/DMVPN Connectivity Sub-Menus
menu Network command 4. menu AdvancedWAN
menu Network options 4. pause login
menu Network text 5. Device Health Check Menu
menu Network command 5. menu DeviceHealth
menu Network options 5. pause login
menu Network text 6. Qos And Voice Check Menu
menu Network command 6. menu QOS
menu Network options 6. pause login
menu Network text 0. Exit Menu System
menu Network command 0. menu-exit
menu Network clear-screen
!
menu Ping title ^CCC Ping Jumpbox Reachability Sub-Menu ^C
menu Ping text 1 Pingtest..xxxxxxxx
menu Ping command 1 ping xxxxx re 50
menu Ping text 2 Pingtest..xxxxxx
menu Ping command 2 ping xxxxxx re 50
menu Ping text 3 Pingtest..xxxxxxx
menu Ping command 3 ping xxxxxx re 50
menu Ping text 4 Pingtest..xxxxxx
menu Ping command 4 ping xxxxxx re 50
menu Ping text 5 Pingtest..xxxxxxx
menu Ping command 5 ping xxxxxx re 50
menu Ping text 0 Exit
menu Ping command 0 menu-exit
!
menu Traceroute title ^CCC Trace Jumpbox Reachability Sub-Menu ^C
menu Traceroute text 1 Traceroute..xxxxxxx
menu Traceroute command 1 trace xxxxxx
menu Traceroute text 2 Traceroute..xxxxxxxxx
menu Traceroute command 2 trace xxxxxxxxxxx
menu Traceroute text 3 Traceroute..xxxxxxxx
menu Traceroute command 3 trace xxxxxxxx
menu Traceroute text 4 Traceroute..xxxxxxxxx
menu Traceroute command 4 trace xxxxxxxxxx
menu Traceroute text 5 Traceroute..xxxxxxxxx
menu Traceroute command 5 trace xxxxxxxxxx
menu Traceroute text 0 Exit
menu Traceroute command 0 menu-exit
!
menu AdvancedWAN title ^CCCC Advanced BGP.IWAN.DMVPN Sub-Menu ^C
menu AdvancedWAN prompt ^CCC Please Choose your selection: ^C
menu AdvancedWAN text 1. IWAN.Master Detailed Menu
menu AdvancedWAN command 1. menu IWAN.Master
menu AdvancedWAN options 1. pause login
menu AdvancedWAN text 2. IWAN.Border Detailed Menu
menu AdvancedWAN command 2. menu IWAN.Border
menu AdvancedWAN options 2. pause login
menu AdvancedWAN text 3. BGP Detailed Menu
menu AdvancedWAN command 3. menu BGP
menu AdvancedWAN options 3. pause login
menu AdvancedWAN text 4. DMVPN Detailed Menu
menu AdvancedWAN command 4. menu DMVPN
menu AdvancedWAN options 4. pause login
menu AdvancedWAN text 5. Crypto NHRP/IWAN Confirmation Menu
menu AdvancedWAN command 5. menu Crypto
menu AdvancedWAN options 5. pause login
menu AdvancedWAN text 0. Exit Menu System
menu AdvancedWAN command 0. menu-exit
menu AdvancedWAN clear-screen
!
menu Interface title ^CCC Show Interface Sub-Menu ^C
menu Interface text 1 Check router Interface Summary And Drop Rate
menu Interface command 1 show interface summ
menu Interface text 2 Show Interface Status
menu Interface command 2 Show ip interface brief
menu Interface text 3 Check WAN Interface Specifics
menu Interface command 3 Show int g0/0/1
menu Interface text 0 Exit
menu Interface command 0 menu-exit
!
menu DeviceHealth title ^CC Device Health Check Sub-Menu ^C
menu DeviceHealth text 1 Check logging Tail Last 25
menu DeviceHealth command 1 sh logg | tail 25
menu DeviceHealth text 2 Check CPU Live Status
menu DeviceHealth command 2 show proc cpu sorted | ex 0.00
menu DeviceHealth text 3 Check For IOS Memory Leaks
menu DeviceHealth command 3 show memory failures alloc
menu DeviceHealth text 4 Check Uptime And Current Software Version
menu DeviceHealth command 4 show version | i uptime | Version
menu DeviceHealth text 5 Check CPU History Stats
menu DeviceHealth command 5 sh proc cpu history
menu DeviceHealth text 6 Check IOS-XE Software Current CPU-Mem Usage And Health
menu DeviceHealth command 6 show platform software status control-processor brief
menu DeviceHealth text 0 Exit
menu DeviceHealth command 0 menu-exit
!
menu QOS title ^CC Qos And Voice Check Menu ^C
menu QOS text 1 Check Qos Policy Summary
menu QOS command 1 sh policy-map summary
menu QOS text 2 Check ISDN Line Status
menu QOS command 2 show isdn status
menu QOS text 3 Check ISDN Current Calls
menu QOS command 3 show isdn active
menu QOS text 4 Check WAN Qos
menu QOS command 4 sh policy-map interface g0/0/1
menu QOS text 5 Check LAN Qos
menu QOS command 5 sh policy-map interface g0/0/0
menu QOS text 0 Exit
menu QOS command 0 menu-exit
!
menu BGP title ^CCCC BGP Detailed Connectivity Menu ^C
menu BGP text 1 BGP RIB Failure Check (Routes not inserted into the IP table)
menu BGP command 1 show ip bgp rib-failure
menu BGP text 2 BGP Peer Neighbour Check
menu BGP command 2 show ip bgp neighbors
menu BGP text 3 BGP Prefix Summary Check And Peer Status
menu BGP command 3 show ip bgp summary
menu BGP text 4 BGP IWAN Connectivity Check
menu BGP command 4 show ip bgp all summary
menu BGP text 5 BGP RIB Failure Check (Routes not inserted into the IP table)
menu BGP command 5 show ip bgp rib-failure
menu BGP text 0 Exit
menu BGP command 0 menu-exit
!
menu DMVPN title ^CCCC DMVPN Detailed Connectivity Menu ^C
menu DMVPN text 1 show dmvpn detail static
menu DMVPN command 1 show dmvpn detail static
menu DMVPN text 2 Check Hub To Spoke MPLS Tunnel VPN Rputer (T12)
menu DMVPN command 2 show dmvpn interface tunnel 12 detail static
menu DMVPN text 3 Check Hub To Spoke MPLS Tunnel MPLS Rputer (T11)
menu DMVPN command 3 show dmvpn interface tunnel 11 detail static
menu DMVPN text 4 Check NHRP Summary Connections
menu DMVPN command 4 sh ip nhrp summary
menu DMVPN text 5 Check NHRP Traffic and Registration VPN
menu DMVPN command 5 sh ip nhrp traffic interface tunnel 12
menu DMVPN text 6 Check NHRP Traffic and Registration MPLS
menu DMVPN command 6 sh ip nhrp traffic interface tunnel 11
menu DMVPN text 7 Check NHRP General Stats
menu DMVPN command 7 sh ip nhrp stats
menu DMVPN text 0 Exit
menu DMVPN command 0 menu-exit
!
menu Crypto title ^CCCC Crypto Detailed Connectivity Menu ^C
menu Crypto text 1 Verify Crypto is in correct QM_IDLE state
menu Crypto command 1 show crypto isakmp sa
menu Crypto text 2 Verify IPsec Encrypt/decrypt counters:
menu Crypto command 2 show crypto ipsec sa | i encrypt|decrypt
menu Crypto text 3 Verify Ploicy/Lifetime/Hash and Encryption type
menu Crypto command 3 show crypto isakmp policy
menu Crypto text 4 Check Current Crypto Sessions
menu Crypto command 4 sh crypto session
menu Crypto text 5 Provide full crypto output
menu Crypto command 5 sh crypto tech-support
menu Crypto text 0 Exit
menu Crypto command 0 menu-exit
!
04-21-2017 07:27 AM
Hello Mark,
Thanks a lot for your detailed reply to my post and wonderful explanation..
I did face issue when i did map the commands under line vty ( autocommand menu menu <>name)
I have removed the same and now i authenticate the menu user through ACS..
Regards,
Ranjit
04-21-2017 09:00 AM
cool glad it helped
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide