in reply to SSH to Unix and search files for string

If you have GNU grep command installed in the HP-UX server, you can use the -C option to do what you want:
$ ssh foo@server /usr/local/bin/grep -C 100 "the string you are lookin +g for" /var/log/whatever
I don't know if the grep that comes with HP-UX has this functionality... probably not!