infor.com
concierge
infor u
developer portal
documentation central
customer center
Posts
Categories
Groups
ERPs
CSD
FSM/HRT
LN
M3
Syteline/ CSI
Hubs
Developer
Healthcare
Hospitality
Public Sector
Onboarding
Release Center
CloudSuites
Aerospace & Defense (LN)
Automotive (LN)
Chemicals (M3)
Corporate (FSM/HRT)
Distribution (Sx.e/CSD)
Distribution Enterprise (M3)
Engineering & Construction (LN)
Fashion (M3)
Food & Beverage (M3)
Healthcare (FSM/HRT)
Industrial (Syteline/CSI)
Industrial Enterprise (LN)
Manufacturing (M3)
Public Sector (FSM/HRT)
Solutions
Supply Chain Management (SCM)
Human Capital Management (HCM)
Events
Groups
User Groups
Your Groups
About
Email Community Support
Infor News
Migrated Forums
Home
Clovertech
Clovertech Archive
Cloverleaf
Setting AUTOSTART in tcl script and save updates into NetConfig file
jdInforComm
Hello - is it possible to set the AUTOSTART flag in a tcl script and save the changes in or into the NetConfig file?
Tried the commands below and can reset the AUTOSTART flag in tcl, but is it possible to somehow get the AUTOSTART changes into the NetConfig file? Thanks in advance.
hcitcl>netcfgLoad
hcitcl>set jdData [netconfig get connection data "jd_in_tcpipNEW_MOD" ]
hcitcl>keylget jdData AUTOSTART newAuto
1
hcitcl>puts $newAuto
0
hcitcl>keylset jdData AUTOSTART 1
hcitcl>keylget jdData AUTOSTART newAuto
1
hcitcl>puts $newAuto
1
[ How can I get the new setting into the NetConfig file from the tcl script? ]
Find more posts tagged with
Clovertech
Comments
jcobane1
I don't know that I would recommend attempting to change the NetConfig programmatically from a script; I think you could unknowingly corrupt your NetConfig. When I have had to do a mass change on the AutoStart settings in NetConfig in the past, I have done it via a text editor and simply done a search/replace of AUTOSTART 0 to AUTOSTART 1 (or visa versa) depending on the need. I simply ensure that I back up the NetConfig before making this change, then load it in the GUI after the change to make sure it didn't break.
Hope that helps.
Jim Cobane - Henry Ford Health
jdInforComm
Hello - thanks for the comments; sounds like a direct text edit on the NetConfig file is the only way. Was trying to see if programmatically possible because we only want to do the AUTOSTART reset on inbound threads. Thanks again. Javier
Charlie Bursell
Jim is right. It is best to edit directly if for some reason you do not want to use the GUI. But be sure to BACKUP! Never know when you will fat finger something.
The change will require restart any way so no need to automate too much.
jdInforComm
Thanks - keeping it all in mind; came up with a combination of tcl / ksh script; testing good so far.
Rob Lindsey (Clovertech)
Yes it is possible to do but you have to be very wary of many things esp LOCKs and if there are changes from version to version.
I have done this type of programming in our environment. We do this because of our design and how many interfaces we have (over 7000) so it is easier to do Autostart and a few other things (port, host, bindings, etc).
Rob
jdInforComm
Thanks for the insite - figured a way to do it (in the "sandbox") for fun; but aware to use with caution.
jdInforComm
...... typos types .... : )