go to post Roger Merchberger · Mar 20 Give me a couple-three days - working on spinning up a couple Raspberry Pi's with IRIS in containers for testing; one with Ubuntu and one with Debian.
go to post Roger Merchberger · Mar 17 One option would just be a straight telnet session (swap 10.10.10.10 with the IP address of your system): telnet 10.10.10.10 1972 If the port is closed, you should get the error: "telnet: Unable to connect to remote host: Connection refused" - but if successful you should get the "Connected to 10.10.10.10" you'll know it's open. To exit, type <CTRL>] for a telnet prompt, then type 'quit'. Hope this helps!
go to post Roger Merchberger · Mar 16 Robert, I'm not sure if this helps your particular situation, but if it's "OK" to manually tell your container what the local hostname of the host is, then you could try this: set ip=$SYSTEM.INetInfo.HostNameToAddr("**local_name_NotFQDN**") with just the local hostname (not the FQDN) of the host machine in quotes... and that should give you the IP address of the active ethernet/wireless adapter. I tried this in a container running IRIS on a Raspberry Pi and the local hostname is "Iris2" (so, it is running Linux, I don't have any container systems running on Windows... sorry!) and this is what I got: USER> Set ip=$SYSTEM.InetInfo.HostNameToAddr("Iris2") USER> zw ip ip="192.168.1.236" On my network, 172.17.0.x is the internal Docker bridge, 192.168.1.x is my wireless network, and 10.1.2.x is my desktop wired network. (I have many servers, printers & whatnot, so I have multiple VLANs on my home network.) Now... I'm not sure if this is good or bad for your situation, but in my example, if I were to shutdown the container, disable the wireless, hook up an ethernet cable to the network and restart everything, the listed IP from this command would change from the 192.168.1.x to a 10.1.2.x IP address. This could be good if you wanted to know how the main machine was externally connected; or it could be bad if you're using awk/grep/findstr on logs looking for a particular IP. As I said, I'm unsure of your actual use case, so if this had to be portable across several containers and several machines unchanged, this may not help you as you'll manually have to change the machine name in your code. Hope this helps!
go to post Roger Merchberger · Jan 10 Sure, the $Increment command can also decrement, and the values don't have to be 'just 1.' Here's the documentation for the $Increment command: https://docs.intersystems.com/irislatest/csp/docbook/DocBook.UI.Page.cls?KEY=RCOS_FINCREMENT Simply, you can do this to decrement by 1: Set TEMP=$INCREMENT(^test,-1) If you wanted to increment by 10, the command would be this: Set TEMP=$INCREMENT(^test,10) To test, try this: S ^test=0 F S TEMP=$INCREMENT(^test,10) Q:$G(^test)>100 W ^test,! Hope this helps!
go to post Roger Merchberger · Jan 9 If you have multiple subscript levels, this may help: SET I=0,G="^test("""")" FOR {SET G=$QUERY(@G) Q:G="" SET I=I+1 WRITE G,!} WRITE "Total: ",I,! Here's the data: set ^test(1)="aa" set ^test(1,1,1)="aa" set ^test(2)="aa" set ^test(2,1)="aa" set ^test(2,2,1)="aa" set ^test(3,1)="aa" set ^test(4,1)="aa" And here's the output: ^test(1) ^test(1,1,1) ^test(2) ^test(2,1) ^test(2,2,1) ^test(3,1) ^test(4,1) Total: 7 If you only wanted the total (especially if the global is much larger) omit the 'WRITE G,!' portion out of the line of code above. Hope this helps!
go to post Roger Merchberger · Oct 20, 2022 Another possibility might be to see if there's been backups of the routines being saved. It won't give you the "who" but it could at least give you the "when" a routine was modified & compiled. You could use the 'Global Lister' and check the rBACKUP global. Here's an example (you may need to tinker with the the global lister input - taking a deeper dive into the ^rBACKUP global may help): ZZZ>D ^%G Device: Right margin: 80 => Screen size for paging (0=nopaging)? 24 => For help on global specifications DO HELP^%G Global ^rBACKUP("TEST","INT",,0) or maybe Global ^rBACKUP("TEST.1","INT",,0) To really get all the functionality you're looking for, you may need to set up a version control system like git or somesuch. Hope this helps!
go to post Roger Merchberger · Jun 6, 2022 Would this be acceptable? W $TRANSLATE($ZDATETIME($HOROLOG,8)," :") Hope this helps!
go to post Roger Merchberger · Apr 26, 2022 @Robert Cemper - I have verified that the query Detail does exist in 2017.2 (closest I can get) but you are spot on that it needs to be run from the %SYS namespace; I tried two other Ensemble-capable namespaces and it errored out both times.
go to post Roger Merchberger · Apr 25, 2022 I'm not sure I understand the class examples you have listed, but there's a possibility that you may not need to do this in a class. Ensemble / HealthShare has a couple different ways that you can send a process output to multiple operations. The first is if you're not using any form of data translation, you can send the output right from the BP configuration screen: Under the Response Target Config Names, I've selected two different targets here, and you can see that the connectivity verifies this - but I'm sending the output to more than two targets! How can that be? Simple, you can also select different targets in the Ensemble Rule Editor - this can be handy if you wanted to apply two different DTL transformations to two different targets. My example is super-simple (as in I'm not applying different rules or DTLs per target) but with multiple Send directives we can specify multiple targets: You can have different rules with different constraints going to different operations - but I just added a send directive to a sample ruleset to show how to configure multiple targets - and as you can see between the two screenshots how Ensemble is sending the data to 4 different targets in two different ways. Hope this helps!
go to post Roger Merchberger · Apr 4, 2022 upgrading to a version where you can safely compact/truncate If you're not able to upgrade to a newer version, there's still the option of using the ^GBLOCKCOPY utility in the %SYS namespace. Unfortunately, you'll need downtime to use the utility but if you have databases with a high amount of free space, this will make a new copy of a database using the minimal amount of disk space. Then just replace the new database file with the old**, remount the database and Bob's your uncle! Here's InterSystem's Documentation page for the utility: https://docs.intersystems.com/irislatest/csp/docbook/DocBook.UI.Page.cls?KEY=GSTU_remote_gblockcopy Hope this helps! ** P.S. If you did want to save the old database, 7zip is quite good at compressing CACHE.DAT (and IRIS.DAT) database files. Be sure to use the LZMA2 compression method as it works well with multiple threads/cores, and I usually use a 'light' compression level - Fast or Fastest if in windows, -mx=3 if in Linux/Unix.