Open multiple files from command line with cmtrace
What the description says. I'd love to open multiple files with CMTrace so it can more easily be integrated with 3rd party utilities!
As noted in the comments, all of our currently supported log viewers (CMTrace, OneTrace, and Support Center Log Viewer) should support multiple files. If you find that this isn’t the case, please send us a frown on this and we will look into it.
FYI: Just use 1e logfile viewer instead of CMtrace.
I needed this today and it appears to work with both Log Viewer and with OneTrace now?
PS ABC:\> & "C:\Program Files (x86)\Configuration Manager Support Center\CMLogViewer.exe" "\\server1\d$\sms_dp$\sms\logs\smspxe.log" "\\server2\d$\sms_dp$\sms\logs\smspxe.log" "\\server3\d$\sms_dp$\sms\logs\smspxe.log" "\\server4\d$\sms_dp$\sms\logs\smspxe.log"
PS ABC:\> & "C:\Program Files (x86)\Configuration Manager Support Center\CMPowerLogViewer.exe" -f "\\server1\d$\sms_dp$\sms\logs\smspxe.log" "\\server2\d$\sms_dp$\sms\logs\smspxe.log" "\\server3\d$\sms_dp$\sms\logs\smspxe.log" "\\server4\d$\sms_dp$\sms\logs\smspxe.log"
Robert Voje commented
I am running version 5.0.8853.1000 (64bit) and it just accepts one filename parameter, it just ignores the others.
It would be nice to have a standalone SCCM format log viewer that does not require a full SCCM install to access.
Especially since many people (like me) have implemented SCCM type log files in scripts.
Actually you *can* open multiple files from the command line; simply enclose each file name in double quotes with a space between, for example:
cmtrace "ccmsetup.log" "client.msi.log"
cmtrace "c:\windows\ccmsetup\logs\ccmsetup.log" "c:\windows\ccm\logs\LocationServices.log"
Great idea! Would make our troubleshooting a bit easier. Please be so kind and implement it.
Alexander Wagner commented
Yes! That feature would be great - within CMTrace!!!!
Alexander Wagner commented
YES - that feature would be really nice to have!!! PLEASE Productteam - implement it! :)
Command line with option to open and merge logs would be awesome.
Long Truong commented
Adam, what log viewer are you referring too below?
log viewer in Support Center??
Wayne Christopher commented
Multiple logs can be opened within CMTrace. You just have to use the Open File option once CMTrace is already running.
Michael Klinteberg commented
I use ConfigMgr LogFile Opener 1.1.0 from msitproblog.com.
Works quite decent when opening multiply files. Have some issues if the computer is over a slow wan. I guess the timing isn't quite right.
AdminAdam Meltzer (ConfigMgr Product Team) (Software Engineer, Microsoft Endpoint Configuration Manager) commented
We are not currently planning any feature updates to CMTrace. However, I will add this as a feature request to the log viewer in Support Center which we are actively working on improving.