Greetings,
I am wrapping the monitoring commands like vmstat, sar, iostat and call via arguments
I want ./unix_stats.sh -v vmstat -p <SEC> -d <Duration>
to give vmstat values, and similarly iostat etc.,.
Also if I give ./unix_stats.sh -v vmstat -i iostat -p <SEC> -d <Duration> should give... (4 Replies)
Hi All,
Calling a function with one argument and storing the return value in a shell script is as below:( so far I know)
value="`fun_1 "argument1"`"
Its working perfectly for me.
Can u help me with passing more than one argument and storing the return value
Thnaks in advance
JS (1 Reply)
Hi All,
i have script like below..
echo "1) first option"
echo ""
echo "2) second option"
echo ""
echo "*) please enter the correct option"
read select
case $select in
1) echo "first option selected"
;;
2) echo "second option selected"
;;
*) echo "please enter the correct... (4 Replies)
I have some folders with this structure:
/data/me/a123xxx
Where "xxx" is some changing series of letters, and "123" changes so folders might look like: /data/me/a123xxx
/data/me/a234ysd
/data/me/a534sds etc. The numbers are what matter to me (they identify the folder), so I created an... (7 Replies)
Hi all
I have got a file digits.data containing the following data
1 3 4
2 4 9
7 3 1
7 3 10
I am writing a script that will pass an argument from C-shell to nawk command. But it seems the values in the nawk comman does not get set. the program does not print no values out. Here is the... (2 Replies)
Hi all
First of all thanks for everyone to read by doubt.Am beginner in shell scripting
Following are my doubts
i have to pass an argument to shellscript how can i do that
second i have to test the argument and shows error when nothing is passes
third i have to match exact argument... (3 Replies)
Hello all,
New to C and I'm trying to write a program which can run a unix command. Would like to have the option of giving the user the ability to enter arguments e.g for "ls" be able to run "ls -l".
I would appreciate any help.
Thanks
#include <stdio.h>
#include <unistd.h>
#include... (3 Replies)
Hi,
I have a script that is scheduled with cron and runs every night. The cron part looks like this:
00 20 * * 0,1,2,3,4,5,6 /usr/local/bin/BACKUP TBTARM HOT DELETE
My issue is with the 3rd parameter. Somewhere in the script, i want to tell the script to delete some files if the 3rd... (7 Replies)
How to pass the alphabet character as a argument in case and in if block?
ex:
c=$1
if a-z ]]
then
echo "alphabet"
case $1 in
a-z) echo "the value is a alphabet"
edit by bakunin: please use CODE-tags. We REALLY mean it. (9 Replies)
Discussion started by: Roozo
9 Replies
LEARN ABOUT DEBIAN
bcfg2-reports
bcfg2-reports(8) System Manager's Manual bcfg2-reports(8)NAME
bcfg2-reports - Query reporting system for client status
SYNOPSIS
bcfg2-reports [-v]
DESCRIPTION
bcfg2-reports allows you to retrieve data from the database about clients, and the states of their current interactions. It also allows you
to change the expired/unexpired states. The utility runs as a standalone application. It does, however, use the models from
/src/lib/Server/Reports/reports/models.py.
OPTIONS -a
Shows all hosts, including expired hosts.
-b NAME
Single-host mode - shows bad entries from the current interaction of NAME. NAME is the name of the entry.
-c
Shows only clean hosts.
-d
Shows only dirty hosts.
-e NAME
Single host mode - shows extra entries from the current interaction of NAME. NAME is the name of the entry.
-h
Shows help and usage info about bcfg2-reports.
-m NAME
Single-host mode - shows modified entries from the current interaction of NAME. NAME is the name of the entry.
-s NAME
Single host mode - shows bad, modified, and extra entries from the current interaction of NAME. NAME is the name of the entry.
-x NAME
Toggles expired/unexpired state of NAME. NAME is the name of the entry.
--badentry=KIND,NAME
Shows only hosts whose current interaction has bad entries in of KIND kind and NAME name; if a single argument ARG1 is given, then
KIND,NAME pairs will be read from a file of name ARG1. KIND is the type of entry (Package, Path, Service, etc). NAME is the name of
the entry.
--extraentry=KIND,NAME
Shows only hosts whose current interaction has extra entries in of KIND kind and NAME name; if a single argument ARG1 is given, then
KIND,NAME pairs will be read from a file of name ARG1. KIND is the type of entry (Package, Path, Service, etc). NAME is the name of
the entry.
--fields=ARG1,ARG2,...
Only displays the fields ARG1,ARG2,... (name, time, state, total, good, bad)
--modifiedentry=KIND,NAME
Shows only hosts whose current interaction has modified entries in of KIND kind and NAME name; if a single argument ARG1 is given,
then KIND,NAME pairs will be read from a file of name ARG1. KIND is the type of entry (Package, Path, Service, etc). NAME is the
name of the entry.
--sort=ARG1,ARG2,...
Sorts output on ARG1,ARG2,... (name, time, state, total, good, bad)
--stale
Shows hosts which haven't run in the last 24 hours
SEE ALSO bcfg2(1), bcfg2-server(8)BUGS
None currently known
bcfg2-reports(8)