Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Identify issues through logging in unix Post 302564974 by praveenveerla on Saturday 15th of October 2011 07:18:03 PM
Old 10-15-2011
Identify issues through logging in unix

I am a newbie to unix and appeared for an interview and was asked this question.


If i was working for a company as a support person on an application and has to monitor the logs how would i determine if there was outage by checking the logs and where would i search for the issue initially. and by looking at those logs how can we determine what kind of an outage it is, if its related to application, system, network or database. and what would be the commands used during this process.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

how does unix identify C and other language code!

Hello everyone, this question is probably simple for you ppl but i am jus a beginner and still learing. i was wondering if someone could tell me that how does unix identify different program codes in it's environment. for example, unix recognises this C code in the body of any script. how... (2 Replies)
Discussion started by: a25khan
2 Replies

2. UNIX for Advanced & Expert Users

Identify a remote machine as windows or unix

Hi, I have a IP address of the target machine.Is there is any way to find out whether it is a unix box or windows box without logging into it?. Regs Anand (5 Replies)
Discussion started by: u449064
5 Replies

3. UNIX for Advanced & Expert Users

unix logging

hello every one can any one help me out i just want to trace what ever i am doing in linux 8.0 in the text mode to be saved in a text file so that at the end i can see my work what i have do. its just like oracle spool so you can see your work at the end . for example what ever command u gave... (1 Reply)
Discussion started by: shary
1 Replies

4. Shell Programming and Scripting

Identify records having junk characters in unix

Hi Friends, I need to have a command in Unix which output all teh records havingg junk characters in a file.... I know a command cat -tv <Filename> which opens the file and we can check for any junk character in it. But my requirement is to fetch ONLY THOSE records having junk characters.... (6 Replies)
Discussion started by: sureshg_sampat
6 Replies

5. Shell Programming and Scripting

Logging into another UNIX box

Hello All, Is there any UNIX or KSH Command to login to an linux/unix server and execute a command and then come back to the original server where u have executed the command. For Example: ------------------------------------------------------- SServer1 - Source Server. DServer2 -... (1 Reply)
Discussion started by: maxmave
1 Replies

6. Shell Programming and Scripting

how to identify the mode of the file in unix

hi, I have a requirement in that i need to process a input file The problem is, the input file sometimes it is coming in dos mode and some times it is coming in unix mode The script which i have written will process the file only if it is in unix mode and it is not processing if the file is in... (7 Replies)
Discussion started by: trichyselva
7 Replies

7. UNIX for Dummies Questions & Answers

identify a customer under a UNIX server

Like many UNIX users, there is a small team that is connected to UNIX (under the same UNIX user) via putty from a Windows PC. Is there a way, once under UNIX, to know the address of the originating computer or anything that can differentiate initial users ? (7 Replies)
Discussion started by: popescu1954
7 Replies

8. Programming

Unix system crashing - Need help to identify the issue

Hi, We are accessing our remote webserver using libcurl.We are using GET method to post the request.The request is a simplified URL.We will receive XML Response for the URL request. Problem For Few Scenarios, response for the URL request is received & our component is killed abruptly. Can... (11 Replies)
Discussion started by: banus
11 Replies

9. AIX

How to Identify long running unix processes

Hi All, Need an urgent help, I have a requirement to find long running unix processes.. I have tried the below commands, but not succeed. I need to arrange the unix processess in an order of elapsed time (high to low) that runs in a system. For Eg: Consider we have 3 processes, Pid 1 pid 2... (5 Replies)
Discussion started by: mohamedirfan
5 Replies

10. Shell Programming and Scripting

How to identify whether the script is in Unix format or not ?

Hi All, I have the below scenario in my environment Developers used to copy file from windows to Linux box. Some time on the copied file developers miss to run the dos2unix utility. Because of this script gets failed during the execution. Most of the failures are due to the dos2unix format... (7 Replies)
Discussion started by: kalpeer
7 Replies
SD_LOGIN_MONITOR_NEW(3) 				       sd_login_monitor_new					   SD_LOGIN_MONITOR_NEW(3)

NAME
sd_login_monitor_new, sd_login_monitor_unref, sd_login_monitor_flush, sd_login_monitor_get_fd - Monitor login sessions, seats and users SYNOPSIS
#include <systemd/sd-login.h> int sd_login_monitor_new(const char* category, sd_login_monitor** ret); sd_login_monitor* sd_login_monitor_unref(sd_login_monitor* m); int sd_login_monitor_flush(sd_login_monitor* m); int sd_login_monitor_get_fd(sd_login_monitor* m); DESCRIPTION
sd_login_monitor_new() may be used to monitor login session, users and seats. Via a monitor object a file descriptor can be integrated into an application defined event loop which is woken up each time a user logs in, logs out or a seat is added or removed, or a session, user, or seat changes state otherwise. The first parameter takes a string which can be either seat (to get only notifications about seats being added, removed or changed), session (to get only notifications about sessions being created or removed or changed) or uid (to get only notifications when a user changes state in respect to logins). If notifications shall be generated in all these conditions, NULL may be passed. Note that in future additional categories may be defined. The second parameter returns a monitor object and needs to be freed with the sd_login_monitor_unref() call after use. sd_login_monitor_unref() may be used to destroy a monitor object. Note that this will invalidate any file descriptor returned by sd_login_monitor_get_fd(). sd_login_monitor_flush() may be used to reset the wakeup state of the monitor object. Whenever an event causes the monitor to wake up the event loop via the file descriptor this function needs to be called to reset the wake-up state. If this call is not invoked the file descriptor will immediately wake up the event loop again. sd_login_monitor_get_fd() may be used to retrieve the file descriptor of the monitor object that may be integrated in an application defined event loop, based around poll(2) or a similar interface. The application should include the returned file descriptor as wake up source for POLLIN events. Whenever a wake-up is triggered the file descriptor needs to be reset via sd_login_monitor_flush(). An application needs to reread the login state with a function like sd_get_seats(3) or similar to determine what changed. RETURN VALUE
On success sd_login_monitor_new() and sd_login_monitor_flush() return 0 or a positive integer. On success sd_login_monitor_get_fd() returns a Unix file descriptor. On failure, these calls return a negative errno-style error code. sd_login_monitor_unref() always returns NULL. NOTES
The sd_login_monitor_new(), sd_login_monitor_unref(), sd_login_monitor_flush() and sd_login_monitor_get_fd() interfaces are available as shared library, which can be compiled and linked to with the libsystemd-login pkg-config(1) file. SEE ALSO
systemd(1), sd-login(7), sd_get_seats(3) AUTHOR
Lennart Poettering <lennart@poettering.net> Developer systemd 10/07/2013 SD_LOGIN_MONITOR_NEW(3)
All times are GMT -4. The time now is 07:12 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy