i'm writing a shell script that will be run against several servers, but when i run the script, the most i get back from snmp is information that is simple.
the snmp in the script tells me if the box is linux or solaris. but it doesn't tell me the version number of the OS.
I'm missing something - the output you show does have kernel information - essentially the output of uname -a. This tells you a lot. You can teach your code what it means and decode it. How many server nodes in the network? A simple file or db tablewith nodenames, which you have to have anyway, with an extra set of fields can hold this infor.
For Linux & other UNIX, you seem to want the contents of a file like /etc/release, or whatever. The simplest way without writing a bunch of MIB C code is to use a direct ssh connection through a nothing-like account that can only see /etc/release (or whatever you deem necessary). Assuming that a version number is mission critical: Net-SNMP and 'what's up gold' among other snmp software offerings all provide for this - the scripted ssh connection kind of thing. As an example: WUG interfaces with IMacro so you can write expect-like scripts and get anything you want from a system, read-only, provided it doesn't violate security rules.
Also, I do not know of an OID speficied to do that. SysDescr is up to the OS implementer what gets returned AFAIK.
Even in Linux there is no simple approach to getting that information. Some Linux distributions "lie" about their release name. Some use lsb-release. The C code we use to determine OS and release information is a couple of hundred lines of code.
Suppose i have 3 different servers say x,y and z.
Im running some process say ABC and 40 instances for the same is being created.
In load sharing suppose on
server x, 20 instances are running
server y, 10 instances are running
server z, 10 instances are running.
While checking the... (1 Reply)
Hi, (i'm sorry for my english)
I'm a problem on boot sco unix 5.0.5 open server.
this stop at "Checking protected password and checking subsystem databases"
(See this image )
I'm try this:
1) http://www.digipedia.pl/usenet/thread/50/37093/#post37094
2) SCO: SCO Unix - Server hangs... (9 Replies)
I am trying to write a script that checks whether or not, a file exists on multiple servers.
My code / logic so far is:
#!/usr/bin/ksh
print "Enter File name to be checked"
read MYFILE
ssh server1 "
cd /var/opt/logs ;
if
then
... (4 Replies)
I am using perl 5.8.0.
I need to check some values to see it they are floats. Our system does not have Data::Types so I can't use is_float. Is there something else that I can use? The only thing in Data is Dump.pm. I am not allowed to download anything to our system so I have to use what I have.... (3 Replies)
Dear colleagues,
One of my friend have a problem with c code. While compiling a c program it displays a message like
"array type has incomplete element type". Any body can provide a solution for it.
Jaganadh.G (1 Reply)
Hello there,
i just want to know what are the different type of shells and the main difference betwee them. The problem is that if you try to search over the net you will find a lot of information and hence you will have no enough time to read all of them.....Anyone can help with this?? (1 Reply)