Thursday, June 21, 2012

SSH configuration

  1. Specify the Host name.
    Router(config)#hostname <host name>
    
  2. Define a default domain name.
    Router(config)#ip domain-name <Domain Name>
    
  3. Generate RSA key pairs.
    Router(config)#crypto key generate rsa
    
  4. Configure SSH-RSA keys for user and server authentication.
    Router(config)#ip ssh pubkey-chain
    
  5. Configure the SSH username.
    Router(conf-ssh-pubkey)#username <user name>
    
  6. Specify the RSA public key of the remote peer.
    Router(conf-ssh-pubkey-user)#key-string
    
  7. Specify the SSH key type and version. (optional)
    Router(conf-ssh-pubkey-data)#key-hash ssh-rsa <key ID>
    
  8. Exit the current mode and return to privileged EXEC mode.
    Router(conf-ssh-pubkey-data)#end
    

Tuesday, June 19, 2012

some troubleshooting skill related to CPU usage



process cpu threshold type total rising 80 interval 5

 event syslog pattern "%SYS-1-CPURISINGTHRESHOLD"
 action 1 cli command "enable"
 action 1 cli command "<enable password>"
 action 3 cli command "show clock | append flash:risecpu_info"
 action 4 cli command "show proc cpu sorted | append flash:risecpu_info"
 action 5 cli command "show proc cpu history | append flash:risecpu_info"
 action 6 cli command "show interface | append flash:risecpu_info"
 action 7 cli command "show int switching | append flash:risecpu_info"
 action 8 cli command "show ip traffic | append flash:risecpu_info"
 action 9 cli command "show ip cef switching stat feature | append flash:risecpu_info"
 action 10 cli command "show debug | append flash:risecpu_info"
  action 11 cli command "show align | append flash:risecpu_info"