If you know the parameters that you want to set, it will be pretty straightforward to do this. Except with Solaris 10 (which has a different way of handling kernel settings), the names will be pretty much self-explanatory.
For instance, in Solaris 9, shmmax looks like
this. While in HP-UX 11i, shmmax looks something like
this.
Of course, the ways to set them are different, on Solaris, you modify /etc/system, and on HP-UX, the easiest way is to change these using SAM.