Generating log messages with sendlog

Ops Center Protector User Guide

Version
7.7.x
Audience
anonymous
Part Number
MK-99PRT002-08
ft:lastEdition
2023-10-26

Use the sendlog command to create Protector log entries from a script.

Table. Command line options
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:
  • detail
  • information
  • warning
  • error
  • reporting
-c arg --category arg Category field in the Logs. Specify a string in quotes.
-t arg --tag arg Log tag in the format:

key:String | NodeID |uint32 | int32| int64 | uint64 | ISODate | Bool:value

-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"