UNSOLVED

KaushikP

updated

13 years ago

K

KaushikP

1 Rookie

•

66 Posts

0

3498

October 1st, 2013 00:00

track login events in VNX file

I was looking for login events in VNX file. The need is to identify who is login thru Unisphere GUI and CLI from what machine with time-stamp and login success or failure.

Checked the celerra audit log (/celerra/audit/audit.log). There are number of event types like type=user_auth / user_acct / user_login / login....

What is the best method or commands to get that info?

  • umichklewis

    4 Apprentice

    •

    1190 Posts

    2147

    0

    Posted October 1st, 2013 09:00

    Have a look at the VNX documentation "Configuring and Using the Audit Tool on Celerra and VNX for File".  This describes how to configure the VNX to send events to a remote SYSLOG server.  You could use this to send the event data to another SYSLOG server to keep the audit trail intact.


    If you don't have an external SYSLOG server and all you care about is grabbing those events, you could create a crontab on the control station to periodically grab the data you're interested in and write it to a file.  This file could be emailed from the control station as well.

    Let us know if that helps!

  • KaushikP

    1 Rookie

    •

    66 Posts

    2147

    0

    Posted October 3rd, 2013 04:00

    Thanks Karl for the information. I've gone through the document. Regarding the second part of your comment, how can i create a crontab and grab the login data and write it to a file?

  • KaushikP

    1 Rookie

    •

    66 Posts

    2147

    0

    Posted November 6th, 2013 01:00

    Got this primus "emc62513" which puts some words of cautions before enabling auditing for control station. These are like this:

    Cautions/Caveats:  We should never enable SNARE unless the customer specifically requests this feature, understands how to use it, and is aware of the caveats listed below.

    1. CPU Intesive product - on a vanilla CS can utilize 15 - 20% of CPU cycles.
    2. Audit logs must be monitored for size as they are not automatically truncated.
    3. Be selective when turning on auditing feature because of its intense use of CPU and logging capabilities.
    4. Limit the use of other applications on the Control Station like usermapper, Celerra Monitor etc.
    5. Product will not be enabled by default as it is CPU intensive and logs are not automatically managed.
    6. Logs should be redirected to a system on the network or monitored closely if stored on the CS for size is not managed by SNARE. 

    Any advice on this? If anyone implemented auditing it will be helpful to understand the consequences. The fourth point "limit the use of other applications like usermapper, Celerra Monitor etc" is not very clear. Suggestion / advise is very much welcome!

  • Rainer_EMC

    6 Operator

    •

    8645 Posts

    2147

    0

    Posted November 6th, 2013 04:00

    Simply said - watch you controlstation CPU and dont overload it

  • KaushikP

    1 Rookie

    •

    66 Posts

    2147

    0

    Posted November 28th, 2013 22:00

    "Configuring and Using the Audit Tool on Celerra and VNX for File" in this document it is stated to run the following command to restart SYSlog service:


    "/etc/service syslog restart" the output is an error: -bash: /etc/service: No such file or directory

    why this command is not working? what are the alternatives?


    i've issued the command: /etc/init.d/syslog restart

    is this OK?


  • christopher_ime

    6 Operator

    •

    1962 Posts

    2150

    0

    Posted December 2nd, 2013 16:00

    Nice catch.  It is a typo.  Should be:

    /sbin/service syslog restart

    Yes, you accomplished the same thing executing the script directly from /etc/init.d:

    # man service

    [...]

    service(8)                                                          service(8)

    NAME

           service - run a System V init script

    SYNOPSIS

           service SCRIPT COMMAND [OPTIONS]

           service --status-all

           service --help | -h | --version

    DESCRIPTION

           service runs a System V init script in as predictable environment as possible,

           removing most environment variables and with current working directory set  to

           /.

           The   SCRIPT   parameter   specifies  a  System  V  init  script,  located  in

           /etc/init.d/SCRIPT.  The supported values of COMMAND  depend  on  the  invoked

           script,  service  passes COMMAND and OPTIONS it to the init script unmodified.

           All scripts should support at least the start and stop commands.  As a special

           case,  if  COMMAND  is --full-restart, the script is run twice, first with the

           stop command, then with the start command.

           service --status-all runs all init scripts, in alphabetical  order,  with  the

           status command.

    FILES

           /etc/init.d

                  The directory containing System V init scripts.

    [...]

  • christopher_ime

    6 Operator

    •

    1962 Posts

    2150

    0

    Posted December 2nd, 2013 16:00

    I have confirmed that the typo is also in the latest document corresponding to the VNX OE for File v8.1 release.  I'll open a ticket on your behalf.  It has gone unnoticed for a while and just was carried over with each revision of the guide.

    Thanks.

  • KaushikP

    1 Rookie

    •

    66 Posts

    2150

    0

    Posted December 2nd, 2013 22:00

    Thanks Christopher!