09-03-2012
Thank you very much.
for helping me.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
&& set -x && echo "enter tablespace_end_backup" >&2
Can you tell me what's mean above?
thanx (1 Reply)
Discussion started by: Lee
1 Replies
2. UNIX for Dummies Questions & Answers
Hello and Good day to all.
Im having a problem here and would like to know if there is any solution that could overcome my problem.
I have changed from bash to csh (c-shell) yesterday on my Linux 7.2. When i do $echo $SHELL i can see the output /bin/csh which means ihave succesfully landed on... (4 Replies)
Discussion started by: ###1tomato
4 Replies
3. UNIX for Advanced & Expert Users
Dear Members;
I changed ,by mistake ,the root shell in /etc/passwd and logged out. Thereafter, I can no more have a prompt when trynig to log in as root.
How to solve this pb ?
Regards :confused: (8 Replies)
Discussion started by: oss
8 Replies
4. UNIX for Dummies Questions & Answers
What are the different type of shell available in UNIX and how to change the shell?
just this 2 question pls help mi (4 Replies)
Discussion started by: yeah016
4 Replies
5. Shell Programming and Scripting
hi,
can any one tell a solution for the following :
I want to append 10 spaces and a string say "ok" to 12 digit number which is stored in a varialbe & display using shell script. (1 Reply)
Discussion started by: Sandeep Kale
1 Replies
6. Shell Programming and Scripting
Hi all,
until yesturday grep command was running in KSH ....
I was executing this command
ls -l | grep *.sh
But today its not working at all ...
Should I check any of the setting ...
I am not getting whats the problem ...
I have relogged to unix box but it didn't... (14 Replies)
Discussion started by: dhananjayk
14 Replies
7. Shell Programming and Scripting
Hi,
My sheel script has below statement:
if; then
When I run iam getting the below error:
-bash: syntax error near unexpected token `then'
What is wrong with that statement:
Plz help me. (2 Replies)
Discussion started by: pradeep_script
2 Replies
8. Shell Programming and Scripting
Hello!
Can you please help me on a lab at school:
I have to to write a shell program which reads all .C files from the current directory and prints for each file how many '#define' directives it has and for each macro defined how many times is it used in that file.
Can you suggest how can i... (1 Reply)
Discussion started by: dark_knight
1 Replies
9. Shell Programming and Scripting
hi...i create a script which reads data from file and compare that the data which is entered by me through keyboard...i can easily read first two contents of file..i am facing the problem to read other contents..
structure of my file is
username:password:username1:password1.......and so on
... (1 Reply)
Discussion started by: shubhig15
1 Replies
10. Shell Programming and Scripting
problem:
I give the source of a c program.. is required to indicate how many times is called each function defined in the program and line number
there is a call.
let's say i have lab2.c:
float dist(int *a,int *b,int n){
int i=0;
double d=0;
for (i=1;i<=n;i++){
d+=pow((a-b),2);
}... (4 Replies)
Discussion started by: sherpeledenis
4 Replies
LEARN ABOUT REDHAT
snmpstatus
SNMPSTATUS(1) Net-SNMP SNMPSTATUS(1)
NAME
snmpstatus - Retrieves important information from a network entity.
SYNOPSIS
snmpstatus [COMMON OPTIONS]
DESCRIPTION
snmpstatus is an SNMP application that retrieves several important statistics from a network entity.
The information returned is:
The IP address of the entity.
A textual description of the entity (sysDescr.0)
The uptime of the entity's SNMP agent (sysUpTime.0)
The sum of received packets on all interfaces (ifInUCastPkts.* + ifInNUCastPkts.*)
The sum of transmitted packets on all interfaces (ifOutUCastPkts.* + ifOutNUCastPkts.*)
The number of IP input packets (ipInReceives.0)
The number of IP output packets (ipOutRequests.0)
For example:
snmpstatus -c public -v 1 netdev-kbox.cc.cmu.edu
will produce output similar to the following:
[128.2.56.220]=>[Kinetics FastPath2] Up: 1 day, 4:43:31
Interfaces: 1, Recv/Trans packets: 262874/39867 | IP: 31603/15805
snmpstatus also checks the operational status of all interfaces (ifOperStatus.*), and if it finds any that are not running, it will report
in a manner similar to this:
2 interfaces are down!
If the network entity has an error processing the request packet, an error packet will be returned and a message will be shown, helping to
pinpoint in what way the request was malformed. snmpstatus will attempt to reform its request to eliminate the malformed variable (unless
the -Cf option is given, see below), but this variable will then be missing from the displayed data.
OPTIONS
snmpstatus takes the common options described in the snmpcmd(1) manual page and also the -Cf option described in the snmpget(1) manual
page.
SEE ALSO
snmpcmd(1), snmpget(1)
4th Berkeley Distribution 08 Feb 2002 SNMPSTATUS(1)