BladeSystem Forums have moved here
To make BladeSystem information easier to find, we have moved the BladeSystem forums here, to Servers and Operating Systems.
Networking
Showing results for 
Search instead for 
Do you mean 

tcpip set service command fails with - duplicate key detected

Occasional Visitor

tcpip set service command fails with - duplicate key detected

I was trying to delete an existing tcpip service and recreate it again from scratch

 

I managed to delete the existing service, but when I attempt to create it from new I am getting the following error

 

%TCPIP-E-INVRECORD, invalid information
-RMS-F-DUP, duplicate key detected (DUP not set)

 

System details

OpenVMS 7.3-2

 

ucx details:

HP TCP/IP Services for OpenVMS Alpha Version V5.4 - ECO 7
on a AlphaServer 8400 5/625 running OpenVMS V7.3-2

 

Sequence of events:

ucx disable service x

ucx set noservice x

 

TCPIP SET SERVICE x /USER_NAME=SYSTEM                 /PROCESS_NAME=X /PORT=800  etc

 

The command fails :-(

 

It's certainly not there from what I can tell

 

ucx show service x

 

%TCPIP-W-NORECORD, information not found
-RMS-E-RNF, record not found

 

I'm at a loss to know how to proceed

 

 

2 REPLIES
Honored Contributor

Re: tcpip set service command fails with - duplicate key detected

The service definition may still exist in the config database.

 

$ TCPIP SHOW CONF ENABLE SERVICE

 

If so, you can remove it with:

 

$ TCPIP SET CONFIG ENABLE NOSERVICE x

 

Volker.

Occasional Visitor

Re: tcpip set service command fails with - duplicate key detected

Thanks for the quick reply - much appreciated

 

I am now looking for my dunces hat :-(

 

I had cut and paste a previous file for the service creation and failed to pay proper attention to the process name

The error was correct, it was a duplicate, just not a duplicate in rms/tcp database like I wrongly presumed

 

It was in fact a duplicate process name when attempting to create the service

 

i.e.

 

$ TCPIP SET SERVICE X /USER_NAME=SYSTEM -
/PROCESS_NAME=REMOTE_TEST /PORT=800 -
/PROTOCOL=TCP=NODELAY_ACK -
/SOCKET_OPTIONS=KEEPALIVE -
/FILE=x.com /LIMIT=10
$!
$
$ TCPIP SET SERVICE Y /USER_NAME=SYSTEM -
/PROCESS_NAME=REMOTE_TEST /PORT=801 -
/PROTOCOL=TCP=NODELAY_ACK -
/SOCKET_OPTIONS=KEEPALIVE -
/FILE=x.com /LIMIT=10