Disabling Logging of a Message Level
To change the message level, disable logging of specific message levels. You must disable the message levels on
an individual basis. For example, to disable logging of debugging and informational messages, enter the following
commands:
HP9300(config)# no logging buffered debugging
HP9300(config)# no logging buffered informational
Syntax: [no] logging buffered <level> | <num-entries>
The <level> parameter can have one of the following values:
•
alerts
•
critical
•
debugging
•
emergencies
•
errors
•
informational
•
notifications
•
warnings
The commands in the example above change the log level to notification messages or higher. The software will
not log informational or debugging messages. The changed message level also applies to the SyslogD servers.
Changing the Number of Entries the Local Buffer Can Hold
You also can use the logging buffered command to change the number of entries the local Syslog buffer can
store. For example:
HP9300(config)# logging buffered 100
The default number of messages is 50. The value can be from 1 – 1000. The change takes effect immediately
and does not require you to reload the software.
NOTE: If you decrease the size of the buffer, the software clears the buffer before placing the change into effect.
If you increase the size of the buffer, the software does not clear existing entries.
Changing the Log Facility
The SyslogD daemon on the SyslogD server uses a facility to determine where to log the messages from the HP
device. The default facility for messages the HP device sends to the SyslogD server is "user". You can change
the facility using the following command.
NOTE: You can specify only one facility. If you configure the HP device to use two SyslogD servers, the device
uses the same facility on both servers.
HP9300(config)# logging facility local0
Syntax: logging facility <facility-name>
The <facility-name> can be one of the following:
•
kern – kernel messages
•
user – random user-level messages
•
mail – mail system
•
daemon – system daemons
Using Syslog
A - 9