On Nov 8, 2006, at 2:05 PM, Attila Fülöp wrote: > A Think Tank wrote: >> I am trying to go though the rescue procedures / preparation for >> Solaris, SunOS 5.10 Generic sun4u sparc SUNW,Sun-Fire-V240, as >> directed >> by the documentation. I have a couple of errors with the command >> /usr/local/src/bacula-rescue-1.8.6/solaris/getdiskinfo >> >> Error on if statement >> >> Begin collecting system info >> ./getdiskinfo: test: argument expected >> >> I changed the if syntax to read: >> - if [ -e /etc/fstab ]; then >> + if [ -r /etc/fstab ]; then >> for all instances of the -e expression and it seemed to work just >> fine. >> It identified that i have a vfstab file and read that. >> >> Error on route command. >> >> "route -n >route.bsi" >> error message >> usage: route [ -fnqv ] cmd [[ -<qualifers> ] args ] >> >> I am just not sure how to fix this, because I am not sure what the >> command is trying to gather. > > The routing table, this is a linux'ism. Use netstat -rn but be aware > that the output differs slightly. > > debian:~# route -n > Kernel IP routing table > Destination Gateway Genmask Flags Metric Ref > Use Iface > ..... > > solaris:~# netstat -rn > > Routing Table: IPv4 > Destination Gateway Flags Ref Use > Interface > -------------------- -------------------- ----- ----- ------ --------- > .....
netstat -rn also works on Linux (at least on my Debian and RH boxes), so perhaps the script should be changed to just use that. debftp1:~# netstat -rn Kernel IP routing table Destination Gateway Genmask Flags MSS Window irtt Iface 165.123.89.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 0.0.0.0 165.123.89.1 0.0.0.0 UG 0 0 0 eth0 debftp1:~# route -n Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 165.123.89.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 0.0.0.0 165.123.89.1 0.0.0.0 UG 0 0 0 eth0 Alex ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users