Skip to main content

Query status about Acronis environment

Thread needs solution

Hi,

We would like to check remotely with a Network Management System the Status about the Acronis Environment. Like a Health Check if the Environment is able to do backups or not.

 

Is there a way to query for example with RestAPI requests the Status if a Storagenode is online and working or a tape-Server is online?

If i select the devices and click on a stroage node i can see the Status in the Detail tab. On the top it show's me the Status: "online". If the Storage node is not working or not available i assume it has a different Status there.

The same for other devices. We know that we can handle the Status about the backup plans. We can query the execution of it with a RestAPI Request.

 

If there a other possibility to check the health state about the Environment please give us Information about it.

 

Thanks for your help in advance.

br

Michael 

 

 

0 Users found this helpful

Hi,

Just an additional Information.

In the past we get from Acronis a phyton script to query the Status about the backup plans.

This will be done in the script with a RestAPI get request on the AMS on port  30677.

 

Is there a way to do this also for the Status about a storage node?

In the storage node Settings you can view the Status of it . it Shows that the storage node is online or offline.

 

br

Michael

 

There is a python scripts directory under C:\Program Files\Acronis\PyShell\site-tools which has several scripts.

They appear to be capable of doing just about anything if you can figure out how to use them as they are only lightly commented.

It appears that Acronis refers customers to use the file C:\Program Files\Acronis\PyShell\bin\acropsh.exe to run said scripts in certain technical documents when problems arise. So clearly they should be tested only in a test environment until the effects are known.

I'd tend to use the acrocmd.exe where possible but it doesn't have a machine delete function (only add) which is something I'd like to do.

You may be able to figure out a way to get acrocmd to do what you're looking for by using an unrelated command like validate archive or attach storagenode etc.

I'm with you though- this product is important enough to my co and has enough bugs that I'd really like more access to the internal workings like via a web service URL or API that is documented.

Pete

In reply to by truwrikodrorow…

Hi,

 

Thanks for your answer,...

 

But it seems that nothing is related what i Need. I am searching for a way to query the Status and health about the Acronis Environment for example to Monitor if the backupenvironment is able to execute backups or not. Is it enough to query the process Status or is there a way to query the Status about a storagenode?

 

br

Michael

I'm not certain which road is best and am unclear if you're just focusing only on storage node health or if you want to see things like status on various clients to make sure they are online.

The path I mentioned above with the acropsh.exe can be used as below to query the status of machines by name using the command: acropsh.exe -m amsctl -in [machinename] for example.

C:\Windows\system32>acropsh.exe -m amsctl -in servername
Connecting to AMS locally...done
[---List of instances that match name 'servername'---]
+----------------+--------------------------------------+--+
| Name           | Value                                |  |
+----------------+--------------------------------------+--+
| Name           | 'servername.internal'       |  |
| ID             | C4BE3DEF-39BA-4A32-A88D-FE9EFCCE7CD6 |  |
| HostID         | 70ADF9D3-45EC-44F7-B125-096E66B911DE |  |
| State          | IDLE(0)                              |  |
| Status         | 4                                    |  |
| State(Backup)  | IDLE(0)                              |  |
| Status(Backup) | 0                                    |  |
| LastBackup     | 1969-12-31 19:00:00                  |  |
| LastBackupTry  | 1969-12-31 19:00:00                  |  |
| NextBackupTime | 1969-12-31 19:00:00                  |  |
| Availability   | ONLINE                               |  |
| InsideVirtual  | False                                |  |
| Tenant         | 00000000-0000-0000-0000-000000000000 |  |
+----------------+--------------------------------------+--+

It also appears that the storage node listens on port 9852. So you can query that port with something like powershell v5's test-netconnection command as below and get a true/false return value:

(Test-NetConnection [storagenodename] -port 9852).tcptestsucceeded

TRUE

Or write it in python or whatever.

Hi Pete,

 

Thanks for you answer and the hint with the acropsh tool.

Do you know is it possible to execute the acropsh command also on a Client machine which can remotely connect to the AMS?

 

The Tapestoragenode is also listen on port 9852, right? Then it should be possible to query the port remotely from any other System in the Network.

 

br

Michael

 

I was able to remotely connect to my AMS from a client with the acronis pytools using the --connection parameter as below (read the amsctl.py script file in c:\Program Files\Acronis\PyShell\site-tools dir. Under the main function at bottom there are comments with usage examples):

acropsh -m amsctl -in [servername] --connection [AMSname] username password

I tested this from a storage node as the client. I'm no python expert but I presume that one could just copy the pyshell (and maybe pytools) directory to another computer and execute with the command above as a test to confirm functionality.

FYI, I used the TCPVIEW tools from Microsoft to look at which processes had which ports open where I determined the storageserver.exe process (storage node service) had port 9852 open. Apps cannot share ports/sockets so I would suggest running TCPview or netstat/equivalent to get the list of which ports were listening for whichever services you are trying to connect to.

Best regards

Pete

Hi,

Thanks a lot for your hints. Our Network Management System which will be also backuped has the Acronis Agent installed. Then it is possible to query the Status with the acropsh command remote from this Server.

I test the remote execution:

 

acropsh -m amsctl -in tape-server --connection xxxx xxx xxxx
Connecting to AMS 'xxxx@xxxx ...done
[---List of instances that match name 'tape-server'---]
+----------------+--------------------------------------+--+
| Name           | Value                                |  |
+----------------+--------------------------------------+--+
| Name           | 'tape-server'                        |  |
| ID             | 8D086609-4084-4433-944D-C2F6BD1C2F55 |  |
| HostID         | 0D0DCB31-91E1-4C63-BE0D-61676F4DD44D |  |
| State          | IDLE(0)                              |  |
| Status         | 0                                    |  |
| State(Backup)  | IDLE(0)                              |  |
| Status(Backup) | 0                                    |  |
| LastBackup     | 1970-01-01 01:00:00                  |  |
| LastBackupTry  | 1970-01-01 01:00:00                  |  |
| NextBackupTime | 1970-01-01 01:00:00                  |  |
| Availability   | ONLINE                               |  |
| InsideVirtual  | False                                |  |
| Tenant         | 00000000-0000-0000-0000-000000000000 |  |
+----------------+--------------------------------------+--+

 

I get the above Output, and if the Availability says online i assume this is a way to query availability of the System.

 

br

Michael

That should do it I think.

I'd still like a REST API connection like you said earlier, but this does the trick for now.