The tolt system logging line item is used for requesting an archive of the current log.
.png?Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cHM6Ly9kemY4dnF2MjRlcWhnLmNsb3VkZnJvbnQubmV0L3VzZXJmaWxlcy80MTcwMy81NDk1Mi9ja2ZpbmRlci9pbWFnZXMvcXUvMjAyNS9pbWFnZSgyNTApLnBuZyIsIkNvbmRpdGlvbiI6eyJEYXRlTGVzc1RoYW4iOnsiQVdTOkVwb2NoVGltZSI6MTc3NDkyODEyOX19fV19&Signature=XSDiMAmYKOdqBU2m8D3tvlWQPXfviyCkaUdi01taFrEFSfZlzY1hfwsX~ZXkQSET9XjjcP9xYTYem139wy6cCRbjQvngM9QGtNBY-N8-aSJJQK-M3lGpGfk1h3-v1-~XcUYGS2QFQUUdgZu3skMD4J51NWg1UnJQ1AdL4omoqXOoHN97kg4zJ407TrWt2yC9wSxc6M~aDEASH-dsH3pOizar0CGRPZOjS5kbgsn~h4yY2T3FuZZBIGS7ZLWG45Hd0Ouaew2suIVrTURoT9wCC79g3TgbUn5Jc6vWDS5DV~xH84bxqY-ZkrXU0Zc-w7IfA5tWd4~qvuOGM15ZGFo2ug__&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# _
|