Search Results

Search: Posts Made By: ahmed.vaghar
Forum: Red Hat 11-17-2015
1,377
Posted By ahmed.vaghar
Red Hat Enterprise Linux Server release 6.5...
Red Hat Enterprise Linux Server release 6.5 (Santiago)
Forum: Red Hat 11-17-2015
1,377
Posted By ahmed.vaghar
Configuring MSAD in RHEL
We are trying to configure MSAD in our LINUX VM(RHEL).So that users can login with there accounts directly to the LINUX VM(RHEL) instead of using service accounts.Can someone help me out here ?
...
2,058
Posted By ahmed.vaghar
Thank you cjcox for prompt response.It is to send...
Thank you cjcox for prompt response.It is to send an alert to our team once the report is successfully completed.
2,058
Posted By ahmed.vaghar
Distribution List in shell script
Hello Experts,

Am trying to include my DL in the shell script,I can see in the logs that mail was sent w/o any return error.But we did not receive any email from the respective VM.When we are...
1,330
Posted By ahmed.vaghar
Thank you cjcox for prompt response. Can you...
Thank you cjcox for prompt response.

Can you elaborate what do you mean wrapper?
1,330
Posted By ahmed.vaghar
Description using last command
Hello Experts,

I need the description (like if user has done sudo,logging from winscp termial or ssh from other machine) using the last command.Can someone help me out please.

Thanks.
1,895
Posted By ahmed.vaghar
Rudy, It is showing the same way as csv...
Rudy,

It is showing the same way as csv file,Below the output

USERNAME;HOSTNAME;LOGIN_TIME;LOGOUT_TIME;DURATION
wtmp;Tue;1915:49:472015;;
;;;;...
1,895
Posted By ahmed.vaghar
Rudy, Thank you very much it helped.Can you...
Rudy,

Thank you very much it helped.Can you please help me how to write this into a CSV or XLS file.

I tried this it is writing everything in one column.

last -w -F | tac | awk -vOFS=";"...
1,895
Posted By ahmed.vaghar
Don, To be frank am very much new to the...
Don,

To be frank am very much new to the bash programming.Can you please help me with the code ?

Regards,
1,895
Posted By ahmed.vaghar
Thanks for prompt response. Am on Red Hat...
Thanks for prompt response.

Am on Red Hat Linux
1,895
Posted By ahmed.vaghar
awk Print help
Hi,

I got the output for the last command using the below command

last -w -F | awk '{print $1","$3","$5$6$7$8","$11$12$13$14","$15}' | tac | tr ',' '\t'

Now for the same output i want to add...
2,050
Posted By ahmed.vaghar
Thanks Alia it resolved
Thanks Alia it resolved
2,288
Posted By ahmed.vaghar
Login/Logout Information in report
Hello Experts,

Am very much new to the bash shell scripting.I need a small favour,I need a shell script to get Login and Logout information in a csv file.Can some one help me out please.
...
2,050
Posted By ahmed.vaghar
Thanks Aia will try from my end and let you in...
Thanks Aia will try from my end and let you in know soon.

Regards,
2,050
Posted By ahmed.vaghar
Thank you very much all for prompt response ...
Thank you very much all for prompt response

Can some one please help me this logic If i want to include in the code "Failed password" string,how to add that.

Sep 28 17:16:37 samplehostname...
2,050
Posted By ahmed.vaghar
Thanks a ton it is working,But the log file may...
Thanks a ton it is working,But the log file may vary it is not constant all the time you can see only two users logging here,But in real lot of users may log.

Can you help me in that case what i...
2,050
Posted By ahmed.vaghar
RSYSLOG reports
Yoda,

Please find the below rsyslog dump :-

Sep 28 17:16:37 samplehostname sshd[32092]: subsystem request for sftp
Sep 28 18:21:30 samplehostname sshd[23278]: pam_unix(sshd:session): session...
1,441
Posted By ahmed.vaghar
Sep 28 17:16:37 samplehostname sshd[32092]:...
Sep 28 17:16:37 samplehostname sshd[32092]: subsystem request for sftp
Sep 28 18:21:30 samplehostname sshd[23278]: pam_unix(sshd:session): session closed for user oracle
Sep 28 19:27:31...
2,050
Posted By ahmed.vaghar
RSYSLOG reports
I want to create reports using rsyslog in linux,Can someone help me out here ? Report Format must be "Hostname" "Username" "Hostname logged from" "Date" "Time"

Regards,
Ahmed.

---------- Post...
3,219
Posted By ahmed.vaghar
How to preserve time stamp while copying a directory from Server B to Server A?
Experts,

Please help me out here.

How to preserve time stamp while copying a directory from Server B to Server A
963
Posted By ahmed.vaghar
How to get the latest file from a directory in Server B to Server A?
ssh user@hostnameB
cd /home/oracle
latest_file_target=$(ls -trp -I "*.pd.Sat" -I "*.pd.Lag" -R | grep -v "/.pd" | tail -1)
scp -r $latest_file_target user@hostnameA:$TARGET_DIR/
exit
1,726
Posted By ahmed.vaghar
Ravinder, Thanks again. Is there a way...
Ravinder,

Thanks again.

Is there a way we can do that using script.
1,726
Posted By ahmed.vaghar
Thank you very much Ravinder for prompt response....
Thank you very much Ravinder for prompt response.

Yes it is working.But my requirement is to write the output in CSV file.I can able to write that in CSV file using this command ">" Is there a...
1,726
Posted By ahmed.vaghar
Need to Insert three extra columns in csv file
Hello Experts,

I got a requirement i have a input file which am getting from different source,Now i want to add extra 3 columns to this file like BASE,ACTUAL and DATE.

Input File Looks like
...
1,441
Posted By ahmed.vaghar
Shell Script
Hello Experts,

Can you please help me write a shell script to create a report using the syslog ?

Thanks in advance.

Regards,
Ahmed.
Showing results 1 to 25 of 25

 
All times are GMT -4. The time now is 08:30 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy