Lines Matching +full:channel +full:- +full:use

5 # Redistribution and use in source and binary forms, with or without
23 # PARTICULAR PURPOSE OR NON-INFRINGEMENT, ARE HEREBY EXCLUDED.
30 # LIABILITY, ARISING OUT OF THE USE OF OR INABILITY TO USE THIS SOFTWARE,
35 # It may work with other setups as long as you use the correct channel
39 # If the wrong channel is used you could lose network access to the
41 # with the wrong MAC address. You will need to use a console or
47 usage: $0 -c <chan> -i <interface> [options]
48 $0 -c <chan> [-v|w|x|y|z address] [options]
50 -c channel Which BMC channel to configure [-c help for more info]
51 -i interface Auto-configure BMC based on interface network settings
52 -v address Use specified IP address
53 -w address Use specified Netmask address
54 -x address Use specified MAC address
55 -y address Use specified Gateway IP address
56 -z address Use specified Gateway MAC address
57 -m interface Which IPMI interface to use [default linux=open solaris=lipmi]
58 -p password Set BMC channel password
59 -s string Set SNMP community string
60 -a interval Set Gratuitous ARP interval, off=0, default=4
61 -r Reset BMC channel, zero all network settings, disable
62 -d Debug mode, does not make any changes
70 Sun Fire V60x and V65x - Linux 2.4
71 eth0 = channel 6, top
72 eth1 = channel 7, bottom
74 Sun Fire V60x and V65x - Linux 2.6
75 eth0 = channel 7, bottom
76 eth1 = channel 6, top
78 Sun Fire V60x and V65x - Solaris x86
79 e1000g0 = channel 7, bottom
80 e1000g1 = channel 6, top
82 Sun LX50 - Linux
83 eth0 = channel 7, bottom
84 eth1 = channel 6, top
86 Sun LX50 - Solaris x86
87 le0 = channel 7, bottom
88 le1 = channel 6, top
90 Sun Fire V20z (-i option does not apply)
91 channel 1
98 test $# -ge 1 || return;
101 H1=`echo $HEX | cut -c1-2`
102 H2=`echo $HEX | cut -c3-4`
103 H3=`echo $HEX | cut -c5-6`
104 H4=`echo $HEX | cut -c7-8`
114 [ $# -lt 1 ] && return
117 [ $# -ge 2 ] && VALUE=$2
119 if [ $DEBUG -gt 0 ]; then
121 echo "$IPMITOOL -I $IPMIINTF lan set $CHANNEL $PARAM $VALUE"
125 $IPMITOOL -I $IPMIINTF lan set $CHANNEL $PARAM $VALUE
146 CHANNEL=0
153 case `uname -s` in
178 c) CHANNEL=$OPTARG ; test X$CHANNEL = Xhelp && channel_usage ;;
191 *) echo "Ignoring invalid option : -$OPTARG" ;;
195 if [ ! -x `which $IPMITOOL` ]; then
200 if [ $CHANNEL -eq 0 ]; then
202 echo "Error: you must specify a channel with -c"
214 echo "Auto-configuring $IFACE (channel $CHANNEL)"
217 case `uname -s` in
231 GATEWAY_IP=`$ROUTE -n get default | grep gateway: | awk '{print $2}'`
234 $PING -i $IFACE $GATEWAY_IP 1 >/dev/null 2>&1
246 IP_ADDRESS=`$IFCONFIG $IFACE | grep "inet addr" | awk -F"[:[:space:]]+" '{print $4}'`
249 IP_NETMASK=`$IFCONFIG $IFACE | grep Bcast | awk -F"[:[:space:]]+" '{print $8}'`
255 GATEWAY_IP=`$ROUTE -n | awk '/^0.0.0.0/ {print $2}'`
258 $PING -q -c1 $GATEWAY_IP >/dev/null 2>&1
259 GATEWAY_MAC=`$ARP -an | grep "$GATEWAY_IP[^0-9]" | awk '{print $4}'`
294 if [ "$GRATARP" -ne 0 ]; then
301 echo "Setting channel authentication capabilities"
304 echo "Enabling channel $CHANNEL"