On Mon, 2009-06-01 at 09:13 -0700, Lemseffer. Tahar (MSA) wrote: > I'm at a loss about why this snmpget in a simple script that loops over > all the device name is not working . > I changed csh to ksh > I checked and I know the snmpget is installed.
The script you posted is not valid ksh either. How much shell scripting have you done before? You seem to be trying to run before you can walk. That, or your attention to detail is dangerously poor. Until these core problem are sorted out, you're in for a world of pain. Break your script down to the basics. Does the line you think is setting a variable actually set the variable? Does the line the you think is capturing the output of a command actually capture output? Put in a buch of echo statement to check the contents of your variables as they get set and changed. Most error message mean exactly what they say. Assuming the error message is coming from snmpget, ask yourself: What is snmpget looking for that it can't find? -- "XML is like violence: if it doesn't solve your problem, you aren't using enough of it." - Chris Maden -------------------- BYU Unix Users Group http://uug.byu.edu/ The opinions expressed in this message are the responsibility of their author. They are not endorsed by BYU, the BYU CS Department or BYU-UUG. ___________________________________________________________________ List Info (unsubscribe here): http://uug.byu.edu/mailman/listinfo/uug-list
