log invocation of restartxcatd for auditing

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@5299 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
lissav 2010-02-25 19:28:36 +00:00
parent f3ec425b0d
commit 5954244572

View File

@ -37,6 +37,9 @@ my @output;
my $inoperative = 0;
my $check_num;
my $cmd = basename($0);
# for auditing
my $current_userid = getpwuid($>);
xCAT::MsgUtils->message("S", " restartxcatd invoked by $current_userid.\n");
if (!(xCAT::Utils->isAIX()))
{ # only runs on AIX
xCAT::MsgUtils->message("E", "Error: This command should only be run on AIX.\n");