Commands like 'fmpolicy print-adom-object', 'fmpolicy print-adom-package', 'fmpolicy print-device-database', 'fmpolicy print-device-object', 'fmpolicy print-prov-templates' have an option to redirect their output to 'Output file name', by default, '/tmp/pl'.
However, I'm not able to find documentation on how to retrieve or use this file. Anyone?
Solved! Go to Solution.
We will improve this diag command and add export function for next patch release
Thanks
Simon
We will improve this diag command and add export function for next patch release
Thanks
Simon
[strike]Answering my own question: use 'fnsysctl cp /tmp/pl /usb' to copy file to USB disk.[/strike]
It seems I made a mistake... fnsysctl isn't working in FortiManager (but is on FortiGate).
by the way, normally we just use console access software to log the screen output (save to its log file), which might be easier?
Thanks
Simon
I mean just without that "output file name" for "exec fmpolicy print", this is optional, and without a file name, it prints output on screen
Thanks
Simon
Dear all, the /tmp/pl file can't be accessed? I have to use the solution but looks like the output from the screen is not complete and I try to see the file saved on /tmp/pl. Do you know how to see it?
My commands:
1. execute fmpolicy print-adom-object RO_Admins "firewall address" all - show just last objects, not all
2. execute fmpolicy print-adom-object RO_Admins "firewall address" all /tmp/pl - save the file on tmp director but I cannot go there, how to export this file?
Hey liviu,
- there are options to get into the underlying Linux shell, where you could then get to the /tmp folder (and export the file via scp, or view the file with 'cat' or similar)
-> you have to enable shell access and set a shell password to do this
-> This is for FortiAnalyzer, but also applies to FortiManager (including current versions as of writing, 7.0 and 7.2)
As an alternative:
- you can connect via PuTTY or a similar program and log the output to a file
-> FortiManager should dump all objects, even if you can't scroll back far enough to see all of them
Dear Debbie,
I just manage to obtain the output. I used putty to log all sessions and after to save the entire file. Your suggestion was good and helpfull. Thank you again!
Select Forum Responses to become Knowledge Articles!
Select the “Nominate to Knowledge Base” button to recommend a forum post to become a knowledge article.
User | Count |
---|---|
1740 | |
1108 | |
752 | |
447 | |
240 |
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2024 Fortinet, Inc. All Rights Reserved.