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=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cHM6Ly9kemY4dnF2MjRlcWhnLmNsb3VkZnJvbnQubmV0L3VzZXJmaWxlcy80MTcwMy81NDk1Mi9ja2ZpbmRlci9pbWFnZXMvcXUvMjAyNi9pbWFnZSgxKS5wbmciLCJDb25kaXRpb24iOnsiRGF0ZUxlc3NUaGFuIjp7IkFXUzpFcG9jaFRpbWUiOjE3ODkwOTkxODF9fX1dfQ__&Signature=fvWnfCIN59jgSZokWMPvz5CLeekJqtF3UBl1BrrHzX84eJk2Tvkb-AD8WuaQUaJPQ5hhjY~gk1Zp1-V7nRyvJ3Wp0gUn99rU5xp2r4IOwJbt3icDFspOJiF3y9pQdYmH6w8sqVMIQnqeqUAwkxrlco5DfU6JDRz3j2hJNJ-8cewCDZHdvKnLIwHBOfTmjKjjIScuBe1rhvhc3BWEJ1su0XNRG0nmJPTGG7CEmkttidKvnVo4pFU57ua5tYyHSFFijumeSDApsAabAljhSfVknvt2bGDJt1tdy1r7VsSJr0Tkvrsi6bwxtD1wZldRuWqT~9SUB7xcSGai1GxHXFv4Nw__&Key-Pair-Id=K2TK3EG287XSFC)
- Select the diagnostic folder and do a refresh to display the log file.
.png?Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cHM6Ly9kemY4dnF2MjRlcWhnLmNsb3VkZnJvbnQubmV0L3VzZXJmaWxlcy80MTcwMy81NDk1Mi9ja2ZpbmRlci9pbWFnZXMvcXUvMjAyNi9pbWFnZSgzKS5wbmciLCJDb25kaXRpb24iOnsiRGF0ZUxlc3NUaGFuIjp7IkFXUzpFcG9jaFRpbWUiOjE3ODkwOTkxODF9fX1dfQ__&Signature=U8PJV9dj5lIsek7KNfMBTQUYMrUYqmOYU~d-STGXncuid3mTVTUucpeETlu9NjKTMzqavpG5sSxT-Yqcr86EZjfhQh5JwoApF1Ggn4Qx7tBvrWE3MOmdjUazqtXV3OyOM75hNTpdZHD7d1WsZC4FF1OGwTdidmfRB4fpe1aSGRPNm-IdG7uyYfepzGDjMnV0~zPLVPXoi9ZNzZrzpmtfqqFbZZ3ZFSPCOeZY9BhK55ulOoIHRIr~sSisxexbGVnZESacsgw2wihq6DJ85d1OtZBVsg0fLCGEOrelYXQeaoB1bQtqu6FM4157hVl9UdSF8AVHX~a5E9hAiw-silvxdg__&Key-Pair-Id=K2TK3EG287XSFC)
- Select the log and drag over to a user' local file directory.
.png?Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cHM6Ly9kemY4dnF2MjRlcWhnLmNsb3VkZnJvbnQubmV0L3VzZXJmaWxlcy80MTcwMy81NDk1Mi9ja2ZpbmRlci9pbWFnZXMvcXUvMjAyNi9pbWFnZSg3KS5wbmciLCJDb25kaXRpb24iOnsiRGF0ZUxlc3NUaGFuIjp7IkFXUzpFcG9jaFRpbWUiOjE3ODkwOTkxODF9fX1dfQ__&Signature=Cpn48BroogsvfPJMcVHzDb5N4X~-0CTLQ~gZ3R93Q3YuSfTXgbzZcTRAIfICtlKGTdDrZHB9jU83ZecAwnDC7NtqJmZsouGZAx40lWqiVqNI-087l-JccWzFSdHvaL0vRbdAZmbYQ8kktYSTvhIKAtjOuA5mJYVDShsBF--3XhF~drz9AMxlapLiN6iSScZQXukOCjoHxMgTXPFQeNfOevfmdwEPXFDCLGQ-SIEo5LP5FqHneA9-GGX95-jxU-hd0NIbK45xonB8MNDVsNmYejR4fTUGPnzNG~WZZZGI6coNWRRRullFj6hmiGK3jmJQjx2bHM8DbxxpBQUdAryNBA__&Key-Pair-Id=K2TK3EG287XSFC)
.png?Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cHM6Ly9kemY4dnF2MjRlcWhnLmNsb3VkZnJvbnQubmV0L3VzZXJmaWxlcy80MTcwMy81NDk1Mi9ja2ZpbmRlci9pbWFnZXMvcXUvMjAyNi9pbWFnZSg1KS5wbmciLCJDb25kaXRpb24iOnsiRGF0ZUxlc3NUaGFuIjp7IkFXUzpFcG9jaFRpbWUiOjE3ODkwOTkxODF9fX1dfQ__&Signature=TZB8D8le78FF0~B69qsj12~PVPRZcGs21OGcljoJ6vKzNF51czh-4O4O52JRPt2eTrCbUfk-qz4~mImBl0kdvtw2tZ74fzmqZEyUJI7ZMplgGKHnfR45W~BHSRmriFg2yg2gNX9E8hxBaj35T-S7fXJvZC9qRAf6yqM~ZzbZqwNyLhtNKwowmG~AAiuwnQfYJ7IPy6pfqSNonraelWuYob78qHqjCz1nqGW2Va-MyxA159l7SbY1HOFfb3EwOqfEfagsnFHzQiA9-7sF3I0eRJMnL9Q-~pYNZ7V9aavifscjMcBmL7k7uFwIQlFNCpMIyFQAOdvYVZNpy8EVKH1kPw__&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.