System Management Commands 4

When an RSA key is displayed, the first field indicates the size of the host key (e.g., 1024), the second field is the encoded public exponent (e.g., 35), and the last string is the encoded modulus. When a DSA key is displayed, the first field indicates that the encryption method used by SSH is based on the Digital Signature Standard (DSS), and the last string is the encoded modulus.

Example

Console#show public-key host Host:

RSA:

1024 65537 13236940658254764031382795526536375927835525327972629521130241

0719421061655759424590939236096954050362775257556251003866130989393834523

1033280214988866192159556859887989191950588394018138744046890877916030583

7768185490002831341625008348718449522087429212255691665655296328163516964

0408315547660664151657116381

DSA:

ssh-dss AAAB3NzaC1kc3MAAACBAPWKZTPbsRIB8ydEXcxM3dyV/yrDbKStIlnzD/Dg0h2Hxc YV44sXZ2JXhamLK6P8bvuiyacWbUW/a4PAtp1KMSdqsKeh3hKoA3vRRSy1N2XFfAKxl5fwFfv JlPdOkFgzLGMinvSNYQwiQXbKTBH0Z4mUZpE85PWxDZMaCNBPjBrRAAAAFQChb4vsdfQGNIjw bvwrNLaQ77isiwAAAIEAsy5YWDC99ebYHNRj5kh47wY4i8cZvH+/p9cnrfwFTMU01VFDly3IR 2G395NLy5Qd7ZDxfA9mCOfT/yyEfbobMJZi8oGCstSNOxrZZVnMqWrTYfdrKX7YKBw/Kjw6Bm iFq7O+jAhf1Dg45loAc27s6TLdtny1wRq/ow2eTCD5nekAAACBAJ8rMccXTxHLFAczWS7EjOy DbsloBfPuSAb4oAsyjKXKVYNLQkTLZfcFRu41bS2KV5LAwecsigF/+DjKGWtPNIQqabKgYCw2 o/dVzX4Gg+yqdTlYmGA7fHGm8ARGeiG4ssFKy4Z6DmYPXFum1Yg0fhLwuHpOSKdxT3kk475S7 w0W

Console#

Event Logging Commands

Table 4-17 Event Logging Commands

Command

Function

Mode

Page

 

 

 

 

logging on

Controls logging of error messages

GC

4-42

 

 

 

 

logging history

Limits syslog messages saved to switch memory based on

GC

4-42

 

severity

 

 

logging host

Adds a syslog server host IP address that will receive logging

GC

4-43

 

messages

 

 

logging facility

Sets the facility type for remote logging of syslog messages

GC

4-44

 

 

 

 

logging trap

Limits syslog messages saved to a remote server based on

GC

4-44

 

severity

 

 

clear logClears messages from the logging buffer

PE

4-45

 

 

 

 

show loggingDisplays the state of logging

PE

4-46

 

 

 

 

show logDisplays log messages

PE

4-47

 

 

 

 

4-41