Skip to content

Commit 7fb5c6a

Browse files
Merge pull request #225973 from Phil-Jensen/main
Add "failure" output example for logging
2 parents 39b2bc6 + b5ab4d0 commit 7fb5c6a

File tree

1 file changed

+26
-8
lines changed

1 file changed

+26
-8
lines changed

articles/azure-netapp-files/azacsnap-troubleshoot.md

Lines changed: 26 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -37,17 +37,35 @@ This naming convention allows for multiple configuration files, one per database
3737

3838
### Result files and syslog
3939

40-
For the `-c backup` command, AzAcSnap writes to a *\*.result* file. The purpose of the *\*.result* file is to provide high-level confirmation of success/failure. If the *\*.result* file is empty, then assume failure. Any output written to the *\*.result* file is also output to the system log (for example, `/var/log/messages`) by using the `logger` command. The *\*.result* filename has the same base name as the log file to allow for matching the result file with the configuration file and the backup log file. The *\*.result* file goes into the same location as the other log files and is a simple one line output file, such as the following example:
40+
For the `-c backup` command, AzAcSnap writes to a *\*.result* file. The purpose of the *\*.result* file is to provide high-level confirmation of success/failure. If the *\*.result* file is empty, then assume failure. Any output written to the *\*.result* file is also output to the system log (for example, `/var/log/messages`) by using the `logger` command. The *\*.result* filename has the same base name as the log file to allow for matching the result file with the configuration file and the backup log file. The *\*.result* file goes into the same location as the other log files and is a simple one line output file.
4141

42-
```output
43-
Database # 1 (PR1) : completed ok
44-
```
42+
1. Example for successful completion:
43+
44+
1. Output to *\*.result* file:
45+
46+
```output
47+
Database # 1 (PR1) : completed ok
48+
```
4549
46-
Here's example output from `/var/log/messages`:
50+
1. Output to `/var/log/messages`:
4751
48-
```output
49-
Dec 17 09:01:13 azacsnap-rhel azacsnap: Database # 1 (PR1) : completed ok
50-
```
52+
```output
53+
Dec 17 09:01:13 azacsnap-rhel azacsnap: Database # 1 (PR1) : completed ok
54+
```
55+
56+
1. Example output where a failure has occured and AzAcSnap captured the failure:
57+
58+
1. Output to *\*.result* file:
59+
60+
```output
61+
Database # 1 (PR1) : failed
62+
```
63+
64+
1. Output to `/var/log/messages`:
65+
66+
```output
67+
Dec 19 09:00:30 azacsnap-rhel azacsnap: Database # 1 (PR1) : failed
68+
```
5169
5270
## Troubleshoot failed 'test storage' command
5371

0 commit comments

Comments
 (0)