hostname and IP are different and i'm doing both, since a new build I want to make sure the IP that was assigned to that hostname isn't already in use. We unfortunately use subnets that already have IPs in use outside of infoblox(Migrations), so i can't just rely on that.
Original Message:
Sent: Jun 14, 2024 01:31 AM
From: xian
Subject: Command Object No Longer Available in Release 8.17
Use instead:
System.isHostReachable(hostname)
See work with Powershell without PShost | VMware Aria Automation Orchestrator (broadcom.com)
Original Message:
Sent: Jun 13, 2024 07:41 AM
From: aardis
Subject: Command Object No Longer Available in Release 8.17
I went through this same thing, doing a ping check to see if it's in use before building. Ping returns an exit code of 1 if the IP does not ping(it's a failure even though the command itself runs). You will have to account for that special case in your code. I'm not using his code, but in my own I just do something like this to just return the 1 without throwing a failure:
if (result.exitCode == 1 && command == "/usr/bin/ping -c 4 ") {
System.log('Ping test shows IP not in use');
return result;
}
And then in my workflow I call the action I do this:
if(result.exitCode == 1) {
System.log("Address '" + address + "' not used");
} else {
throw "Address '" + address + "' is in use";
}
hth
Original Message:
Sent: Jun 12, 2024 09:28 AM
From: SteskaljGE
Subject: Command Object No Longer Available in Release 8.17
When executing a command like "ping -c 4 10.93.185.10" the process keeps exiting with a code of 1 even though the command executed successfully:
2024-06-12 09:25:20.185 -04:00ERROR(com.ge.vro.util/executeLocalAndLog_New) Exit value: 1
2024-06-12 09:25:20.186 -04:00INFO(com.ge.vro.util/executeLocalAndLog_New) PING 10.93.185.10 (10.93.185.10) 56(84) bytes of data. --- 10.93.185.10 ping statistics --- 4 packets transmitted, 0 received, 100% packet loss, time 3074ms
Any idea why your action would cause this?
Original Message:
Sent: May 31, 2024 11:36 PM
From: Stefan Schnell
Subject: Command Object No Longer Available in Release 8.17
Yesterday I tested some actions and realized that the current VMware Aria Automation Release 8.17.0 no longer contains the Command class.
The following exception occurs when a method of the Command class is called:
This method is disabled for security reasons. 'Command' is deprecated and will be removed in future release
Unfortunately there is no reference to this in the current release note.
What a pity, the Command class has served me well. There are no problems with this now, because I already have a replacement. But it would be nice to be prepared for this step and to understand the specific reasons.
------------------------------
More interesting information at blog.stschnell.de
------------------------------