Consider the possibility that if you script the retrieval, that you could fire that script via an AO profile. That would allow you to have that file locally already when the human investigating the issue went to look at it.
This is good too for watching for changes to configuration files and whatnot if you are responsible for equipment/services that other people also have administrative rights to. Very handy when something breaks and you ask the question "Did you change anything?" and get the "No" answer. If you had dirscan in place watching that file for updates and the AO profile set to retrieve the file on the dirscan event, you could save the whole change history and point to exactly where and when that "Unchanged" file changed.
Here's a script that I run as an AO profile that grabs a log based on the contents of an alarm and emails that content to an address
local args = SCRIPT_ARGUMENT
local a = alarm.get()
function GetFileName(probe)
local files = {
logmon = { dir="probes/system/logmon", file="logmon.log" }
}
return files[probe].dir, files[probe].file
end
local mypds = pds.create()
local l
local output1
local return_status1
local directory, filename
local address = "/" .. a.domain .. "/" .. a.hub .. "/" .. a.robot
directory, filename = GetFileName(a.prid)
pds.putString ( mypds, "directory", directory)
pds.putString ( mypds, "file", filename )
pds.putInt ( mypds, "buffer_size", 10240000 )
l = 5
repeat
l = l - 1
output1,return_status1 = nimbus.request ( address .. "/controller", "text_file_get", mypds )
if ( ( return_status1 ~= NIME_OK ) or ( output1["file_content"] == nil ) ) then
print (" Retrying list from controller.")
end
until ( return_status1 == NIME_OK or l == 0 )
pds.delete(mypds)
if ( return_status1 == NIME_OK and ( output1["file_content"] ~= nil )) then
action.email ("your.email@domain.com" , "GetLogFile testing", output1["file_content"])
end
Hope this helps
-Garin