syslog tail

Display the last entries of the syslog. If no number is included, the command displays the entire syslog.

User Privileges

Users with the following privileges can perform this command:

>Admin

>Operator

>Monitor

Syntax

syslog tail -logname <logname> [-entries <logentries>] [-search <string>]

Option Shortcut Description
-entries <logname> -e

Specifies the number of entries to display. If this parameter is not specified, the entire log is displayed.

Range: 0-4294967295

-logname <logentries> -l

Specifies the log name.

Valid values: lunalogs,messages,secure,ntp,snmp

NOTE: The hsm option is not available in this release. If you attempt to use this option, the following error is displayed: HSM log does not exist. To see HSM-specific logs, use the messages option.

-search <string> -s

Search for the specified string.

NOTE: To search the logs for HSM Alarm messages, for example, include this option with the string "ALM".

Example

lunash:>syslog tail -logname lunalogs -entries 8
 
2017 Mar  1 14:27:54 local_host  local5 info  hsm[32081]: STC policy is set to "OFF" on partition 66331 : Unknown ResultCode value
2017 Mar  1 14:27:55 local_host  local5 info  hsm[32120]: STC policy is set to "OFF" on partition 66331 : Unknown ResultCode value
2017 Mar  1 14:29:53 local_host  local5 info  hsm[3948]: STC policy is set to "OFF" on partition 66331 : Unknown ResultCode value
2017 Mar  1 14:29:59 local_host  local5 info  lunash [29529]: info : 0 : Command: syslog remotehost add  : admin : 10.124.0.87/61470
2017 Mar  1 14:30:37 local_host  local5 info  hsm[5511]: STC policy is set to "OFF" on partition 66331 : Unknown ResultCode value
2017 Mar  1 14:30:48 local_host  local5 info  lunash [29529]: info : 0 : Command: syslog remotehost list  : admin : 10.124.0.87/61470
2017 Mar  1 14:33:10 local_host  local5 info  lunash [29529]: info : 0 : Command: syslog severity set  : admin : 10.124.0.87/61470
2017 Mar  1 14:33:47 local_host  local5 info  lunash [29529]: info : 0 : Command: syslog severity set -logname lunalogs -loglevel crit : admin : 10.124.0.87/61470
 
Command Result : 0 (Success)
 
Error message when using -logname hsm
lunash:>syslog tail -logname hsm
 
HSM log does not exist
 
Command Result : 65535 (Luna Shell execution)