Forum Discussion

Praedyth's avatar
Praedyth
Icon for Nimbostratus rankNimbostratus
Jun 07, 2023
Solved

Pcap and accessing /var/tmp

Hello!  I'm pretty new to F5 and I'm running into an issue navigating the CLI. basically I've ssh'd into a F5 device through a jumpbox and all I'm trying to do is get a pcap and save it on the devic...
  • whisperer's avatar
    Jun 07, 2023

    Linux my friend! Make sure you are in bash shell. You may need to escape TMOS via run /util bash command. Then cd into directory and ls:

    - cd /var/tmp

    - ls

    Now, a "hack" to easily retrieve files via GUI is to copy or move them into /var/local/ucs and navigate via System -> Archives in GUI and download.

    - cp /var/tmp/packet.pcap /var/local/ucs/packet.pcap.ucs

    Just rename it back after download.

     

  • Paulius's avatar
    Jun 07, 2023

    Praedyth Because you are most likely in TMOS you cannot see the Linux file structure from here. Assuming your user has access to the Linux OS you would issue the command "bash" which will dump you into the Linux side of the OS and then you can navigate to the appropriate directory by using command "cd /var/tmp/" and then you can do an "ls -l | grep ".pcap" to find all your pcaps. Once you're done you can type "exit" which will dump you back to TMOS and then you can type "quit" which will log you out of the F5 all together. If your intent is to copy the file off you can use winSCP for Windows based OS and connect to the F5 this way and then navigate to the appropriate path or if you're on Linux you can scp the file off of the F5 to your local machine.