Generating log messages with sendlog
Use the sendlog command to create Protector log entries from a script.
Abbreviated Argument | Full Argument | Description |
-h | --help | Displays command line parameter usage instructions. |
-m arg | --message arg | Log Message field in the Logs. Specify a string in quotes. |
-n arg | --node arg | Actioned By field in the Logs. Specify a string in quotes. |
-l arg | --level arg | Level field in the Logs. Specify one of the following strings:
|
-c arg | --category arg | Category field in the Logs. Specify a string in quotes. |
-t arg | --tag arg | Log tag in the format:
|
-a arg | --attachment arg | Attachments field in the Logs. Specify a filename to attach. |
-u arg | --user arg | User name field in the View Audit bubble. For use by Hitachi Vantara Support only. |
-z arg | --process arg | Audit process. For use by Hitachi Vantara Support only. |
-d arg | --space arg | User name (authentication space) field in the View Audit bubble. For use by Hitachi Vantara Support only. |
-i arg | --ipaddress arg | Address field in the View Audit bubble. Specify an IP address. For use by Hitachi Vantara Support only. |
-p arg | --port arg | Address field (port) in the View Audit bubble. Specify an IP port. For use by Hitachi Vantara Support only. |
-o arg | --action arg | Action field in the View Audit bubble. Specify a string. For use by Hitachi Vantara Support only. |
-s arg | --success arg | Action Result field in the View Audit bubble. For use by Hitachi Vantara Support only. |
Usage Example:
Running the following command will create a log message in the category Test, at the level Information with the message "Test log message":
sendlog -c "Test" -l information -m "Test log message"