SystemFileGetContentRequest
Bases: OCIRequest
Requests the contents of a file. This transaction is only allowed to get content for files under /var/broadworks/userfiles/AuditLogs/ or /var/broadworks/IpDeviceConfig/. The response is either a SystemFileGetContentResponse or an ErrorResponse.
Attributes:
file_name (str):
Source code in src/mercury_ocip_fast/commands/commands.py
Responses
Bases: OCIDataResponse
Response to a SystemFileGetContentRequest. The fileContent length returned is limited to 128KBytes.
Attributes:
file_content (int):
Source code in src/mercury_ocip_fast/commands/commands.py
Example Usage
from mercury_ocip_fast.client import Client
from mercury_ocip_fast.commands import SystemFileGetContentRequest
client = Client()
command = SystemFileGetContentRequest(
file_name=...,
)
response = client.command(command)
print(response)