Collect Logs (Bolt)
When the Bolt user is experiencing issues, they can collect logs for issue diagnosis and/or send the logs to TAC.
There are two options available for the user to collect logs.
- Save logs to a local destination via SFTP.
- Push logs to a remote location via a URL.
Video
Collect Logs Command Structure
- Command Path – tolt>system>logging>
- Module – tolt
- Container – system
- Action – logging
- Types –
- collect-logs – Action to collect all the log files, and automatically create a tgz file of the logs and make them available to users.
- filename – The filename to give the log file. Do not include an extension, it will be added by the collect-log command.
-
string
-
- remote-url – If using sftp to push logs to a remote site, specify the sftp url in a format acceptable to url.
-
string
-
- username – The username to use when authenticating to an sftp server for log push.
-
string
-
- password – The password to use when authenticating to a sftp server for log push.
-
string
-
System Logging Action Local File Example
The following example will show how to create an archive of the logs in a local SFTP directory on the BOLT.
- From the MDS1-ESUA# command line, input tolt system logging collect-logs filename local-test and press Enter.
- Output similar to the following is displayed:
MDS1-ESUA# tolt system logging collect-logs filename local-test <enter> action-success true MDS1-ESUA# _
When the logs have been collected, they will be automatically saved to the OLT and added to the /usr/lbob/diagnostic folder with the extension of .tgz.
- To access the file, open up a SFTP window to the OLT.
.png?Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cHM6Ly9kemY4dnF2MjRlcWhnLmNsb3VkZnJvbnQubmV0L3VzZXJmaWxlcy80MTcwMy81NDk1Mi9ja2ZpbmRlci9pbWFnZXMvcXUvMjAyNi9pbWFnZSgxKS5wbmciLCJDb25kaXRpb24iOnsiRGF0ZUxlc3NUaGFuIjp7IkFXUzpFcG9jaFRpbWUiOjE3NzA4NzY1NTl9fX1dfQ__&Signature=OvW0jbpV0MXI5dqdSb9jfZzgPywaDGXWn1pdaZ5bRDteYM1qRbqbreOCWaiSlbWWeOI2w1C2Q9mdeFq1nJ7O8JQ-mL9V5MfNwO~O70tS9aal13BRqJ9zsXQgqFixndEVy-Mza5bFP8Zq2ZR1jPAbOJ3-o7LGpoIFH6S68-TCC81Qk83r3h3pnjzb3R0j3-gDr9PR8TGwO8HqKSggXKoElKvJsWkuOl6N30kX67jnoFV-ax9Cp6Q-y27GA6JGaztfgPS3BszeSAJQJVS89kO2Ly8OTsPMZ2jkztE-2ugYg8vdopzqklWzHAbESUyO38WE9y8xMmIF5UE3PEod0wyj2Q__&Key-Pair-Id=K2TK3EG287XSFC)
- Select the diagnostic folder and do a refresh to display the log file.
.png?Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cHM6Ly9kemY4dnF2MjRlcWhnLmNsb3VkZnJvbnQubmV0L3VzZXJmaWxlcy80MTcwMy81NDk1Mi9ja2ZpbmRlci9pbWFnZXMvcXUvMjAyNi9pbWFnZSgzKS5wbmciLCJDb25kaXRpb24iOnsiRGF0ZUxlc3NUaGFuIjp7IkFXUzpFcG9jaFRpbWUiOjE3NzA4NzY1NTl9fX1dfQ__&Signature=Ysa9htU7sudt9lMOXMHmS3tg-g92V-El~poZ-ic~wb3cVrZo-vHCrRqUUhs2JNFZcBq7xlyxTHHmgKErE1xzahP~5zOxB964f7d7fbTpP97XzP86fPOrjMVAMuteHn3wV6c93yNgajxHnnWAdDHNyRTRUox0SJTGNVH0L13~uwc3S6e229Wr04gP5kgLhhBlTaYQH-7bfjc3OICI1~igpg1brJpcP7D0pOMUFV9HX8APIfEdZwLsphW0xua6f5T-o442rbmVdFiZTZajfMMG5nBMbRjpSl1qRW-szlq~CARPjqogH6tPPI8x5RiCmN5T3potLXJ-UmjkJVZA7ser4g__&Key-Pair-Id=K2TK3EG287XSFC)
- Select the log and drag over to a user' local file directory.
.png?Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cHM6Ly9kemY4dnF2MjRlcWhnLmNsb3VkZnJvbnQubmV0L3VzZXJmaWxlcy80MTcwMy81NDk1Mi9ja2ZpbmRlci9pbWFnZXMvcXUvMjAyNi9pbWFnZSg3KS5wbmciLCJDb25kaXRpb24iOnsiRGF0ZUxlc3NUaGFuIjp7IkFXUzpFcG9jaFRpbWUiOjE3NzA4NzY1NTl9fX1dfQ__&Signature=eq~1qzwpDzdtvaQiDmFrqlFdSa5XCdsvCO50ticLs3FBSGssimKGX~lPdrDucQMXArpm~MEY~DRw6k4Omxh48aZJohza4664rYunUpEeBe6gLCvJmu9me-9mUcI-W6wMdN7A9bAv95RdeROfdBZCK0VqGx1PtSSuyvO3Fkl9g6adP2f2Hjr5-A7eo~IiLzYnaZDkVh2Dw6x8WnAFkTcNZ9Ht~V56BSAtpiJKg6OWRpMeCd0XHn1dLgZCdVJj59iRLQQeVKQ8AslGwcsa28YkgxXjyTB1glJ7G8pXKX99U~81N26q3FF~PRUCoa4ESOIczNDCytLUf~YCtUJnxqopNA__&Key-Pair-Id=K2TK3EG287XSFC)
.png?Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cHM6Ly9kemY4dnF2MjRlcWhnLmNsb3VkZnJvbnQubmV0L3VzZXJmaWxlcy80MTcwMy81NDk1Mi9ja2ZpbmRlci9pbWFnZXMvcXUvMjAyNi9pbWFnZSg1KS5wbmciLCJDb25kaXRpb24iOnsiRGF0ZUxlc3NUaGFuIjp7IkFXUzpFcG9jaFRpbWUiOjE3NzA4NzY1NTl9fX1dfQ__&Signature=a-0Jw8MnoyzPIsXLflOYH0WRk93XpL4lVrndLf0-TqoP2gR-bFU2Pnv-ZmdlaHKXP1ynxifAtyg7O0xzDTQ~DSVo7YwjEmszksRnUNCDCOpILjrMsiou7O3j1ubWvcRChv2ryAu0Z9LykUr~3pzKYGYEdqwPqmvc2eFIKgJfuCQkxgGDyg~0pTnkvXMiC1cJoyM-CB3-6Jkq9fR2cIrAxDPjfobxNpUq2rhNPXJFTFhr2okJ0qEjgPw6hVO5zaq8Mz0FFgzA2tBCjK5sXSRGBkJEqBC-aMqr0K7YkPjz6ltnoMevSJU8D28uW6ZaSCwILhahw-IcjZl1DmmxJZw9-w__&Key-Pair-Id=K2TK3EG287XSFC)
System Logging Action Remote SFTP Example
The following example will show how to perform a remote push of the logs to a SFTP server. Note that typically an explicit file path is required, and the URL needs to terminate with a slash.
- From the MDS1-ESUA# command line, input tolt system logging collect-logs filename local-test remote-url sftp://172.28.152.30/home_dir/lbob/ username test-user password ************, and press Enter.
- Output similar to the following is displayed:
MDS1-ESUA# tolt system logging collect-logs filename local-test remote-url sftp://172.28.152.30/home_dir/usern/ username test-user password ************ <enter> action-success true MDS1-ESUA# _
A copy of the log file is now available at the remote URL.
FEEDBACK: Are you happy with this material?
Thank you Your feedback helps us to continually improve our content.