Administering HP-UX IPQoS

Setting and Showing Log Level

Setting and Showing Log Level

To set and show the current log level of HP-UX IPQoS kernel messages, use the -log[level]option of ipqosadmin.

By default, HP-UX kernel messages are sent to /var/adm/syslog/syslog.log.

By default and at reboot, the log level is set to error. Changes to the log level are not maintained across reboots.

If successful, the exit status returned to the shell (“$?”) from running ipqosadmin -loglevelis 0, otherwise it returns 1.

Syntax

ipqosadmin -log[level] [<level>]

Option

[<level>]

Sets log level to <level>, and displays <level> as confirmation.

The <level> specified can be one of:

1.none

2.error

3.warn

4.info

5.debug

The value of <level> determines to what level HP-UX IPQoS kernel messages are logged. The levels above are shown in ascending order. Higher levels include all messages from lower levels. For example, debug includes the messages of all the other levels. Specifying none is not recommended.

Default: Not specified.

If <level> is not specified (the default case), the current loglevel is displayed, there are no changes to loglevel.

Example

The following example sets the log level to warn.

96

Chapter 5