The version 8.6.2 and up do it very conveniently. When running ora_cleansp, you are shown the variable directory that would be cleaned up as well as the port # involved. While the latter does not mean anything (as the same vardir can be used against a new port), the vardir that is being operated upon is a useful info that can alert user if a wrong vardir is used. If using a wrong vardir, it is possible to cancel the ora_cleansp (ctrl+C) and re-issue the command with correct environment. Here is a screen shot of the ora_cleansp in 8.6.2:
alvsupu07 # ./ora_cleansp sha86/sha86
Are you sure you want to perform the clean for '/u02/sha86/var' and <port #>? (N)
To clean a replication stream, run ora_cleansp on the source and on all targets
.
.
If on version lower than 8.6.2, the only option is to ensure that the environment is correctly set before invoking ora-cleansp. It will not show you in advance which variable directory will be operated upon (or cleaned)