A quick way to see what type of hardware is installed on a solaris machine is to use the prtdiag command. It may be located in your path, or it may be located in /usr/platform/$ARCH/sbin.
prtdiag
or
/usr/platform/`uname -i`/sbin/prtdiag
A quick way to see what type of hardware is installed on a solaris machine is to use the prtdiag command. It may be located in your path, or it may be located in /usr/platform/$ARCH/sbin.
prtdiag
or
/usr/platform/`uname -i`/sbin/prtdiag
While I have a good monitoring system setup, some of my nodes can’t be monitored and require manual checkups. To speed things up, I use a little bash script to log into each host and check a few things out. This snippit below walks through each host in my host file and prints out file systems that are at greater then 90% utilization.
for i in `cat /etc/hosts | grep -v localhost | awk {‘print $3′}`; do
echo $i;
ssh $i “df -k | sed 1d | awk ‘\$5>90 {print}’”;
done
I won’t go into the details of what inodes are and why they are important, but when you run out of them, you can have all of the free disk space in the world and not be able to do a darn thing with it. An easy way to see how many inodes are being used on a linux system is with the df command
df -i
This will show you the number of inodes allocated to a file system and the number that are free. Likewise in solaris, the command is df but you use a different option to get the same information.
df -o i
When you need to get ip address information from a windows machine, the quickest way is to use the ipconfig command from a command prompt. Go to start, then run and type
cmd
then run
ipconfig /all
will give you most of the information you’ll need to figure out how the network stack is configured on a windows machine including the hostname, IP, dns servers, netmask, etc.
The easiest way to see what channels your wireless card can use comes from the iwlist command.
iwlist $DEV channel
Where $DEV is your wireless device (wlan0 for me). If you’re card can only do 802.11b, you will most likely just see channels 1-11. The last entry is the current channel that your card is on, if it is on one.