Actually, for a regular expression, you may need to use 'grep -e', or egrep. Put your regular expression in quotes.
Code:
ps -ef | egrep 'tpsnmp$'
I think you could also use the -w option for grep here which means that the string must be the beginning of the line or a non-word character, or that it must be at the end of the line or followed by a non-word character or both.
Code:
ps -ef | grep -w tpsnmp
You might also want to exclude grep from your returns to make the output a bit clearer.
Code:
ps -ef | grep -v grep | grep -w tpsnmp