- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
02-01-2019 02:44 PM
Hi there,
Can I send (print) output of a command to a csv file? (PA500, software: 8.1.4)
For example the following command lists the users of the AD and disaplys on the screen. I need a switch/parameter or perhaps another command that lets me send the output (the list of the users) to a text or a csv file. Is that possible?
Example of the command:
show user group name "the name of the AD group"
Thanks
02-04-2019 07:17 AM
Sure no problem.
If you use API all the time then great but I hardly ever use them so i sometimes go for the "output for dummies option".
the call you require will be similar to this "<show><user><group><name>YOUR GROUP NAME</name></group></user></show>"
@BPry... Duley noted but unfortunately we are provided with Dev VM's and software is only available via the corp catalogue...
02-01-2019 07:56 PM
You could accomplish this with an API script, or using something like pandevice to write a python script. The firewall by itself does not have this ability built into the CLI.
02-02-2019 05:59 AM
I just use putty for my ssh. You can send the output to a text file if you modify the settings. However if you need to do this on a regular basis the as @BPry suggested, API is your bes bet.
02-02-2019 06:58 AM
Pu ... Putty ... come on now, if you aren't going to install the Windows Subsystem for Linux and install Ubuntu on your device at least do yourself the justice of installing mobaxterm. 😛
02-04-2019 06:15 AM
@Mick_BallThank you for your suggestion. I don't why I did not think of the sending the Putty output to text file before I posted my question. Simple enough.
With regards to using API, I have used API for other reasons, but to interface with the FW and pull output of commands, I will have to research further.
Thank you.
Sam
02-04-2019 07:17 AM
Sure no problem.
If you use API all the time then great but I hardly ever use them so i sometimes go for the "output for dummies option".
the call you require will be similar to this "<show><user><group><name>YOUR GROUP NAME</name></group></user></show>"
@BPry... Duley noted but unfortunately we are provided with Dev VM's and software is only available via the corp catalogue...
Click Accept as Solution to acknowledge that the answer to your question has been provided.
The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!
These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!
The LIVEcommunity thanks you for your participation!