Re: tcpip set service command fails with - duplicate key detected (545 Views)
Reply
Occasional Visitor
dodecehedron
Posts: 2
Registered: ‎07-15-2013
Message 1 of 3 (552 Views)

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

 

 

Honored Contributor
Volker Halle
Posts: 5,205
Registered: ‎04-26-2004
Message 2 of 3 (549 Views)

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
dodecehedron
Posts: 2
Registered: ‎07-15-2013
Message 3 of 3 (545 Views)

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

The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.