The tolt system logging line item is used for requesting an archive of the current log.
.png?Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cHM6Ly9kemY4dnF2MjRlcWhnLmNsb3VkZnJvbnQubmV0L3VzZXJmaWxlcy80MTcwMy81NDk1Mi9ja2ZpbmRlci9pbWFnZXMvcXUvMjAyNS9pbWFnZSgyNTApLnBuZyIsIkNvbmRpdGlvbiI6eyJEYXRlTGVzc1RoYW4iOnsiQVdTOkVwb2NoVGltZSI6MTc2NzExMzg5MH19fV19&Signature=fS~KwD7pqWjPwk0wXDohYr3IPVBFN2FXeFCbLK92jlHeyTmOQj5xJWuygV6CZ4i6NPVFH8Kf-unJFNxLo3Ygy~KHeUmTgSTDYCG7uZmtXxJ85Mm6ge5jKNbqntdyTJBhU2sFieKLHu-iiW1c2mDcL-YA4dB3TvsenxL7ULKGrdGSEejpA4EcYX1E4-A6Sr8QTJHMlbESMch4gckcW545snvrIizbQCnixUrXAej5ia8xewy1EGup1sTt86x~NsN0OKX7wR8r11L6p7DjtA-nMhqEdFpAIZDAw40TzFZe68QaxwcMtDO5VQNRpwSHVhj3BXZZN7gH-rfJARmniYv9fg__&Key-Pair-Id=K2TK3EG287XSFC)
Tolt system logging collect-logs action
|
Action |
Value |
Comment |
|
Collect-logs |
|
Action to collect all the log files, and create a tgz file of them and make available to users. |
|
Filename |
<string> |
The filename to give the log file. Do not include an extension, it will be added by the log collection. |
|
Remote-url |
<string> |
If using sftp to push logs to a remote site, specify the sftp url in a format acceptable to curl.
|
|
Username |
<string> |
The username to use when authenticating to an sftp server for log push. |
|
Password |
<string> |
The password to use when authenticating to an sftp server for log push. |
string
string
string
string
The following example will show how to create an archive of the logs in a local sftp directory on the BOLT.
MDS1-ESUA# tolt system logging collect-logs filename test1 <enter>
action-success true
MDS1-ESUA# _
|
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.
MDS1-ESUA# tolt system logging collect-logs filename test remote-url sftp://172.28.152.30/home_dir/usern/
username test-user password ************ <enter>
action-success true
MDS1-ESUA# _
|