Page MenuHomeVyOS Platform

op command: " generate tech-support archive file" option is not working
Closed, InvalidPublic

Description

Details:

The file option says it will generate the file at the specified path but doesn't seem to work. Not even in the current location.

vyos@vyos:~$ generate tech-support archive file
Possible completions:
  <Enter>       Execute the current command
  <file>        Generate compressed tech-support archive at the specified path
  <scp://<user>:<passwd>@<host>/<file>>
  <ftp://<user>:<passwd>@<host>/<file>>
vyos@vyos:~$ generate tech-support archive file
Possible completions:
  <Enter>       Execute the current command

It generated the archive by appending "file" in the name.

vyos@vyos:~$ pwd
/home/vyos
vyos@vyos:~$ generate tech-support archive file
Saving the archives...
Saved tech-support archival at /opt/vyatta/etc/config/support/file.vyos.tech-support-archive.2021-09-25-150643.tgz
vyos@vyos:~$ ls -ltr
total 0
vyos@vyos:~$

Tested in both latest rolling release and 1.2.8 version.

Details

Difficulty level
Unknown (require assessment)
Version
1.4-rolling-202109250602, 1.2.8
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Unspecified (possibly destroys the router)
Issue type
Unspecified (please specify)

Event Timeline

The command mentions that the file is saved to: /opt/vyatta/etc/config/support/file.vyos.tech-support-archive.2021-09-25-150643.tgz thus ls from the home directory will not reveal a file.

cpo@LR1.wue3:~$ generate tech-support archive file
Saving the archives...
Saved tech-support archival at /opt/vyatta/etc/config/support/file.LR1.wue3.tech-support-archive.2021-09-25-200712.tgz
cpo@LR1.wue3:~$ ls -al /opt/vyatta/etc/config/support/file.LR1.wue3.tech-support-archive.2021-09-25-200712.tgz
-rw-r--r-- 1 root vyattacfg 9663736 Sep 25 20:07 /opt/vyatta/etc/config/support/file.LR1.wue3.tech-support-archive.2021-09-25-200712.tgz

@c-po The mentioned completion help stating is wrong then as it says at the specified path.

The default path to generate the archive file is at /opt/vyatta/etc/config/support/, the "file" option is just appending "file" in front of the name it does not make much difference with just archive command:

vyos@vyos:~$ generate tech-support archive
Saving the archivals...
Saved tech-support archival at /opt/vyatta/etc/config/support/vyos.tech-support-archive.2021-09-26-064757.tgz
vyos@vyos:~$

vyos@vyos:~$ generate tech-support archive file
Saving the archivals...
Saved tech-support archival at /opt/vyatta/etc/config/support/file.vyos.tech-support-archive.2021-09-26-144138.tgz