08-18-2008
cd /etc/perf/daily
ls -lrt
topasout -a <<xmwlm>>.file
sort -o <<file>>.csv <<file>>.csv
ftp off and open in nmon
shrug
x='/etc/perf/daily'
cd $x
error=$?
if [[ $error != '0' ]] then
echo "There was an error running script: $0 $(date) please trouble shoot"
echo "This script could not cd to $x to convert the files to the nmon format"
exit
fi
#LIST=$(ls)
LIST=$(ls | grep -v csv | grep xmwlm) #Do not grab any files that have been
#coverted already
for f in $LIST; do
# make the file.csv files here "man topasout" for help
topasout -a $f
sleep 3
# sort the file and set back as the same file name
# so the time stamps are right in nmon
sort -o $f.csv $f.csv
sleep 3
# encode so you can attach the file, and then send it to the exe person
# checking the .forward file if it exists.
uuencode $x/$f.csv $x/$f.csv | mail -s "Your-weekly-$f.csv-file" $USER
error=$?
sleep 3
if [[ $error == '0' ]] then
rm $f.csv
else
echo "There were errors running script $0 at $(date) you will need to clean u
p the CSV files"
fi
done
This User Gave Thanks to pagink For This Post:
8 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
When using dump, a .snap directory is created in the partition being dumped.
I have searched for the reason this directory is created but haven't found any information on its purpose.
I have monitored the .snap directory during a dump and I have never seen any files appear in during the dump so... (3 Replies)
Discussion started by: thumper
3 Replies
2. Shell Programming and Scripting
Okay, so im setting up a script to start my internet dependent scripts once I am connected to the net. It got complicated because of the different networks I frequent but it goes something like this:
n=1
iwconfig wlan0 > wireless.txt
m= grep -c MGHS /home/jake/Scripts/wireless.txt
o= grep -c... (7 Replies)
Discussion started by: arcnsparc
7 Replies
3. UNIX for Dummies Questions & Answers
Hi all
For AIX we can snap -gc gather the info
how abt other systems is solaris and linux?
thanks in advance
jiajin (0 Replies)
Discussion started by: lijiajin
0 Replies
4. Red Hat
Hi, Does anybody use Enterprise Data Replicator for Network Attached Storage replication.
If you do, Do you get the following message in replication logs.
"Replication Source file agent No heart beats from the remote target agent on snap01 for 300 seconds: Assuming connection failure"
... (1 Reply)
Discussion started by: uxadmin007
1 Replies
5. AIX
Hi Friends,
I am not able to execute snap -a command in AIX 6 system. Could you please let me know how to make work this command and Path to be set.
Thanks in Advance
Siva. (4 Replies)
Discussion started by: sivakumarl
4 Replies
6. AIX
I need to grep two lines from topas command in one of my AIX server.
Topas Monitor for host: semas001 EVENTS/QUEUES FILE/TTY
Wed Jan 29 10:12:06 2014 Interval: 2 Cswitch 764 Readch 4473.1K
Syscall 5166 ... (4 Replies)
Discussion started by: rpm120
4 Replies
7. Ubuntu
Hi,
I think the ubuntu snap is great idea.
However the fact that it may contain duplications has two disadvantages.
1) eating more space in the storage.
2) eating more space in the internal memory (RAM), it will load the same library more than once to the memory.
Now the solution for this is... (0 Replies)
Discussion started by: programAngel
0 Replies
8. AIX
Hi Everyone,
Does anyone know if can access
/etc/environment from SNAP file
to check the time zone from the snap file
Objective:
The timezone on the server was changed by someone to another timezone, so I want to check what is the old timezone was ?
I have an old SNAP file.
Does... (4 Replies)
Discussion started by: filosophizer
4 Replies
LEARN ABOUT NETBSD
fsck_msdos
FSCK_MSDOS(8) BSD System Manager's Manual FSCK_MSDOS(8)
NAME
fsck_msdos -- DOS/Windows (FAT) filesystem consistency checker
SYNOPSIS
fsck_msdos -p [-f] filesystem ...
fsck_msdos [-fny] [-x snap-backup] filesystem ...
DESCRIPTION
The fsck_msdos utility verifies and repairs FAT filesystems (more commonly known as DOS filesystems).
The first form of fsck_msdos preens the specified filesystems. It is normally started by fsck(8) run from /etc/rc during automatic reboot,
when a FAT filesystem is detected. When preening file systems, fsck_msdos will fix common inconsistencies non-interactively. If more seri-
ous problems are found, fsck_msdos does not try to fix them, indicates that it was not successful, and exits.
The second form of fsck_msdos checks the specified file systems and tries to repair all detected inconsistencies, requesting confirmation
before making any changes.
The options are as follows:
-f This option is ignored by fsck_msdos, and is present only for compatibility with programs that check other file system
types for consistency, such as fsck_ffs(8).
-n Causes fsck_msdos to assume no as the answer to all operator questions, except ``CONTINUE?''.
-p Preen the specified filesystems.
-x snap-backup Use a snapshot with snap-backup as backup to check a read-write mounted filesystem. Must be used with -n. See fss(4) for
more details. The point is to check an internally-consistent version of the filesystem to find out if it is damaged; on
failure one should unmount the filesystem and repair it.
-y Causes fsck_msdos to assume yes as the answer to all operator questions.
SEE ALSO
fss(4), fsck(8), fsck_ffs(8), mount_msdos(8)
BUGS
fsck_msdos is still under construction.
BSD
April 11, 2010 BSD