Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

header-navigation
keyboard_arrow_up
close
keyboard_arrow_left
list Table of Contents
file_download PDF
{ "lLangCode": "en", "lName": "English", "lCountryCode": "us", "transcode": "en_US" }
English
keyboard_arrow_right

Show Tech: Offbox Agents (CLI)

Release: Juniper Apstra 4.2
{}
Change Release
date_range 07-Feb-24
We recommend that you use the Apstra GUI to obtain show tech files, but you have the option of using CLI instead, as described below. You'll need the device management IP address(es) and a valid device SSH username and password.
Note:

If your offbox agents are for infra, you'll collect show tech with a different method. Refer to Show-Tech: Infra Offbox Agents (CLI) for details.

  1. SSH into the Apstra server that the offbox agent is running on. (ssh admin@<apstra-server-ip> where <apstra-server-ip> is the IP address of the Apstra server.)
  2. To copy the show tech file(s) to your user directory, run the aos_offbox_show_tech_collector command with the following arguments:
    • --ips <ip address of one or more devices> (for example: 11.29.53.7 11.29.53.8 11.29.53.9)

    • --aos-ip <ip address of the Apstra server> (for example: 11.29.53.3)

    • --os-type <vendor OS type> (for example: junos)

    • --user <admin user name> (for example: admin)

    • --password <admin password> (for example: xu8&j3d'j1=dHnr)

    Example for 3 Devices:

    content_copy zoom_out_map
    admin@aos-server:~$ sudo aos_offbox_show_tech_collector --ips 11.29.53.7 11.29.53.8 11.29.53.9 --aos-ip 11.29.53.3 --os-type junos --user admin
    [sudo] password for admin:
    SSH password for remote device:
    2022-11-15 22:24:09,947 invoking DI container to collect 11.29.53.9 show tech
    2022-11-15 22:25:32,778 AOS offbox show tech generated at /home/admin
    2022-11-15 22:25:32,805 invoking DI container to collect 11.29.53.8 show tech
    2022-11-15 22:26:45,773 AOS offbox show tech generated at /home/admin
    2022-11-15 22:26:45,799 invoking DI container to collect 11.29.53.7 show tech
    2022-11-15 22:27:55,811 AOS offbox show tech generated at /home/admin
    
    admin@aos-server:~$ ls -l
    total 217440
    -rw-r--r-- 1 root  root      75958 Nov 15 22:27 11.29.53.7-5254009E6B20-junos-show-tech.tar.gz
    -rw-r--r-- 1 root  root      76180 Nov 15 22:26 11.29.53.8-52540039A6F3-junos-show-tech.tar.gz
    -rw-r--r-- 1 root  root     107620 Nov 15 22:25 11.29.53.9-5254001A5CEB-junos-show-tech.tar.gz
    -rw------- 1 root  root       8737 Nov 15 22:27 aos_di_11.29.53.7_show_tech_run.log
    -rw------- 1 root  root       8614 Nov 15 22:26 aos_di_11.29.53.8_show_tech_run.log
    -rw------- 1 root  root       8491 Nov 15 22:25 aos_di_11.29.53.9_show_tech_run.log
    
    admin@aos-server:~$ 
  3. Copy the show tech file(s) to a local computer with the ability to upload.
  4. Upload the show tech file to your customer case.
footer-navigation