10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi
I have the following piece of code, running on a solaris 10 O.S., that is not working for NFS file systems:
for vol in `grep -E 'vxfs|ufs|nfs' /etc/vfstab | egrep -v '^#' | awk '{ print $3 }'`
do
if df -k $vol | grep $vol > /dev/null
then
outputOK "Filesystem: $vol mounted"
else... (1 Reply)
Discussion started by: fretagi
1 Replies
2. Shell Programming and Scripting
Hi
I need to have a piece of code that check if all file systems are mounted or not.
I have to pieces of information like the output of the bdfcommand, and the file /etc/fstab.
The first is:
bdf
Filesystem kbytes used avail %used Mounted on
/dev/vg00/lvol3 2097152 266656... (3 Replies)
Discussion started by: fretagi
3 Replies
3. Solaris
With Solaris newer versions where SSH is enabled by default, do we still need to configure security parameters in /etc/default/login for e.g. SLEEPTIME, CONSOLE etc? (0 Replies)
Discussion started by: kurumi
0 Replies
4. Shell Programming and Scripting
How can I add a check right after the FTP to see if the login id failed or not and echo an error description indicating login failed?
Here is my script:
ftp $HOST1 <<END_SCRIPT>>$TARGETLOGS/$LOGFILE
#ftp $HOST1 <<END_SCRIPT>
cd idx
prompt
mget $PICKUPFILE*.txt
!cp $PICKUPFILE*... (17 Replies)
Discussion started by: mrn6430
17 Replies
5. UNIX for Advanced & Expert Users
Hi folks
Howto do quick remote health check for SAP systems on UNIX commandline? To see if a SAP system is down or in maintenace mode (no login).
I am searching something like "tnsping"/Oracle for SAP systems. (2 Replies)
Discussion started by: slashdotweenie
2 Replies
6. Cybersecurity
As a root user i switch to a different user say "oratest". I would like to know the details like at what time did the switch ( su - oratest ) happen.
Are there any logs to check this
Thanks. (2 Replies)
Discussion started by: jjoy
2 Replies
7. UNIX for Dummies Questions & Answers
As a root user i switch to a different user say "oratest". I would like to know the details like at what time did the switch ( su - oratest ) happen.
Are there any logs to check this
Thanks. (4 Replies)
Discussion started by: jjoy
4 Replies
8. Shell Programming and Scripting
I am writing a script which will execute commands on remote host only if they have a passwordless ssh setup. How do i check for that in my script (5 Replies)
Discussion started by: vickylife
5 Replies
9. UNIX for Advanced & Expert Users
Hi everybody,
I need to check in C program wether a given login is known on the system. Is there any system function that could do this ?
So far, all I could find is getpwnam(), which answers my problem by parsing the local password database. But won't work if a user is authenticated by... (10 Replies)
Discussion started by: xavier054
10 Replies
10. Solaris
Hi,
I'm new to solaris/ Unix and would like to know how to check in the system what
was the last login user were doing. Is there any way to check this? Thanks in advanced. (1 Reply)
Discussion started by: raziayub
1 Replies