Enable DEBUG mode in DPX vPlus
Available log levels
| LEVEL | DESCRIPTION |
|---|---|
| INFO | Provides general operational messages to confirm that the software is functioning as expected |
| DEBUG | Offers detailed diagnostic information to help developers troubleshoot issues |
| TRACE | Provides the most granular level of detail, often used to trace the execution of specific code paths |
Changing log level in the DPX vPlus components
Server
-
Connect to the server host using SSH
-
Open the following file for editing
/opt/vprotect/server/quarkus.properties
Example:vi /opt/vprotect/server/quarkus.properties -
Locate the line in the file that controls the logging mode
quarkus.log.level=INFO
The default value for the logging level is INFO -
Set the value to INFO, DEBUG or TRACE
-
Save the file
-
Restart the service:
systemctl restart vprotect-server
Node
-
Connect to the node host using SSH
-
Open the following file for editing
/opt/vprotect/node/log4j2-node.xml
Example:vi /opt/vprotect/node/log4j2-node.xml -
Locate the line in the file that controls the logging mode
<Property name="logLevel">INFO</Property>
The default value for the logging level is INFO -
Set the value to INFO, DEBUG or TRACE
-
Save the file
-
Restart the service:
systemctl restart vprotect-node
Tape manager
-
Connect to the tape manager host using SSH
-
Open the following file for editing
/opt/vprotect/tapemanager/config/application.properties
Example:vi /opt/vprotect/tapemanager/config/application.properties -
Locate the line in the file that controls the logging mode
quarkus.log.level=INFO
The default value for the logging level is INFO -
Set the value to INFO, DEBUG or TRACE
-
Save the file
-
Restart the service:
systemctl restart vprotect-server
Cloud agent
-
Connect to the node host using SSH
-
Open the following file for editing
/opt/vprotect/cloudagent/AgentConfig.json
Example:vi /opt/vprotect/cloudagent/AgentConfig.json -
In the JSON file, find the
logssection nested under theagentkey -
Add the following key to the
logssection
"level": "INFO"
The default value for the logging level is INFO.
Set the value to INFO, DEBUG or TRACE.
After the modification, the section should look like this:agent": {
"logs": {
"path": "../logs/cloudagent",
"level": "DEBUG"
}
} -
Save the file
-
Restart the node service:
systemctl restart vprotect-node
OS agent
-
Connect to the client host
-
Open the following file for editing
Windows system:
C:\ProgramData\sbr-osagent\osagent.properties
Linux system:
/opt/vprotect/osagent
MacOS system:
/Library/Application Support/osagent -
Locate the line in the file that controls the logging mode
osagent.logs.level=INFO
The default value for the logging level is INFO -
Set the value to INFO, DEBUG or TRACE
-
Save the file
-
Restart the service:\
Windows
sc stop sbr-osagent && sc start sbr-osagentLinux
systemctl restart sbr-osagent
MacOSsudo launchctl stop eu.storware.sbr.osagent
sudo launchctl start eu.storware.sbr.osagent
Cloud server
-
Connect to the node host using SSH
-
Open the following file for editing
/opt/vprotect/``cloudserver/config/application.properties
Example:vi /opt/vprotect/cloudserver/config/application.properties -
Locate the line in the file that controls the logging mode
quarkus.log.level=INFO
The default value for the logging level is INFO -
Set the value to INFO, DEBUG or TRACE
-
Save the file
-
Restart the node service:
systemctl restart vprotect-node
OS server
-
Connect to the tape manager host using SSH
-
Open the following file for editing
/opt/vprotect/tapemanager/config/application.properties
Example:vi /opt/vprotect/osserver/config/application.properties -
Locate the line in the file that controls the logging mode
quarkus.log.level=INFO
The default value for the logging level is INFO -
Set the value to INFO, DEBUG or TRACE
-
Save the file
-
Restart the node service:
systemctl restart vprotect-node