Friday, June 3, 2011

The 'alias exec' Global Configuration Command

Router#sh ver | in IOS|Compile
IOS (tm) 3600 Software (C3620-I-M), Version 12.3(26), RELEASE SOFTWARE (fc2)
Compiled Mon 17-Mar-08 16:20 by dchih
Router#
Router#sh alias ?
  aaa-user                 AAA user definition
  address-family           Address Family configuration mode
  boomerang                Boomerang configuration mode
  cascustom                Cas custom configuration mode
  clid-group               CLID group configuration mode
  cns-connect-config       CNS Connect Info Mode
  cns-connect-intf-config  CNS Connect Intf Info Mode
  cns-tmpl-connect-config  CNS Template Connect Info Mode
  cns_inventory_submode    CNS Inventory SubMode
  config-rtr-http-rr       RTR HTTP raw request Configuration
  config-x25-huntgroup     X.25 hunt group configuration mode
  configure                Global configuration mode
  congestion               Frame Relay congestion configuration mode
  controller               Controller configuration mode
  dhcp                     DHCP pool configuration mode
  dnis-group               DNIS group configuration mode
  exec                     Exec mode
  filterserver             AAA filter server definitions
  flow-cache               Flow aggregation cache config mode
  fr-fr                    FR/FR connection configuration mode
  interface                Interface configuration mode
  interface-dlci           Frame Relay dlci configuration mode
  interface-range          Interface range configuration mode
  ip-vrf                   Configure IP VRF parameters
  ipenacl                  IP named extended access-list configuration mode
  ipnat-pool               IP NAT pool configuration mode
  ipnat-snat               IP SNAT configuration mode
  ipnat-snat-backup        IP SNAT Backup configuration mode
  ipnat-snat-primary       IP SNAT Primary configuration mode
  ipnat-snat-redundancy    IP SNAT Redundancy configuration mode
  ipsnacl                  IP named simple access-list configuration mode
  key-chain                Key-chain configuration mode
  key-chain-key            Key-chain key configuration mode
  kron-occurrence          Kron Occurrence SubMode
  kron-policy              Kron Policy SubMode
  line                     Line configuration mode
  map-class                Map class configuration mode
  map-list                 Map list configuration mode
  mrm-manager              IP Multicast Routing Monitor config mode
  null-interface           Null interface configuration mode
  policy-list              IP Policy List configuration mode
  preauth                  AAA Preauth definitions
  qosclassmap              QoS Class Map configuration mode
  qosclasspolice           QoS Class Police configuration mode
  qospolicymap             QoS Policy Map configuration mode
  qospolicymapclass        QoS Policy Map class configuration mode
  radius-attrl             Radius Attribute-List Definition
  red-group                random-detect group configuration mode
  roles                    Role configuration mode
  route-map                Route map config mode
  router                   Router configuration mode
  rsvp-local-policy        RSVP local policy configuration mode
  rtr                      SAA entry configuration
  saa-dhcp                 SAA dhcp configuration
  saa-dns                  SAA dns configuration
  saa-echo                 SAA echo configuration
  saa-frameRelay           SAA FrameRelay configuration
  saa-ftp                  SAA ftp configuration
  saa-http                 SAA http configuration
  saa-jitter               SAA jitter configuration
  saa-pathEcho             SAA pathEcho configuration
  saa-pathJitter           SAA pathJitter configuration
  saa-tcpConnect           SAA tcpConnect configuration
  saa-udpEcho              SAA udpEcho configuration
  sg-radius                Radius Server-group Definition
  sg-tacacs+               Tacacs+ Server-group Definition
  signaling-class          Signaling class configuration mode
  subinterface             Subinterface configuration mode
  tablemap                 Table Map configuration mode
  tdm-conn                 TDM connection configuration mode
  template                 Template configuration mode
  tracking-config          Tracking configuration mode
  trange                   time-range configuration mode
  trunk-group              Trunk group configuration mode
  vc-class                 VC class configuration mode
  x25-profile              X.25 profile configuration mode
  |                        Output modifiers
  <cr>

Router#sh alias
Exec mode aliases:
  h                     help
  lo                    logout
  p                     ping
  r                     resume
  s                     show
  u                     undebug
  un                    undebug
  w                     where

