[acg] Soft ioc startup scripts

Brian Bevins bevins at jlab.org
Fri May 19 13:21:20 EDT 2023


We should definitely retain the IPAddress field. We can add HostName where it makes sense, or to every NetElem for consistency, but Brad's right that most of the time the element name is the host name. Soft iocs are another exception. They have a Host property which indicates the machine they run on. That would be redundant with HostName unless we dropped it.

What use cases do we envision for HostName that aren't currently convenient without it?

BTW, the "req CA" (or "req ca") command has always accepted host names as well as IP addresses. It does this by using DNS to convert host names to IPs. Now that CA seems to be happy with hostnames it doesn't really need to do that anymore, except perhaps for legacy support. I'm going to add the ability to look up soft ioc hosts so that soft ioc names can also be used.

--Brian

________________________________
From: acg <acg-bounces at jlab.org> on behalf of Brad Cumbia via acg <acg at jlab.org>
Sent: Friday, May 19, 2023 11:38 AM
To: acg at jlab.org <acg at jlab.org>; Gary Croke <gcroke at jlab.org>
Subject: Re: [acg] Soft ioc startup scripts

I had a brief discussion about adding a hostname field to the elements but the actual element name is the hostname (nl02digips1), with the exception of the vme crates.  The element name is named after the ioc that is in the crate ie. iocea2mag_crate. Actual hostname is vmeiocea1mag.  I don't think we should replace the ip address field, maybe just add hostname field, even though in most cases it will be the same as the element name.

______________
Brad Cumbia

Network Engineer
Accelerator Computing Group (ACG)
Accelerator Computing Enviroment (ACE)

Thomas Jefferson National Accelerator Facility
12000 Jefferson Avenue
Newport News, Virginia 23606
Phone (757)269-5839

________________________________________
From: acg <acg-bounces at jlab.org> on behalf of Gary Croke via acg <acg at jlab.org>
Sent: Friday, May 19, 2023 9:55 AM
To: acg at jlab.org
Subject: Re: [acg] Soft ioc startup scripts

Not my intention to spam everyone, but I thought this might be of wide enough interest for the group.

If the preferred method going forward is to refer to networked devices by host name rather than IP address in software, maybe we should consider some CED changes?  As far as I can tell, the only type in CED that has a 'HostName' property is VMECrate, whereas a lot have IPAddress (only three roots though: NetElem, RacksAndCrates, Meter).

Should we replace IPAddress with HostName?  Or maybe just rename it - IPAddress is a string, although it's domain is a regex that expects something that looks like an IP address - that would have to be relaxed.  That would break some things, but it would just be a case of replacing the property name.  Presumably whatever the address itself is being used for would still work until the value is actually replaced with a host name.

Any other ideas or thoughts?

________________________________
From: Brad Cumbia <cumbia at jlab.org>
Sent: Thursday, May 18, 2023 2:07 PM
To: Gary Croke <gcroke at jlab.org>
Cc: Anthony Cuffe <cuffe at jlab.org>
Subject: Re: Soft ioc startup scripts

Gary
The following have been updated to use DHCP, default services configuration applied, and rebooted.  You may want to restart your soft ioc again.

bsydigips1
nadigips1
nl07digips1
nl27digips1
sl07digips1
sl27digips1
w2digimagtmp
wa1digips1

______________
Brad Cumbia

Network Engineer
Accelerator Computing Group (ACG)
Accelerator Computing Enviroment (ACE)

Thomas Jefferson National Accelerator Facility
12000 Jefferson Avenue
Newport News, Virginia 23606
Phone (757)269-5839

________________________________________
From: Gary Croke <gcroke at jlab.org>
Sent: Thursday, May 18, 2023 12:33 PM
To: Brad Cumbia
Cc: Anthony Cuffe
Subject: Re: Soft ioc startup scripts

iocsoftmag rebooted and connected to w2digimagtmp without issue.

________________________________
From: Gary Croke <gcroke at jlab.org>
Sent: Wednesday, May 17, 2023 12:21 PM
To: Anthony Cuffe <cuffe at jlab.org>
Cc: Brad Cumbia <cumbia at jlab.org>
Subject: Re: Soft ioc startup scripts

Actually, the third one (power meters) doesn't involve port servers, sorry, you can ignore that.
________________________________
From: Gary Croke
Sent: Wednesday, May 17, 2023 12:20 PM
To: Anthony Cuffe <cuffe at jlab.org>; Brad Cumbia <cumbia at jlab.org>
Cc: acs at jlab.org <acs at jlab.org>
Subject: Soft ioc startup scripts

Anthony,

Here are a few examples of soft iocs connecting to port servers:

/cs/op/iocs/iocsoftagileturbo/startup.ipconfig
/cs/op/iocs/iocsoftinj3/port_setup.cmd
/cs/op/iocs/iocsoftfac/powerMetersV/stcmd/startup.shark50b.ipconfig
/cs/op/iocs/iocsoftw3spce/startup.iocsoftw3spceApps.munch

One of the slight complications is that there isn't a standard location or naming convention for the files that make the connections.  I think mostly they are in local (not linked) files in the ioc boot directory.  startup.ipconfig is a common file name.  Sometimes they are in the linked application startup files.  Maybe we should try agree on a more standard approach going forward.

Gary

_______________________________________________
acg mailing list
acg at jlab.org
https://mailman.jlab.org/mailman/listinfo/acg
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.jlab.org/pipermail/acg/attachments/20230519/8ce7762d/attachment.html>


More information about the acg mailing list