You can use a
Run AppleScript or a
Run Shell Script action to extract the result from the
netstat command. For an AppleScript action it could be something like:
<pre style="
font-family: Monaco, 'Courier New', Courier, monospace;
font-size: 10px;
margin: 0px;
padding: 5px;
border: 1px solid #000000;
width: 720px;
color: #000000;
background-color: #FFEE80;
overflow: auto;"
title="this text can be pasted into an Automator 'Run AppleScript' action">
on run {input, parameters}
return (do shell script "netstat -nr | grep -w 'default' | awk '{print $2}'")
end run</pre>