04-12-2007
create a report using shell
hi
suppose I want to create a report where it will shows the machine name, the date & time when the report is produced.
can anyone please help me to write such shell script?
requesting all.
Thanks
10 More Discussions You Might Find Interesting
1. UNIX Desktop Questions & Answers
I am a bash shell programmer and I create programs on occasional basis.
Now, I dont want my programs to be run by typing out its name at a command line. I want to make it as user friendly as possible. I want to create icons on the desktop so users can click on it. mind you, I said "desktop... (7 Replies)
Discussion started by: TRUEST
7 Replies
2. Shell Programming and Scripting
Hi,
I am trying to create a report using the following syntax:
#!/bin/awk -f
#script name: users_report
BEGIN { FS=":" ; OFS="\t" ; print "User\tGID\tUser Name\tHome Dir\t"
{ print $1 , $3 , $5 , $6 }
END { print "\n End of Report \n" }
$> user_report /etc/passwd
the output of... (5 Replies)
Discussion started by: ghazi
5 Replies
3. Shell Programming and Scripting
What i'm trying to do is to use grep to search through a few files for a selected daemon and only report on today's date.
I think I got it sorted apart from in the txt file the date has 2 gaps between the month and the day, and the way I have the date format only puts in one gap any help to get... (3 Replies)
Discussion started by: MBN
3 Replies
4. Shell Programming and Scripting
Dear Unix champs,
I have a input file as attached, i would like to create an report from the file as below
FileType | EQUENS0001 | EQUENS0002 | EQUENS1100 | EQUENS0003
--------+--------------------------------------------------------
Msg No |... (3 Replies)
Discussion started by: manas_ranjan
3 Replies
5. Shell Programming and Scripting
Hi ,
Please help me getting this done.
Write an automated shell program(s) that can create, monitor the log files and report the issues for matching pattern.
(i) Conditions for creating log files.
Log file is created with date (example 2010_03_27.log). If the log file size is 10 Mb for... (1 Reply)
Discussion started by: itian2010
1 Replies
6. Homework & Coursework Questions
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
Write an automated shell program(s) that can create, monitor the log files and report the issues for matching... (0 Replies)
Discussion started by: itian2010
0 Replies
7. Shell Programming and Scripting
Greetings.
I need to generate a simple report via Bash (Korn?) with this raw data
Test_Version=V2.5.2
Test_Version=V2.6.3
Test_Version=V2.4.7
Test_Version=V2.5.2
Test_Version=V2.5.2
Test_Version=V2.5.1
Test_Version=V2.5.0
Test_Version=V2.3.9
... (3 Replies)
Discussion started by: alan
3 Replies
8. Shell Programming and Scripting
Hi,
I am an amateur bash scriptwriter and I need to write a script which creates a report in a formatted, easy to read table-like that is displayed to standard output. The script has to export the followings: Process ID,User Name, Command Name,Priority.....
Now I have a file that I can see all... (3 Replies)
Discussion started by: bashily
3 Replies
9. Shell Programming and Scripting
Hi,
In our company, we have been asked to design a script to automate the report of all IP's which are free/used from all the pools in DHCP at any given Amount of time. We have prepare the following script. The problem is when we run the script manually from the command prompt, it brings proper... (1 Reply)
Discussion started by: Crazy_Nix
1 Replies
10. Shell Programming and Scripting
Input file will be
Name: serve1
has disk :Yes
dev (8):
Name: serve2
has disk :No
dev (8):
Name: serve3
has disk :No
Name: serve4
has disk :Yes
dev (8):
Need output like that. I was using pate -d, - - - . But that need all the line in same format in this some server it has... (4 Replies)
Discussion started by: ranjancom2000
4 Replies
LEARN ABOUT MINIX
cifsiostat
CIFSIOSTAT(1) Linux User's Manual CIFSIOSTAT(1)
NAME
cifsiostat - Report CIFS statistics.
SYNOPSIS
cifsiostat [ -h ] [ -k | -m ] [ -t ] [ -V ] [ interval [ count ] ]
DESCRIPTION
The cifsiostat command displays statistics about read and write operations on CIFS filesystems.
The interval parameter specifies the amount of time in seconds between each report. The first report contains statistics for the time since
system startup (boot). Each subsequent report contains statistics collected during the interval since the previous report. A report con-
sists of a CIFS header row followed by a line of statistics for each CIFS filesystem that is mounted. The count parameter can be specified
in conjunction with the interval parameter. If the count parameter is specified, the value of count determines the number of reports gener-
ated at interval seconds apart. If the interval parameter is specified without the count parameter, the cifsiostat command generates
reports continuously.
REPORT
The CIFS report provides statistics for each mounted CIFS filesystem. The report shows the following fields:
Filesystem:
This columns shows the mount point of the CIFS filesystem.
rB/s (rkB/s, rMB/s)
Indicate the average number of bytes (kilobytes, megabytes) read per second.
wB/s (wkB/s, wMB/s)
Indicate the average number of bytes (kilobytes, megabytes) written per second.
rop/s
Indicate the number of 'read' operations that were issued to the filesystem per second.
wop/s
Indicate the number of 'write' operations that were issued to the filesystem per second.
fo/s
Indicate the number of open files per second.
fc/s
Indicate the number of closed files per second.
fd/s
Indicate the number of deleted files per second.
OPTIONS
-h Make the CIFS report easier to read by a human.
-k Display statistics in kilobytes per second.
-m Display statistics in megabytes per second.
-t Print the time for each report displayed. The timestamp format may depend on the value of the S_TIME_FORMAT environment variable
(see below).
-V Print version number then exit.
ENVIRONMENT
The cifsiostat command takes into account the following environment variables:
S_TIME_FORMAT
If this variable exists and its value is ISO then the current locale will be ignored when printing the date in the report header.
The nfsiostat command will use the ISO 8601 format (YYYY-MM-DD) instead. The timestamp displayed with option -t will also be com-
pliant with ISO 8601 format.
BUG
/proc filesystem must be mounted for cifsiostat to work.
FILE
/proc/fs/cifs/Stats contains CIFS statistics.
AUTHORS
Written by Ivana Varekova (varekova <at> redhat.com)
Maintained by Sebastien Godard (sysstat <at> orange.fr)
SEE ALSO
sar(1), pidstat(1), mpstat(1), vmstat(8), iostat(1), nfsiostat(1)
http://pagesperso-orange.fr/sebastien.godard/
Linux JANUARY 2011 CIFSIOSTAT(1)