I don’t have a Solaris to work with, but this thread has examples for Linux and AIX you may be able to use