Collect verbose logging from Management Center
search cancel

Collect verbose logging from Management Center

book

Article ID: 168171

calendar_today

Updated On:

Products

Management Center

Issue/Introduction

There is a necessity, for any troubleshooting, that the logs be send to the case for further analysis.

Environment

Management Center

Resolution

  1. Management Center 1.x
    • Enable verbose logging:
      1. Log into the Management Center CLI.
      2. Enter enable mode.
      3. Enter the following command:  service enable-verbose-logging
    • Enable Debug logging from the Management Center UI:
      1. Log in to the Management Center UI.
      2. Click Administration > Settings > Diagnostics.
      3. Set the Master Logging Level to Debug or fine tune the log settings to a component you believe is causing the issue.  For example if you think the issue is with an SSLV device plugin, turn on debugging for that only.
  2. Management Center 2.x and above
    • Enable verbose logging:
      1. Log into the Management Center CLI.
      2. Enter enable and then configure mode.
      3. Set logging level to 7 for debug by command ‘event-log level 7’
    • Enable Debug logging from the Management Center UI.
      1. Log into the Management Center UI.
      2. Click Administration > Settings > Diagnostics.
      3. Set the Master Logging Level to Debug or fine tune the log settings to a component you believe is causing the issue.  For example if you think the issue is with an SSLV device plugin, turn on debugging for that only.
  3. Reproduce the issue.
  4. Disable verbose logging and set the Master Logging Level back to INFO or turn off the other log settings you configured.
    • CLI:
      1. Management Center 1.x
        1. Enter service disable-verbose-logging
      2. Management Center 2.x and above
        1. In configure mode enter ‘event-log level 5’ which is the default log level
    • UI:
    • Click Administration > Settings > Diagnostics
    • Set Master Logging to INFO
    • lick Apply and Activate
  5. Upload Diagnostics Logs
    • Log into the Management Center CLI.
    • Enter enable mode.
    • Management Center 1.x
      1. Enter the following command: service upload-diagnostics SR# (or service upload-diagnostics URL)
    • Management Center 2.x and above
      1. Syntax
        • bccm_2_0-6-x86_64(config)# diagnostics service-info send ?
        • Possible completions:
        •   <Service request number>
        •   password   Password (optional)
        •   plugins
        •   url        URL
        •   username   Username (optional)
        •   <cr>
      2. For example if you wanted to use the ftp or scp server the command would be something like diagnostics service-info send url ftp://server/path
      3. Syntax
        • bccm_2_0-6-x86_64# diagnostics service-info send url ?
        • Possible completions:
        •   <URL>  SCP/SFTP, FTP/FTPS or HTTP/HTTPS URL.  Examples:
        •           scp://<host>:<port>/<path>
        •           http://<host>/<path>
        •           ftp://<host>:<port>/<path>
        •   plugins
        •  <cr>

For a list of helpful commands, enter service upload-diagnostics ? for MC 1.x and diagnostics service-info send ?  for MC 2.x and above