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=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cHM6Ly9kemY4dnF2MjRlcWhnLmNsb3VkZnJvbnQubmV0L3VzZXJmaWxlcy80MTcwMy81NDk1Mi9ja2ZpbmRlci9pbWFnZXMvcXUvMjAyNi9pbWFnZSgxKS5wbmciLCJDb25kaXRpb24iOnsiRGF0ZUxlc3NUaGFuIjp7IkFXUzpFcG9jaFRpbWUiOjE3ODg3Njk5ODZ9fX1dfQ__&Signature=GP6yitD2NKkWLULXiww7OgxpzIhlsFKXYiM9E0zfD36962EgDVgSOiRIZt91c~BtyHQuCIPT2~nAtVmaQfGexEQLxO6uAsz9QGBo4D~vB3UwlmlLRZ82f7btz58MKakAH2pwmJ7irCzjKRdtu4CoGINM7lyLvuBDsLd67NR6TitKS-SvcK~261vF7dhRQhSogHKHYsXHhZMe8C3tFCledSE4e7fesyO-CcKDm51czzJUYry~QdHDCHNME-AhymxYAUVtZ3dyuBeW7lj8yfnWHNDD9zFmuNw609acajhzA3Mk7KHzXMGP5AWozpsuhHxVt4qgoP6bFL5bf50INvrzqw__&Key-Pair-Id=K2TK3EG287XSFC)
- Select the diagnostic folder and do a refresh to display the log file.
.png?Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cHM6Ly9kemY4dnF2MjRlcWhnLmNsb3VkZnJvbnQubmV0L3VzZXJmaWxlcy80MTcwMy81NDk1Mi9ja2ZpbmRlci9pbWFnZXMvcXUvMjAyNi9pbWFnZSgzKS5wbmciLCJDb25kaXRpb24iOnsiRGF0ZUxlc3NUaGFuIjp7IkFXUzpFcG9jaFRpbWUiOjE3ODg3Njk5ODZ9fX1dfQ__&Signature=L1LLd6ByP0jktgtLmrSpKYXl9XzkUsifp5DkQPch~xVuhHQgpFdaSgGI6E3DI1mRs4XDKUBySSqmC6PWYQxljNPz5dVD9su3wOe5MfbacMGE~jlnAi55EWkybyK7pjVkViMcfkK0ae3eVq8RVQ-7-kVjtc9MQr~jLSOtOHjcGWGU9A4StTcgNIU0pAHARK-0mQnMy~nND-zUPFm67rC0oHQrt1PBJOuY37FDUM~iF9GziaXBZPsj~WzCdIj1VWUUhBTS1jnwbN8-XhORjOadXroQyQfDChvHAsiF0E2KjL4JxJECSuFUFNLdF9QjLAZvPzetDzbOyTjUormUBg8wqw__&Key-Pair-Id=K2TK3EG287XSFC)
- Select the log and drag over to a user' local file directory.
.png?Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cHM6Ly9kemY4dnF2MjRlcWhnLmNsb3VkZnJvbnQubmV0L3VzZXJmaWxlcy80MTcwMy81NDk1Mi9ja2ZpbmRlci9pbWFnZXMvcXUvMjAyNi9pbWFnZSg3KS5wbmciLCJDb25kaXRpb24iOnsiRGF0ZUxlc3NUaGFuIjp7IkFXUzpFcG9jaFRpbWUiOjE3ODg3Njk5ODZ9fX1dfQ__&Signature=apizItdE5Nn98KaoXrmY270f1fSnYBl02plx2rfD3~zHx3iIXfMpO1WfFbMkEKFobv81rzeOwobovCB~Wl92rBdVz0XGsba2cKNgJy8SrIyhywHzWK7UB3Aip0UbkPxF~vBQ-UWzdIbALTVF9Z~K53mNSutliYj0ReSqZE0FSDXAC1bei8Vqv618ZuHp7duCqCAjG-U3Mh~ctZIPFgZKDFn6yVmw4PKQUTXmCXSRSsum~RLQauuMcfivBnni9lnhcQzTERxzMXiBcgzhvLX-zO09xCvCLzyCl8BRtGAGY8FB-z5aOyqbi8DzoWiadYTSU~FzAVQ5rHgcemvFw4dwHQ__&Key-Pair-Id=K2TK3EG287XSFC)
.png?Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cHM6Ly9kemY4dnF2MjRlcWhnLmNsb3VkZnJvbnQubmV0L3VzZXJmaWxlcy80MTcwMy81NDk1Mi9ja2ZpbmRlci9pbWFnZXMvcXUvMjAyNi9pbWFnZSg1KS5wbmciLCJDb25kaXRpb24iOnsiRGF0ZUxlc3NUaGFuIjp7IkFXUzpFcG9jaFRpbWUiOjE3ODg3Njk5ODZ9fX1dfQ__&Signature=fnRTjUsNDflzDEML~mZvbwyIpZDDAkZcZum-SGyWf5BcplMDmrqWIOJrC2UaJ6chlmBz088HiQ4W5Uu3g5wmXUrF2AuJDSDSNOF220Z16hxq2dikvd-7TuOJqlb5XbJRerbjI9tHHmM9YH3gkN7xDfAied9DUKvZvuxi-mCizTOj8HGIPx7jjdn1glPNP7yAwd58ujw-vT~mDpjr82Cd7mnYIW-jOI7MnFMsagjwxm3uQhWI~iDNUTUELeF9HZ7vq4KpSMMtHPNegD5uNj56ilkezgLD58751fmQrhZgnRdULHkrWAb~4pDhm5PgADxG14j~cIfYuSilQ4MRTwN7fQ__&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.