12-29-2022 05:37 AM
At the request of the TAC I ran several show tech-support commands however despite the output from the command I cannot find the tech-support files anywhere in the file system.
sysadmin-vm:0_RP0# show tech-support ctrace
Thu Dec 29 13:07:20.910 UTC+00:00
++ Show tech start time: 2022-Dec-29.130720.UTC ++
Waiting for gathering to complete
..............
Compressing show tech output
Show tech output available at /misc/disk1//showtech/showtech-ctrace-admin-2022-Dec-29.130720.UTC.tgz
++ Show tech end time: 2022-Dec-29.130803.UTC ++
sysadmin-vm:0_RP0# dir /harddisk:/showtech/
Thu Dec 29 13:09:21.585 UTC+00:00
total 0
38851204 kbytes total (36801244 kbytes free)
sysadmin-vm:0_RP0#
sysadmin-vm:0_RP0#
Solved! Go to Solution.
12-30-2022 12:00 PM
Sysadmin/admin does not have access to the interfaces in XR, there is a mgmt port dedicated to sysadmin but it probably isn't setup.
The easiest and most common thing to do is to copy the file over to the XR VM.
copy harddisk:/showtech/<file> harddisk: location 0/rp1/VM1
The key is that we need to copy to VM1 for the file to be copied between VMs.
Sam
12-29-2022 12:59 PM
In general show tech stores as per your mentioned location :
but in your case
/misc/disk1//showtech/
can you post dir output ?
12-29-2022 01:05 PM
No files
RP/0/RP0/CPU0:[host]#dir /misc/disk1//showtech/
Thu Dec 29 21:04:20.131 UTC
Directory of harddisk:/showtech/
No files in directory
38851204 kbytes total (31918272 kbytes free)
RP/0/RP0/CPU0:[host]#
12-29-2022 03:00 PM
/misc/disk1 is the symlink for /harddisk, well actually both are for the real mount point. In the sysadmin VM you have to use harddisk: as not all of the linux hypervisor is exposed to the VM, IE that is the mountpoint provided to the VM.
Sam
12-29-2022 03:06 PM
First we need to make sure that the directories exist and are mounted properly:
sysadmin-vm:0_RP1# show tech pcie
Thu Dec 29 22:58:11.923 UTC+00:00
++ Show tech start time: 2022-Dec-29.225811.UTC ++
Waiting for gathering to complete
..........
Compressing show tech output
Show tech output available at /misc/disk1//showtech/showtech-pcie-admin-2022-Dec-29.225811.UTC.tgz
Please collect show tech-support ctrace in addition to any sysadmin show-tech-support collection
++ Show tech end time: 2022-Dec-29.230002.UTC ++
sysadmin-vm:0_RP1# dir /harddisk:
Thu Dec 29 23:00:20.867 UTC+00:00
total 604
130306 drwxr-xr-x. 2 4096 Apr 3 2019 .repo_cache
130307 drwxr-xr-x. 2 4096 Jul 22 18:43 .tmp
16 -rw-r--r--. 1 25148 Jan 14 2022 lsof_log.log
130308 drwxr-xr-x. 2 4096 Apr 3 2019 dumper
11 drwx------. 2 16384 Apr 3 2019 lost+found
13 -rw-r--r--. 1 524288 Jul 20 2020 showtech-fpd-dumps
260609 drwxrwxrwx. 3 4096 Jul 22 18:43 tftpboot
390913 drw-r--r--. 2 4096 Aug 12 2021 tmp_staging
130305 drwxr-xr-x. 2 4096 Jul 22 18:43 .repo_tmp
390914 drwxr-xr-x. 2 4096 Dec 29 23:00 showtech
15 -rw-r--r--. 1 2633 Jul 22 18:15 config.cfg
14 -rw-------. 1 1349 Dec 22 12:42 .bash_history
260611 drwxr-xr-x. 4 4096 Dec 26 01:27 cisco_support
12 -rw-r--r--. 1 4887 Jul 22 18:35 asr9k_idprom_dump
9548008 kbytes total (6967968 kbytes free)
sysadmin-vm:0_RP1# dir /harddisk:/showtech
Thu Dec 29 23:00:25.556 UTC+00:00
total 205388
390915 -rw-r--r--. 1 210309466 Dec 29 22:59 showtech-pcie-admin-2022-Dec-29.225811.UTC.tgz
9548008 kbytes total (6967968 kbytes free)
sysadmin-vm:0_RP1# dir /harddisk:/showtech/
Thu Dec 29 23:00:56.388 UTC+00:00
total 205388
390915 -rw-r--r--. 1 210309466 Dec 29 22:59 showtech-pcie-admin-2022-Dec-29.225811.UTC.tgz
9548008 kbytes total (6967968 kbytes free)
sysadmin-vm:0_RP1# show media
Thu Dec 29 23:01:12.548 UTC+00:00
---------------------------------------------------------------------
Partition Size Used Percent Avail
---------------------------------------------------------------------
rootfs: 2.4G 1.2G 53% 1.1G
harddisk: 9.2G 2.0G 23% 6.7G
log: 469M 297M 69% 138M
config: 469M 4.3M 1% 430M
disk0: 968M 13M 2% 890M
a9ksys: 748M 15M 3% 695M
harddiskb: 3.0G 1.2G 40% 1.9G
install: 4.8G 1.2G 26% 3.4G
install:/tmp 9.2G 2.0G 23% 6.7G
install:/cache 9.2G 2.0G 23% 6.7G
rootfs:/install/tmp 9.2G 2.0G 23% 6.7G
---------------------------------------------------------------------
rootfs: = root file system (read-only)
log: = system log files (read-only)
config: = configuration storage (read-only)
install: = install repository (read-only)
a9ksys: = ASR9K system storage (read-only)
sysadmin-vm:0_RP1# run
Thu Dec 29 23:01:18.511 UTC+00:00
[sysadmin-vm:0_RP1:~]$df -h
Filesystem Size Used Avail Use% Mounted on
/dev/vda1 2.4G 1.2G 1.1G 53% /
none 941M 0 941M 0% /dev
run 948M 388K 947M 1% /run
tmpfs 948M 0 948M 0% /var/volatile
tmpfs 948M 0 948M 0% /media/ram
none 948M 1.8M 946M 1% /dev/shm
tmpfs 64M 132K 64M 1% /tmp
none 948M 1.8M 946M 1% /dev/shm
/dev/vdd 9.2G 2.0G 6.7G 23% /misc/disk1 <- the dev device might be different but that is fine
/dev/vdc1 469M 297M 138M 69% /var/log
/dev/vdc2 469M 4.3M 430M 1% /misc/config
/dev/vdc3 968M 13M 890M 2% /misc/scratch
none 512K 0 512K 0% /mnt
/dev/ram7 15M 15M 0 100% /mnt/ram7
/dev/vde 748M 15M 695M 3% /eusba
/dev/vdf 3.0G 1.2G 1.9G 40% /eusbb
/dev/vdb1 4.8G 1.2G 3.4G 26% /install_repo
tmpfs 10M 0 10M 0% /media/install_tmpfs
[sysadmin-vm:0_RP1:~]$
If the showtech directory doesnt exist simply create it by 'mkdir /misc/disk1/showtech' then check it exists like below:
[sysadmin-vm:0_RP1:~]$ls -l /misc/disk1
total 588
-rw-r--r--. 1 root root 4887 Jul 22 18:35 asr9k_idprom_dump
drwxr-xr-x. 4 root root 4096 Dec 26 01:27 cisco_support
-rw-r--r--. 1 root root 2633 Jul 22 18:15 config.cfg
drwxr-xr-x. 2 root root 4096 Apr 3 2019 dumper
drwx------. 2 root root 16384 Apr 3 2019 lost+found
-rw-r--r--. 1 root root 25148 Jan 14 2022 lsof_log.log
drwxr-xr-x. 2 root root 4096 Dec 29 23:00 showtech
-rw-r--r--. 1 root root 524288 Jul 20 2020 showtech-fpd-dumps
drwxrwxrwx. 3 root root 4096 Jul 22 18:43 tftpboot
drw-r--r--. 2 root root 4096 Aug 12 2021 tmp_staging
[sysadmin-vm:0_RP1:~]$ls -l /harddisk:
lrwxrwxrwx. 1 root root 11 Jul 22 18:35 /harddisk: -> /misc/disk1 <- this verifies the symlink
[sysadmin-vm:0_RP1:~]$
If you have a mount problem thats more complex and I would need to do a webex with you to find why the OS didn't mount the disk.
Sam
12-30-2022 08:20 AM
I am able to see the file in the directory as you demonstrated above, however when I try to connect to the router from our central FTP server which we use to download firmware, or upload show tech-support files I do not see the tech-support file in the same directory.
sysadmin-vm:0_RP0# dir /harddisk:
Fri Dec 30 16:13:16.835 UTC+00:00
total 1168
1438977 drwxr-xr-x. 2 4096 Oct 19 05:43 NGN
1046529 drwxr-xr-x. 2 4096 Dec 29 13:08 showtech
13 -rw-r--r--. 1 0 Apr 30 2019 .KEEP_THIS_FILE
1831425 drwxr-xr-x. 2 4096 Apr 30 2019 dumper
14 -rw-r--r--. 1 327680 Apr 30 2019 .spddc
12 -rw-r--r--. 1 0 Apr 30 2019 KEEP_THIS_FILE
17 -rw-------. 1 127 Oct 26 2021 .bash_history
15 -rw-r--r--. 1 752852 Dec 28 20:09 shelf_mgr_2240.by.11.20221228-200944.sysadmin-vm:0_FC1.92564.core.gz
2223873 drw-r--r--. 2 4096 Oct 19 07:30 tmp_staging
1308161 drwxr-xr-x. 4 4096 Dec 30 00:24 cisco_support
16 -rwxr-xr-x. 1 2386 Jul 18 2019 ssh-fix.sh
1048577 drwxr-xr-x. 3 4096 Oct 19 09:42 tftpboot
11 drwx------. 2 16384 Jun 23 2017 lost+found
18 -rw-------. 1 0 Nov 15 06:23 .python-history
19 -rw-r--r--. 1 62499 Dec 28 20:09 shelf_mgr_2240.by.11.20221228-200944.sysadmin-vm:0_FC1.92564.core.txt
38851204 kbytes total (36668528 kbytes free)
sysadmin-vm:0_RP0# dir /harddisk:/showtech/
Fri Dec 30 16:13:27.838 UTC+00:00
total 133828
1046530 -rw-r--r--. 1 137039228 Dec 29 13:07 showtech-ctrace-admin-2022-Dec-29.130720.UTC.tgz
38851204 kbytes total (36668528 kbytes free)
sysadmin-vm:0_RP0#
12-30-2022 12:00 PM
Sysadmin/admin does not have access to the interfaces in XR, there is a mgmt port dedicated to sysadmin but it probably isn't setup.
The easiest and most common thing to do is to copy the file over to the XR VM.
copy harddisk:/showtech/<file> harddisk: location 0/rp1/VM1
The key is that we need to copy to VM1 for the file to be copied between VMs.
Sam
01-03-2023 06:22 AM
Thanks, that worked.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide