A simple name like sar is actually a detriment in a pkg search (pkg search -r *sar*) and there is probably a way to constrain a pkg search but I don't know how to do that. Its too much to sort through.
A peak at the sar.1 man page tells me that it is system/accounting/legacy-accounting. You can always review the man pages on docs.oracle.com to
find the pkg names but I can't guarantee that they're all listed.
One way you could do a more specific search would be to do the following:
# pkg search '/usr/bin/sar'
if you think the binary could be installed in /usr/bin (otherwise try another path location). You could filter the output to be only interested in package names by using:
# pkg search -o pkg.name '/usr/bin/sar'
Now, to see what type of file it's matching, we could use:
# pkg search -o pkg.name,action.name,action.key '/usr/bin/sar'
PKG.NAME ACTION.NAME ACTION.KEY
system/accounting/legacy-accounting link /usr/bin/sar
So it tells me it's a link. Let's see where that links to:
# pkg contents -r -a path=usr/bin/sar -o action.name,path,target system/accounting/legacy-accounting
ACTION.NAME PATH TARGET
link usr/bin/sar ../sbin/sar
In IPS, there's a few different ways to construct queries and searches through pkg contents and pkg search.
Though the question is already answered (thread to be marked yet), here is a "Think simple" solution:
Launch the Package Manager:
(System --> Administration --> Package Manager) or call /usr/bin/packagemanager (as root).
Type "sar" in the search field and search. Like me, you'll probably get a single entry.