June 1, 2009

Introducing P4Scout...


Since the iPhone came out, I've been curious about getting the C++ Perforce API running on it. To make it work well, I've wrapped it in an Objective-C version of the API (more about that in a future blog post).

Initially a skunkworks project, P4Scout turned into an actual application that you can download from the iTunes store.

We've named it "P4Scout" to match its primary function: To find servers and alert you to server issues.

Here's a screenshot from the main screen...


There are two sections of servers: "Saved" and "Discovered". The "Saved" portion are servers that you've manually inputted and the "Discovered" section contains servers that are automatically discovered via Zeroconf.

You can also see an icon next to each server indicating status:

Server is running
Server is running with warnings
Server is not accepting connections
Server machine is not reachable

If you want more detail, you can tap the server row which will give you a detail pane...


One thing to note here is the SSH button at the bottom. If you have installed an SSH client (such as TouchTerm, also on the iTunes store), you can easily ssh into the server by tapping this button. Also note the detail pane displays yellow triangles next to each problematic item. In this example, you can see it next to the "Monitor" label, indicating there is a long-running process on the server.

Tapping the blue detail button will bring up the 3rd screen: a Tasks table....


Tapping a task will compose an email in Mail.app that contains the task data (only send it if you want to pester that user).

I'm hoping that P4Scout will be a useful contribution to the Perforce eco-system. Please let us know what you think by contacting Perforce Support.