1753269 Members
5282 Online
108792 Solutions
New Discussion

Merging netproxy files

 
Steven_101
Advisor

Merging netproxy files

Can the netproxy files from 2 different systems be merged. I think its just a case of copying the file over with a diferent name and then running a merge or should it be a convert ?
1 REPLY 1
John Gillings
Honored Contributor

Re: Merging netproxy files

Steven,

NETPROXY and NET$PROXY are just simple indexed files. Files from multiple systems can certainly be consolidated (but remember to make sure any node names referenced are defined somewhere on the target system).

First work out if you want NETPROXY or NET$PROXY. On any recent system, I'd expect it's NET$PROXY you're interested in.

Next, it's likely on the target system the file is open, so you can't just CONVERT or MERGE into the "live" file. Instead, you can transfer the records one by one with a DCL loop:

$ OPEN/READ/WRITE/SHARE OUT NET$PROXY ! target
$ OPEN/READ IN OTHER_PROXY.DAT
$ LOOP: READ/END=ENDLOOP IN LINE
$ WRITE OUT LINE
$ GOTO LOOP:
$ ENDLOOP:
$ CLOSE IN
$ CLOSE OUT

Check that the proxies defined are correct, and ensure any unnecessary entries are removed. Used incorrectly, proxies can be a security hole, so the best policy is to keep them to a bare minimum.

Also check that the node names referenced are defined to be the same nodes on source and destination systems. Otherwise, you might be opening access to unauthorized persons.
A crucible of informative mistakes