Skip to main content

We've Moved!

Product Documentation has moved to docs.hitachivantara.com
Hitachi Vantara Knowledge

Generating log messages with sendlog

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

Command line options
Abbreviated Argument Full Argument Description
-h --help Displays command line parameter usage instructions.
-m arg--message argLog Message field in the Logs. Specify a string in quotes.
-n arg--node argActioned By field in the Logs. Specify a string in quotes.
-l arg--level argLevel field in the Logs. Specify one of the following strings:
  • detail
  • information
  • warning
  • error
  • reporting
-c arg--category argCategory field in the Logs. Specify a string in quotes.
-t arg--tag argLog tag in the format:

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

-a arg--attachment argAttachments field in the Logs. Specify a filename to attach.
-u arg--user argUser name field in the View Audit bubble. For use by Hitachi Vantara Support only.
-z arg--process argAudit process. For use by Hitachi Vantara Support only.
-d arg--space argUser name (authentication space) field in the View Audit bubble. For use by Hitachi Vantara Support only.
-i arg--ipaddress argAddress field in the View Audit bubble. Specify an IP address. For use by Hitachi Vantara Support only.
-p arg--port argAddress field (port) in the View Audit bubble. Specify an IP port. For use by Hitachi Vantara Support only.
-o arg--action argAction field in the View Audit bubble. Specify a string. For use by Hitachi Vantara Support only.
-s arg--success argAction 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"

 

  • Was this article helpful?