To determine which process already uses port 20031 preventing NetVault from starting, perform the following:
1) Make sure the process already locking port 20031 is not a NetVault process left after an unclean shutdown (zombie process).
If NetVault is not stopped correctly, nvpmgr may exit but leave the rest of the other process.
To be sure no netvault processes are running use:
ps -ef | grep nv
this should not return any nv* process.
2) If there are no zombie NetVault processes, then another application is locking that port.
In an attempt to locate which process is holding it you could seach for it this way:
netstat -Aan |grep 2003
This should return the ouput in this format:
f1000e0035f9b600 udp4 0 0 127.0.0.1.20030 *.*
f1000e0044215000 udp4 0 0 127.0.0.1.20035 *.*
3) Now use the long number associated with the 20031 port with the rmsock command this way:
rmsock f1000e0035f9b600 inpcb
It should show you the process id associated with this socket and 20031.
example:
The socket 0x3665e408 is being held by proccess 8912968 (oracle).
In this example we know Oracle is already using this port.
4) Now using the process id shown in the previous command, you can determine the exact process that is using the port:
ps -ef | grep 8912968
Port 20031 is a necessary port for NetVault to function, therefore one should schedule a time when the application already using this port can be shutdown, so NetVault can successfully start, then bring up the application which should use any other port.
As a last resort, there is a possibility to change de NetVault default port, but this option should only be contemplated in extreme cases where for instance a production database must at all cost use 20031 and no other port.
The following solution explains how to change the NetVault default port but this is not recommended as it would imply also changing the default port on all other NetVault machines (Server and Clients) so they can successfully communicate and allow backup and restore.
https://support.quest.com/SolutionDetail.aspx?id=SOL78546&pr=NetVault%20Backup