Setting RAID alerts with amCLI

All modern raid controllers comes with nice graphics interfaces, but this tools needs time to setup and resources to run (most of them are java based). But all LSI controllers (almost in every modern IBM x series or Fujitsu TX, RX series) got nice console tool to manage them (amCLI). It's even easier to set up mail alerts with this tool than with GUI, but manual for amCLI is rather lame.

First of all you need to list your controller with

amCLI -l

and find "E-mail log" there. Note number before that (in my controller its 21/5), you gonna use it in next steps.

Then when having number of E-mail log instance of controller you can list all attributes with

amCLI -l 21/5
.
Output is something like that:

21/5: E-mail log
Parents: 1
Children: -
Properties:
Logging: Disabled, settable
Log level: Warning, settable
SMTP server: 127.0.0.1, settable
SMTP port: 25 [1..10000,1], settable
Recipient E-mail address: blabla@blabla.com, settable
Sender E-mail address: blabla@this.server, settable
Sender description: blablabla, settable
Username: , settable
Password: **********, settable

Now you can set all attributes you want, with amCLI of course.
First enable mail logging with:

amCLI -s 21/5 logging enabled

Set SMTP server (mine is localhost):

amCLI -s 21/5 smtp_server 127.0.0.1

Set SMTP tcp port:

amCLI -s 21/5 smtp_port 25

Set sender mail (nice to filter mails on):

amCLI -s 21/5 sender_e-mail_address raid@server.name

Then set recipient address:

amCLI -s 21/5 recipient_e-mail_address your@email.address

And set sender description:

amCLI -s 21/5 sender_description server_name

You can check all changes with amCLI -l 21/5.
21/5: E-mail log
Parents: 1
Children: -
Properties:
Logging: Enabled, settable
Log level: Warning, settable
SMTP server: 127.0.0.1, settable
SMTP port: 25 [1..10000,1], settable
Recipient E-mail address: your@email.address, settable
Sender E-mail address: raid@server.name, settable
Sender description: server_name, settable
Username: , settable
Password: **********, settable

Of course you can set log level or add SMTP authorization if you want.
You can check if it works by changing one controller parameter which gives warning (for example smart pool time) with:

amCLI -s 32/1 smart_poll_interval 100

And you should get an email about that change (of course if you controller is 32/1 ;)).
Then change smart pool to default with:

amCLI -s 32/1 smart_poll_interval 300

Enjoy!

Add new comment

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
CAPTCHA
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.

Main menu

Article | by Dr. Radut