Re: [Leaf-user] Debug Script Available

2001-11-01 Thread David Douthitt

Robert Williams wrote:
 
 Thanks for the interest. I have now posted a new version that includes
cat /etc/hosts
cat /etc/resolv.conf
cat /etc/nsswitch.conf
 
 It will also ping the IPs in /etc/hosts and /etc/resolv.conf
 as well as INTERN_IP and  eth0_DEFAULT_GW

You might also want to go to the trouble of sanitizing the output for
posting to the list.  There may be passwords or private IP addresses in
the documentation.

As Matt mentioned, also make SURE the commands are there - Oxygen
stripped out several in order to make space (netstat, ifconfig, et al) -
and Eigerstein also supports only the command ip instead of ifconfig.

___
Leaf-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/leaf-user



Re: [Leaf-user] Debug Script Available

2001-11-01 Thread Robert Williams

Thanks!
That is exactly what I needed. I didn't however need the full 
functionality of your script but only to know if the app is there or 
not so I used:

app_test(){

x=`type $1`
   
case $x in
  *not found)
 return 1
 break ;;
  *)
 return 0
 break ;;
esac
}

My newest version of the debug script is posted at
http://home.pacbell.net/rcw1/lrp/debug/debug.html
http://home.pacbell.net/rcw1/lrp/files/debug-0.7.sh.txt

This includes a new functionality to purify the output of IP 
addresses for those who don't feel comfortable sending them to the 
list. I don't feel like leaving the ip address in is a security risk 
(is there something I don't know?) and I have been helped in finding 
typos by the list by sending them in. But, for those who feel 
uncomfortable with that kind of thing, the script will put in place 
holders instead of IPs for everything but some internal net ips. Let 
me know if it is helpful and as always input is welcome.
Robert Williams


You can also use the 'type' shell built-in to look for programs, but it's
output isn't in as convinent a form as the output of 'which' (which
convinently returns nothing if the program is not found).  Of course, you
could always cheat and make your own which from type and shell-script:

#!/bin/sh

x=`type $1`

case $x in
 *builtin)   ;;
 *not found)   ;;
 *)
 set -- $x
 eval echo \${$#}
 ;;
esac

Charles Steinkuehler
http://lrp.steinkuehler.net
http://c0wz.steinkuehler.net (lrp.c0wz.com mirror)



___
Leaf-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/leaf-user


___
Leaf-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/leaf-user



Re: [Leaf-user] Debug Script Available

2001-10-28 Thread Robert Williams

Thanks for the interest. I have now posted a new version that includes
   cat /etc/hosts
   cat /etc/resolv.conf
   cat /etc/nsswitch.conf

It will also ping the IPs in /etc/hosts and /etc/resolve/.conf
as well as INTERN_IP and  eth0_DEFAULT_GW

You cane get it at:
http://home.pacbell.net/rcw1/lrp/debug/debug.html



Robert Williams wrote:

  Hi all,

  I have written a shell script to automatically creates data useful in
  diagnosing LRP/LEAF problems.
[snip]
   http://home.pacbell.net/rcw1/lrp/debug/debug.html

  Enjoy, Robert Williams


I like it.  I was working on something similar,
but I went off topic :)

I'd suggest you have the script include

   cat /etc/hosts
   cat /etc/resolv.conf
   cat /etc/nsswitch.conf

and maybe write a couple of lines of code that
ping the network cards with the output perhaps,
and maybe then include arp -an.

Also you might want to code the commands into

   IPCHAINS = /sbin/ipchains
   CAT  = cat
   NETSTAT  = blah blah, and make it test for each command
  to be sure it's there.  Some of the commands
  are not available in Oxygen until you load
  their package (netstat, ipchains, ifconfig)...

Happy,
Matt

___
Leaf-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/leaf-user


___
Leaf-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/leaf-user



Re: [Leaf-user] Debug Script Available

2001-10-26 Thread Matthew Schalit

Robert Williams wrote:
 
 Hi all,
 
 I have written a shell script to automatically creates data useful in
 diagnosing LRP/LEAF problems.
[snip]
 http://home.pacbell.net/rcw1/lrp/debug/debug.html
 
 Enjoy, Robert Williams


I like it.  I was working on something similar,
but I went off topic :)

I'd suggest you have the script include

  cat /etc/hosts
  cat /etc/resolv.conf
  cat /etc/nsswitch.conf

and maybe write a couple of lines of code that
ping the network cards with the output perhaps,
and maybe then include arp -an.

Also you might want to code the commands into

  IPCHAINS = /sbin/ipchains
  CAT  = cat
  NETSTAT  = blah blah, and make it test for each command
 to be sure it's there.  Some of the commands
 are not available in Oxygen until you load
 their package (netstat, ipchains, ifconfig)...

Happy,
Matt

___
Leaf-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/leaf-user