web analytics

CISCO INTERNETWORK OPERATING SYSTEM (IOS) SWITCHES AND ROUTERS

Log Forwarding > Network Infrastructure > Cisco Internetwork Operating System (IOS) Switches and Routers

Instructions for forwarding Cisco Internetwork Operating System (IOS) Switch and Router logs to your Log Management device

PREREQUISITES

Internetwork Operating System (IOS) Switches and Routers

  • The IP Address for the switch or router
  • Credentials to access the privileged mode for the switch or router
  • Secure Shell (SSH) access configured on the switch or router

Clone Systems Log Management Device

  • The IP Address for the Clone Systems Log Management device

INSTRUCTIONS

1

Open a command prompt and SSH into the Cisco switch or router using a tool like PuTTY.

2

Get to privileged mode on the Cisco switch or router and enter the password.

Router> enable

Password: ************

3

Execute a configuration command from the terminal to get into global configuration mode.

Router# config t

4

To log system messages and debug output to the Clone Systems Log Management device, use the logging command in global configuration mode.

Router (config)# logging { IP Address of Clone Systems Log collector }

EXAMPLE: Router (config)# logging 10.1.1.1

5

Enable timestamps for debugging events.

Router (config)# service timestamps debug datetime localtime

6

Enable timestamps for log events.

Router (config)# service timestamps log datetime localtime

7

Set the appropriate logging trap level with the logging trap informational command.

Router (config)# logging trap informational

8

End the global configuration mode.

Router (config)# end

9

Save the configuration changes to NVRAM.

Router# copy run start

10

Log off the Cisco switch or router.

Router# exit