I am trying to debug some KSH script and it has the nawk portion below. I just want to confirm whether I understand what it does correctly.
Example usage of the nawk line is run as below:
$TNSNAMES is a tnsnames.ora file, excerpts of some of its lines as below:
From what I understand, the nawk excludes all lines that begins with a # and if it finds a line that begins with testp.cfg or testp.cfg.testdb.com.ph, and starting from that line, it reads a line, strips the spaces, and convert it to lower case. Now I don't understand what this section of the nawk does?
Does the first sub strips all spaces before the host= string? But what does the second sub do? Remove everything from the first dot (.)?
Is the c variable means it will only process 20 lines from when it find the testp.cfg or testp.cfg.testdb.com.ph string?
I've just started to explore NIM and I'm looking for additional information on how to set it up and configure it. I've read through the "NIM A-Z" and have many unanswered questions.
One question is how can I have the NIM server pull a mksysb of the clients and can I schedule this to happen... (1 Reply)
Hi,
I am a newbie to Unix, I was introduced to UNIX 8 months back during my Training, I was attracted to Unix as they give complete freedom. I would like to ask how can a OS Admin can go into development field of Unix. Currently I am working in a MNC in Backup- Storage Admin Domain I am... (1 Reply)
Hi guys, I'm learning the ropes of BASH and am doing a few exercises to see if its sinking in but have gotten stuck on something I KNOW is looking at me right in the face but just isn't registering.
I'm creating a script that needs to get specific strings from a line. So using the "ls -l... (9 Replies)
i'm new to shell scripting and have a problem please help me
in the script i have a nawk block which has a variable count
nawk{
.
.
.
count=count+1
print count
}
now i want to access the value of the count variable outside the awk block,like..
s=`expr count / m`
(m is... (5 Replies)
I need some guidance on the differences in observations, not sure how significantly different are they.
Also, It would be nice to hear on the values and what the obvious tuning for performance missing.
Observation 1
ending vmstat -v 3948544 memory pages
ending vmstat -v ... (1 Reply)
Hey All,
I am newbie on scripting and need some guidance from all the experts here.
I am working on one project where I will check the status/health of around ten (10) solaris 10 servers.
I have one central server from where I have already setup the passwordless SFTP and setup the cron... (1 Reply)
Hi.. i am running nawk scripts on solaris system to get records of file1 not in file2 and find duplicate records in a while with the following scripts -compare
nawk 'NR==FNR{a++;next;} !a {print"line"FNR $0}' file1 file2duplicate - nawk '{a++}END{for(i in a){if(a-1)print i,a}}' file1in the middle... (12 Replies)
Hi There,
I am new to AIX. I am eager to learn the AIX System administration or if there is any other prerequisite before this. Please can anyone help me or guide how to start with AIX, what all courses and certifications do I need to do. I have basic knowledge of UNIX.
Please guide as I am... (3 Replies)
Hello everyone! I am a mechanical engineering student from Brazil, and I'm trying to get into numerical simulation in fluid dynamics.
A teacher recommended OpenFoam and from what I've been reading, it seems that I need to get familiar with ''the Shell'' at first, and this is why I'm here. I... (2 Replies)
Not every server I use has bash so I wanted to add an option to check if bash exists. This is what I tried. This is the error message it gives "-bash: '". It works before I add the and option.
if ; then
echo hi
source ~/.bashrc;
fi (6 Replies)
Discussion started by: cokedude
6 Replies
LEARN ABOUT DEBIAN
mz.cfg
mz.cfg(1) General Commands Manual mz.cfg(1)NAME
mz - a fast versatile packet generator
SYNOPSIS
/etc/mausezahn/mz.cfg
DESCRIPTION
Mausezahn is a free fast traffic generator written in C which allows you to send nearly every possible and impossible packet. Mausezahn's
MOPS subsystem (Mausezahn's Own Packet System) supports an interactive mode with a Cisco-style command line interface (CLI). In order to
activate this interactive mode, execute Mausezahn using the -x argument, optionally followed by an arbitrary TCP port number, such as
# mz -x 99
in which case you can connect to Mausezahn via
$ telnet 127.0.0.1 99
If no port number is specified, Mausezahn uses the default port number 25542 (which is the date of towel day followed by the answer to the
universe and everything; however, you don't need to understand this in order to continue).
Login credentials as well as other MOPS-related parameters can be specified in the Mausezahn configuration file mz.cfg located in
etc/mausezahn. Currently, user-specific configuration files are not supported.
If no configuration file is present Mausezahn assumes the following default login credentials:
username: mz
password: mz
enable password: mops
Currently only login credentials can be configured within the configuration file. Here is an example content of /etc/mausezahn/mz.cfg:
user = herbert
password = moTTe
enable = T0p5ecreT
Additional configuration options will be officially supported with the next releases.
FILES
/etc/mausezahn/mz.cfg
SEE ALSO mz(1)AUTHOR
Herbert Haas.
Visit www.perihel.at/sec/mz/ for Mausezahn news and additional information.
This manual page was written by Herbert Haas <herbert AT perihel DOT at>, for the Debian project.
March 7, 2010 mz.cfg(1)