Router#
Router#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#alias ?
  aaa-user                 AAA user definition
  address-family           Address Family configuration mode
  boomerang                Boomerang configuration mode
  cascustom                Cas custom configuration mode
  clid-group               CLID group configuration mode
  cns-connect-config       CNS Connect Info Mode
  cns-connect-intf-config  CNS Connect Intf Info Mode
  cns-tmpl-connect-config  CNS Template Connect Info Mode
  cns_inventory_submode    CNS Inventory SubMode
  config-rtr-http-rr       RTR HTTP raw request Configuration
  config-x25-huntgroup     X.25 hunt group configuration mode
  configure                Global configuration mode
  congestion               Frame Relay congestion configuration mode
  controller               Controller configuration mode
  dhcp                     DHCP pool configuration mode
  dnis-group               DNIS group configuration mode
  exec                     Exec mode
  filterserver             AAA filter server definitions
  flow-cache               Flow aggregation cache config mode
  fr-fr                    FR/FR connection configuration mode
  interface                Interface configuration mode
  interface-dlci           Frame Relay dlci configuration mode
  interface-range          Interface range configuration mode
  ip-vrf                   Configure IP VRF parameters
  ipenacl                  IP named extended access-list configuration mode
  ipnat-pool               IP NAT pool configuration mode
  ipnat-snat               IP SNAT configuration mode
  ipnat-snat-backup        IP SNAT Backup configuration mode
  ipnat-snat-primary       IP SNAT Primary configuration mode
  ipnat-snat-redundancy    IP SNAT Redundancy configuration mode
  ipsnacl                  IP named simple access-list configuration mode
  key-chain                Key-chain configuration mode
  key-chain-key            Key-chain key configuration mode
  kron-occurrence          Kron Occurrence SubMode
  kron-policy              Kron Policy SubMode
  line                     Line configuration mode
  map-class                Map class configuration mode
  map-list                 Map list configuration mode
  mrm-manager              IP Multicast Routing Monitor config mode
  null-interface           Null interface configuration mode
  policy-list              IP Policy List configuration mode
  preauth                  AAA Preauth definitions
  qosclassmap              QoS Class Map configuration mode
  qosclasspolice           QoS Class Police configuration mode
  qospolicymap             QoS Policy Map configuration mode
  qospolicymapclass        QoS Policy Map class configuration mode
  radius-attrl             Radius Attribute-List Definition
  red-group                random-detect group configuration mode
  roles                    Role configuration mode
  route-map                Route map config mode
  router                   Router configuration mode
  rsvp-local-policy        RSVP local policy configuration mode
  rtr                      SAA entry configuration
  saa-dhcp                 SAA dhcp configuration
  saa-dns                  SAA dns configuration
  saa-echo                 SAA echo configuration
  saa-frameRelay           SAA FrameRelay configuration
  saa-ftp                  SAA ftp configuration
  saa-http                 SAA http configuration
  saa-jitter               SAA jitter configuration
  saa-pathEcho             SAA pathEcho configuration
  saa-pathJitter           SAA pathJitter configuration
  saa-tcpConnect           SAA tcpConnect configuration
  saa-udpEcho              SAA udpEcho configuration
  sg-radius                Radius Server-group Definition
  sg-tacacs+               Tacacs+ Server-group Definition
  signaling-class          Signaling class configuration mode
  subinterface             Subinterface configuration mode
  tablemap                 Table Map configuration mode
  tdm-conn                 TDM connection configuration mode
  template                 Template configuration mode
  tracking-config          Tracking configuration mode
  trange                   time-range configuration mode
  trunk-group              Trunk group configuration mode
  vc-class                 VC class configuration mode
  x25-profile              X.25 profile configuration mode

Router(config)#alias exec ?
  WORD  Alias name

Router(config)#alias exec siib ?
  LINE  New alias

Router(config)#alias exec siib sh ip int brief
Router(config)#end
Router#
Router#sh run | in alias
alias exec siib sh ip int brief
Router#
Router#sh alias
Exec mode aliases:
  h                     help
  lo                    logout
  p                     ping
  r                     resume
  s                     show
  u                     undebug
  un                    undebug
  w                     where
  siib                  sh ip int brief

Router#
Router#siib
Interface                  IP-Address      OK? Method Status                Protocol
FastEthernet0/0            unassigned      YES NVRAM  administratively down down
Serial1/0                  unassigned      YES NVRAM  administratively down down
Serial1/1                  unassigned      YES NVRAM  administratively down down
Serial1/2                  unassigned      YES NVRAM  administratively down down
Serial1/3                  unassigned      YES NVRAM  administratively down down
Router#

No comments:

Post a Comment