SP Set Logfile Subcommand

access: Administrators, Managers

Configures the event log file that is the destination of all Event Manager events and notices.

sp set logfile [ {-f | --file} FILENAME] [ {-s | --size} SIZE]

You must specify the name of the file to which the Event Manager sends logs. When setting the log file using this command, specify only the name of the logfile without the path. Filenames cannot contain the forward slash character (/), backward relative path reference (..) or the less than symbol (<).

Argument Description
{-f | --file} Specifies the name of the file within the directory to which the Event Manager sends logs.
{-s | --size} Specifies the size of the file in megabytes. A minimum size of .01 MB is required for this logfile.

Return Codes

Following are the return values for this command:

Code Numeric Code Description
NWSE_Success 0 Command successfully completed.
NWSE_InvalidUsage 1 Invalid usage: bad parameter usage, conflicting options specified.
NWSE_RPCTimeout 2 Request was issued, but was not serviced by the server. RPC procedure timed out and the request may or may not have been serviced by the server.
NWSE_RPCNotConnected 3 Unable to connect to the RPC server.
NWSE_NoPermission 6 Not authorized to perform this operation.
NWSE_NoMemory 8 Insufficient memory.

Related Topics

System Management Commands

SP Command