actions

status {normal | minor | major | critical}

no status {normal | minor | major | critical}

 

syslog <MESSAGE> [facility {kern | user | mail | daemon | auth | syslog | lpr | uucp | authpriv | cron | ftp}] [severity {debug | info | notice | warning | err | crit | alert | emer}]

no syslog <MESSAGE> [facility {kern | user | mail | daemon | auth | syslog | lpr | uucp | authpriv | cron | ftp}] [severity {debug | info | notice | warning | err | crit | alert | emer}]

 

cli <COMMAND>

no cli <COMMAND>

Description

Configures different NAE-Lite agent actions to be performed when the set condition or the clear condition is met. The following NAE actions can be configured for the set and clear condition:

status—Set the alert level for the NAE-Lite Agent.

syslog—Create a syslog message and send it to the configured remote syslog servers.

cli—Execute a CLI command. Multiple CLI commands can be specified by using \n as the delimiter.

The no form of this command removes the actions associated with the NAE-Lite agent condition.

Parameter

Description

normal

Sets the NAE-Lite agent status to normal (default).

minor

Sets the NAE-Lite agent status to minor.

major

Sets the NAE-Lite agent status to major.

critical

Sets the NAE-Lite agent status to critical.

<MESSAGE

Specifies the syslog message to be sent when the set condition or the clear condition is met. Length: 3 to 255 characters.

facility {kern | user | mail |
daemon | auth | syslog |
lpr | uucp | authpriv | cron | ftp}

Specifies the syslog facility code to denote the type of program that is logging the message. The default facility code is daemon. Optional. The valid facility code values are:

 

  • kern: Sets the syslog message source as kernel.
  • user: Sets the syslog message source as user space programs.
  • mail: Sets the syslog message source as mail system.
  • daemon: Sets the syslog message source as system daemon (default).
  • auth: Sets the syslog message source as authentication subsystem.
  • syslog: Sets the syslog message source as syslog daemon.
  • lpr: Sets the syslog message source as line printer subsystem.
  • uucp: Sets the syslog message source as unix-to-unix copy subsystem.
  • authpriv: Sets the syslog message source as security subsystem.
  • cron: Sets the syslog message source as cron scheduler subsystem.
  • ftp: Sets the syslog message source as FTP daemon.

 

[severity {debug | info | notice |
warning | err | crit | alert | emer}]

Specifies the severity level for the syslog message. The severity level values are:

  • debug: Sets the syslog severity level as debug.
  • info: Sets the syslog severity as information (default).
  • notice: Sets the syslog severity as notice.
  • warning: Sets the syslog severity as warning.
  • err: Sets the syslog severity as error.
  • crit: Sets the syslog severity as critical.
  • alert: Sets the syslog severity as alert.
  • emer: Sets the syslog severity as emergency.

 

<COMMAND>

Specifies the CLI command to be executed when the set condition or the clear condition is met.

Example

Setting the status level for the NAE-Lite agent condition:

switch(config-nae-agent-condition)# status major

Creating the syslog message for the NAE-Lite agent condition:

switch(config-nae-agent-condition)# syslog "IPSLA server1 is down" severity err

Executing the CLI command for the NAE-Lite agent condition:

switch(config-nae-agent-condition)# cli show version\nshow image

Removing the different actions associated with the NAE-Lite agent condition:

switch(config-nae-agent-condition)# no status minor
switch(config-nae-agent-condition)# no syslog Processing system event
switch(config-nae-agent-condition)# no cli show logging

Command History

Release

Modification

10.09

Command introduced

Command Information

Platforms

Command context

Authority

6200

6300

6400

8320

8325

8360

8400

9300

10000

config-nae-agent-condition

Administrators or local user group members with execution rights for this command.