Search Results

Search: Posts Made By: javygonx
Forum: Infrastructure Monitoring 07-01-2010
4,550
Posted By javygonx
Ok. Name of the function file "sn.sh" Code...
Ok. Name of the function file "sn.sh"

Code in the file "sn.sh":
##################
sn()
{
snmpget -c DreamTeam dal2-hr1 ifAlias.$1
}
##################

To call function: . sn.sh [ENTER]...
Forum: Infrastructure Monitoring 06-30-2010
4,550
Posted By javygonx
I got it. Thanks. I did the function and for some...
I got it. Thanks. I did the function and for some reason when I ran it it doesnt like it. It says "Too Many Arguments".... But when I did the script named "sn" and inside the file I wrote "snmpget -c...
Forum: Infrastructure Monitoring 06-30-2010
4,550
Posted By javygonx
Ok, and where did I put the variable $1. This...
Ok, and where did I put the variable $1. This variable its a numeric name; Could be any number between 1-1000?

I tried:

. sn.sh 227 -> No output is given
. sn 227.sh -> Error
Forum: Infrastructure Monitoring 06-30-2010
4,550
Posted By javygonx
Thanks for everything. I was able to create every...
Thanks for everything. I was able to create every single file for each snmp I have to run. Twelve files; but works great! All I have to do now its doing the "dal1 227" and done!...

What I was...
Forum: Infrastructure Monitoring 06-29-2010
4,550
Posted By javygonx
Wow!.. Interesting. I left at work but I will try...
Wow!.. Interesting. I left at work but I will try tomorrow!. Thanks a lot.
By the way, you said about a shell script. Let me explain something to see if I can make a better program than the aliases...
Forum: Infrastructure Monitoring 06-29-2010
4,550
Posted By javygonx
Hi again: Thanks for the info. But Im doing...
Hi again:
Thanks for the info. But Im doing something's wrong that its not working.
I create a "test.env" file. Did the chmod 755 test.env

Inside the file I wrote:
# cat sn
snmpget -c...
Forum: Infrastructure Monitoring 06-29-2010
4,550
Posted By javygonx
How to concatenate this simple line in Unix?
Hi:
I use the snmpget command everyday. And Im getting tire of writing the same line evertime I have to verify something.

Example of the line:

snmpget -c DreamTeam dal2-hr2 ifAlias.227

The...
Showing results 1 to 7 of 7

 
All times are GMT -4. The time now is 03:11 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy