- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
02-25-2021 11:40 AM
I noticed that the “opcmdhistory” log disappeared in Panorama after upgrading to PanOS9.1. It was there in 9.0 and previous versions.
Do you know why it changed and if the information is in another log file?
I was using it for troubleshooting and detecting cli commands executed by other admins, API calls, etc.
02-26-2021 04:17 AM
starting from PAN-OS 9.1.2 you can find the CLI history in req_stats.log
> less mp-log req_stats.log
02-26-2021 04:17 AM
starting from PAN-OS 9.1.2 you can find the CLI history in req_stats.log
> less mp-log req_stats.log
03-01-2021 02:57 AM
Thanks for your quick response @reaper
It is very useful to know about the new "req_stats.log" file.
It looks like "req_stats.log" has the GUI and API commands, which is very helpful, but it does not seem to be showing a log of the CLI commands.
03-01-2021 07:34 AM
it is, but in API format
here's "show system info"
2021-03-01 16:31:14.880 | 2021-03-01 16:31:14.884 | 2021-03-01 16:31:15.195 | 2021-03-01 16:31:15.195 | 1 | 536.87 msecs | 1 | <request cmd="op" cookie="1" uid="1"><operations><show><system><info/></system></show></operations></request>
03-02-2021 06:06 AM
@reaper Thanks. Sorry I have missed that previously.
This gives the information we need. Just a shame that it does not log the username of the admin executing the command...
01-21-2023 10:40 AM
Hello ,
Are there any commands on v10.2 to check command history on cli other than this one ? or can this be displayed in a more readable format?
Thanks
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!