跳到主要内容

Server actions

The Server actions tab is the journal of the actions that the window ran on the server. Every command you run from the command window and every note you write when you close a counter lands here as a row, with the code of the exit, the duration, the person who confirmed it and the output; the journal keeps the last 64 KB of the output.

The table​

The tab lists the 300 newest rows, newest first. While the journal is empty it says

Every command on the server lands here.
ColumnWhat it holds
TimeThe moment the command started, for example "today, 04:10 (UTC+03:00)"
CommandThe title of the command and under it the first line of the command text in small type. The search field looks in the code of the command and in the whole text
WhoWho started the command: Schedule, AI, Administrator or Qubix service. A command from the window carries Administrator
Asroot for a command with full rights, Restricted user for a command as a user of limited rights. A command from the window runs as root
Confirmed byThe name of the person who confirmed the command; Employee #… when the name is unknown (the dots stand for the number); a dash for a watching command
Exit codeThe code of the exit (in the unfolded output of a step it reads exit code …). 0 stands for success; the code of the first failing step stands for a failure; -1 stands for a step that ended with a missing code, or for an error of the call itself
DurationThe duration in milliseconds

A click on a row unfolds the output: for each step the line $ command and the text that the command printed. The journal keeps the last 64 KB of the output of a row, so a very long output loses its beginning.

The 导出 CSV button saves the journal as a file named autodevops-actions with the date of the day.

What lands in the journal​

  • A watching or changing command run from the window: the row carries Administrator, the title of the command and the lines that ran. The person who clicked the red button of a changing command stands in Confirmed by. A command that runs as a job gets its row when the job ends.
  • The closing of a counter: the command column shows incident_close and the failure rule, the exit code is 0, and the output holds your note (Closing a counter).
  • A command started from an incident carries the number of the incident, so the row belongs to it.

The journal of the program on the server​

The command program keeps its own journal of calls on the server, in a file that only the administrator of the host reads. The file takes every run of a command (the check passes among them), every cancellation of a job and every refusal of these calls, and it grows to 50 MB, then moves to a second file and starts again. Scheduled collection of samples and reads of statuses stay out of it. The file keeps the trace of an action even when the database of Qubix is down.

What's next​