to update old BE to S11u1b1_xb12
Brief:
bash-4.1$ bash
bash-4.1$ su
Password:
# ping jdstest27
jdstest27 is alive
# ssh -l work jdstest27
Password:
Last login: Wed Mar 14 18:23:13 2012 from freekick.cn.ora
Oracle Corporation SunOS 5.11 11.1 March 2012
work@jdstest27:~$ bash
work@jdstest27:~$ beadm list
BE Active Mountpoint Space Policy Created
-- ------ ---------- ----- ------ -------
s11u1_11 NR / 7.57G static 2012-03-14 14:38
s11u1_11-backup-1 - - 63.0K static 2012-03-14 15:39
work@jdstest27:~$ uname -m
sun4v
work@jdstest27:~$ cd /ws
work@jdstest27:/ws$ cd opg-lab-tools/addclient.pl
bash: cd: opg-lab-tools/addclient.pl: Not a directory
work@jdstest27:/ws$ cd opg-lab-tools
work@jdstest27:/ws/opg-lab-tools$ ls
//to get the mac of jdstest27,can use keyboard :stop+a,then input:banner
==================================================
bash-4.1$ bash
bash-4.1$ su
Password:
# ssh -l work jdstest27
Password:
Last login: Wed Mar 14 18:14:23 2012 from freekick.cn.ora
Oracle Corporation SunOS 5.11 11.1 March 2012
work@jdstest27:~$ ifconfig
usage: ifconfig <interface> | -a[ 4 | 6 | D ][ u | d ][ Z ]
[ <addr_family> ]
[ <address>[/<prefix_length>] [ <dest_address> ] ]
[ set [ <address>][/<prefix_length>] ] [ <address>/<prefix_length>] ]
[ destination <dest_address> ]
[ addif <address>[/<prefix_length>] [ <dest_address> ] ]
[ removeif <address>[/<prefix_length>] ]
[ arp | -arp ]
[ auto-revarp ]
[ broadcast <broad_addr> ]
[ index <if_index> ]
[ metric <n> ] [ mtu <n> ]
[ netmask <mask> ]
[ plumb ] [ unplumb ]
[ preferred | -preferred ]
[ private | -private ]
[ local | -local ]
[ router | -router ]
[ subnet <subnet_address>]
[ trailers | -trailers ]
[ token <address>/<prefix_length> ]
[ tsrc <tunnel_src_address> ]
[ tdst <tunnel_dest_address> ]
[ auth_algs <tunnel_AH_authentication_algorithm> ]
[ encr_algs <tunnel_ESP_encryption_algorithm> ]
[ encr_auth_algs <tunnel_ESP_authentication_algorithm> ]
[ up ] [ down ]
[ xmit | -xmit ]
[ modlist ]
[ modinsert <module_name@position> ]
[ modremove <module_name@position> ]
[ ipmp ]
[ group <groupname>] | [ group ""]
[ deprecated | -deprecated ]
[ standby | -standby ]
[ failover | -failover ]
[ zone <zonename> | -zone ]
[ usesrc <interface> ]
[ all-zones ]
or
ifconfig <interface> | -a[ 4 | 6 | D ] [ u | d ]
auto-dhcp | dhcp
[ wait <time> | forever ]
[ primary ]
start | drop | ping | release | status | inform
work@jdstest27:~$ ifconfig -a
lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
inet 127.0.0.1 netmask ff000000
net0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
inet 10.113.195.182 netmask ffffff00 broadcast 10.113.195.255
lo0: flags=2002000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv6,VIRTUAL> mtu 8252 index 1
inet6 ::1/128
net0: flags=20002000840<RUNNING,MULTICAST,IPv6> mtu 1500 index 2
inet6 ::/0
work@jdstest27:~$ ifconfig -e
ifconfig: illegal option -- e
usage: ifconfig <interface> | -a[ 4 | 6 | D ][ u | d ][ Z ]
[ <addr_family> ]
[ <address>[/<prefix_length>] [ <dest_address> ] ]
[ set [ <address>][/<prefix_length>] ] [ <address>/<prefix_length>] ]
[ destination <dest_address> ]
[ addif <address>[/<prefix_length>] [ <dest_address> ] ]
[ removeif <address>[/<prefix_length>] ]
[ arp | -arp ]
[ auto-revarp ]
[ broadcast <broad_addr> ]
[ index <if_index> ]
[ metric <n> ] [ mtu <n> ]
[ netmask <mask> ]
[ plumb ] [ unplumb ]
[ preferred | -preferred ]
[ private | -private ]
[ local | -local ]
[ router | -router ]
[ subnet <subnet_address>]
[ trailers | -trailers ]
[ token <address>/<prefix_length> ]
[ tsrc <tunnel_src_address> ]
[ tdst <tunnel_dest_address> ]
[ auth_algs <tunnel_AH_authentication_algorithm> ]
[ encr_algs <tunnel_ESP_encryption_algorithm> ]
[ encr_auth_algs <tunnel_ESP_authentication_algorithm> ]
[ up ] [ down ]
[ xmit | -xmit ]
[ modlist ]
[ modinsert <module_name@position> ]
[ modremove <module_name@position> ]
[ ipmp ]
[ group <groupname>] | [ group ""]
[ deprecated | -deprecated ]
[ standby | -standby ]
[ failover | -failover ]
[ zone <zonename> | -zone ]
[ usesrc <interface> ]
[ all-zones ]
or
ifconfig <interface> | -a[ 4 | 6 | D ] [ u | d ]
auto-dhcp | dhcp
[ wait <time> | forever ]
[ primary ]
start | drop | ping | release | status | inform
work@jdstest27:~$ ifconfig -d
ifconfig: -d: no such interface
work@jdstest27:~$ dhcp
-bash: dhcp: command not found
work@jdstest27:~$ auto-dhcp
-bash: auto-dhcp: command not found
work@jdstest27:~$ ifconfig -dhcp
ifconfig: illegal option -- h
usage: ifconfig <interface> | -a[ 4 | 6 | D ][ u | d ][ Z ]
[ <addr_family> ]
[ <address>[/<prefix_length>] [ <dest_address> ] ]
[ set [ <address>][/<prefix_length>] ] [ <address>/<prefix_length>] ]
[ destination <dest_address> ]
[ addif <address>[/<prefix_length>] [ <dest_address> ] ]
[ removeif <address>[/<prefix_length>] ]
[ arp | -arp ]
[ auto-revarp ]
[ broadcast <broad_addr> ]
[ index <if_index> ]
[ metric <n> ] [ mtu <n> ]
[ netmask <mask> ]
[ plumb ] [ unplumb ]
[ preferred | -preferred ]
[ private | -private ]
[ local | -local ]
[ router | -router ]
[ subnet <subnet_address>]
[ trailers | -trailers ]
[ token <address>/<prefix_length> ]
[ tsrc <tunnel_src_address> ]
[ tdst <tunnel_dest_address> ]
[ auth_algs <tunnel_AH_authentication_algorithm> ]
[ encr_algs <tunnel_ESP_encryption_algorithm> ]
[ encr_auth_algs <tunnel_ESP_authentication_algorithm> ]
[ up ] [ down ]
[ xmit | -xmit ]
[ modlist ]
[ modinsert <module_name@position> ]
[ modremove <module_name@position> ]
[ ipmp ]
[ group <groupname>] | [ group ""]
[ deprecated | -deprecated ]
[ standby | -standby ]
[ failover | -failover ]
[ zone <zonename> | -zone ]
[ usesrc <interface> ]
[ all-zones ]
or
ifconfig <interface> | -a[ 4 | 6 | D ] [ u | d ]
auto-dhcp | dhcp
[ wait <time> | forever ]
[ primary ]
start | drop | ping | release | status | inform
work@jdstest27:~$ dhcp
-bash: dhcp: command not found
work@jdstest27:~$ finger
Login Name TTY Idle When Where
work ??? pts/4 Wed 18:23 freekick.cn.oracle.c
work ??? pts/3 4 Wed 18:14 freekick.cn.oracle.c
work ??? pts/1 20 Wed 17:58 freekick.cn.oracle.c
work ??? pts/2 24 Wed 18:01 freekick.cn.oracle.c
work@jdstest27:~$ mac
Usage:
mac -l
mac [-v] -a <algorithm> [-k <keyfile> | -K <keylabel> [-T <tokenspec>]] [file...]
work@jdstest27:~$ mac -l
Algorithm Keysize: Min Max (bits)
------------------------------------------
des_mac 64 64
sha1_hmac 8 512
md5_hmac 8 512
sha224_hmac 8 512
sha256_hmac 8 512
work@jdstest27:~$ showmac
-bash: showmac: command not found
work@jdstest27:~$ stop+a
-bash: stop+a: command not found
work@jdstest27:~$ sync
work@jdstest27:~$ banner
Usage: banner "up to 10 char arg string" . . .
work@jdstest27:~$ uname -m
sun4v
work@jdstest27:~$ bash
work@jdstest27:~$ cd/ws
bash: cd/ws: No such file or directory
work@jdstest27:~$ /ws/opg-lab-tools/addclient.pl
USAGE: /ws/opg-lab-tools/addclient.pl [ options ] <client> <solaris_release> <architecture>
USAGE: /ws/opg-lab-tools/addclient.pl [ options ] -d <client>
USAGE: /ws/opg-lab-tools/addclient.pl [ options ] -r <client>
USAGE: /ws/opg-lab-tools/addclient.pl [ options ] -D <dhcp macro> <client>
work@jdstest27:~$ /ws/opg-lab-tools/addclient.pl -l
Unknown option: l
USAGE: /ws/opg-lab-tools/addclient.pl [ options ] <client> <solaris_release> <architecture>
USAGE: /ws/opg-lab-tools/addclient.pl [ options ] -d <client>
USAGE: /ws/opg-lab-tools/addclient.pl [ options ] -r <client>
USAGE: /ws/opg-lab-tools/addclient.pl [ options ] -D <dhcp macro> <client>
work@jdstest27:~$ addclient.pl -b 11 -o -e 0:14:4f:e:6c:e jdstest27 s11u1_11 sun4v
bash: addclient.pl: command not found
work@jdstest27:~$ ls -
-: No such file or directory
work@jdstest27:~$
work@jdstest27:~$
work@jdstest27:~$
work@jdstest27:~$
work@jdstest27:~$ ls -R
.:
Desktop Downloads local.login Public
Documents local.cshrc local.profile
./Desktop:
addmoresoftware.desktop os-next-steps.desktop
./Documents:
Music Pictures Templates Videos
./Documents/Music:
./Documents/Pictures:
./Documents/Templates:
./Documents/Videos:
./Downloads:
./Public:
work@jdstest27:~$ ls -i
23 Desktop 8 local.cshrc 16 Public
18 Documents 10 local.login
17 Downloads 12 local.profile
work@jdstest27:~$ pwd
/export/home/work
work@jdstest27:~$ cd /ws
work@jdstest27:/ws$ cd opg-lab-tools/addclient.pl
bash: cd: opg-lab-tools/addclient.pl: Not a directory
work@jdstest27:/ws$ /ws/opg-lab-tools/addclient.pl
USAGE: /ws/opg-lab-tools/addclient.pl [ options ] <client> <solaris_release> <architecture>
USAGE: /ws/opg-lab-tools/addclient.pl [ options ] -d <client>
USAGE: /ws/opg-lab-tools/addclient.pl [ options ] -r <client>
USAGE: /ws/opg-lab-tools/addclient.pl [ options ] -D <dhcp macro> <client>
work@jdstest27:/ws$ opg-lab-tools/addclient.pl
USAGE: opg-lab-tools/addclient.pl [ options ] <client> <solaris_release> <architecture>
USAGE: opg-lab-tools/addclient.pl [ options ] -d <client>
USAGE: opg-lab-tools/addclient.pl [ options ] -r <client>
USAGE: opg-lab-tools/addclient.pl [ options ] -D <dhcp macro> <client>
work@jdstest27:/ws$ cd opg-lab-tools
work@jdstest27:/ws/opg-lab-tools$ ls -al addclient.pl
-rwxr-xr-x 1 limzhou sclabs 21417 Feb 6 11:35 addclient.pl
work@jdstest27:/ws/opg-lab-tools$ ls -al
total 381
drwxrwxr-x 7 root sclabs 17 Mar 9 10:26 .
dr-xr-xr-x 2 root root 2 Mar 14 16:18 ..
drwsrwsr-x 4 dterveer staff 13 Jan 4 10:35 .hg
-rwxr-xr-x 1 limzhou sclabs 21417 Feb 6 11:35 addclient.pl
-r-xr-xr-x 1 41859 staff 21577 Sep 30 22:49 addclient.pl.20111212
-r-xr-xr-x 1 limzhou staff 21381 Feb 6 10:31 addclient.pl.20120206
-rwxr-xr-x 1 limzhou staff 22679 Mar 9 10:26 addclient.pl.uefi
-rwxr-xr-x 1 sahori staff 9945 Jan 4 11:20 connect
-rwxr-xr-x 1 sahori staff 87012 Oct 7 09:33 console.i386
-rwxr-xr-x 1 sahori staff 78888 Jan 4 09:44 console.sparc
drwxr-xr-x 2 sahori staff 47 Mar 14 2012 data
drwxr-xr-x 2 limzhou staff 10 Dec 27 15:01 etc
drwxr-xr-x 5 limzhou staff 12 Oct 5 05:47 manifests
-rwxr-xr-x 1 sahori staff 12633 Oct 7 09:34 ntskill
-rwxr-xr-x 1 sahori staff 12633 Oct 7 09:35 ntstip
-rwxr-xr-x 1 sahori staff 1494 Oct 7 09:30 powerstat
drwxr-xr-x 2 limzhou staff 3 Oct 5 05:48 scprofiles
work@jdstest27:/ws/opg-lab-tools$ ls
addclient.pl console.i386 ntskill
addclient.pl.20111212 console.sparc ntstip
addclient.pl.20120206 data powerstat
addclient.pl.uefi etc scprofiles
connect manifests
work@jdstest27:/ws/opg-lab-tools$ cd /appclient.pl
bash: cd: /appclient.pl: No such file or directory
work@jdstest27:/ws/opg-lab-tools$ appclient.pl -b 11-o -e 0:14:4f:e:6c:e jdstest27 s11u1_11 sun4v
bash: appclient.pl: command not found
work@jdstest27:/ws/opg-lab-tools$ appclient.pl -b 11-o -e 0:14:4f:e:6c:e jdstest27 s11u1 sun4v
bash: appclient.pl: command not found
work@jdstest27:/ws/opg-lab-tools$ appclient.pl -b 11 -o -e 0:14:4f:e:6c:e jdstest27 s11u1_1 sun4v
bash: appclient.pl: command not found
work@jdstest27:/ws/opg-lab-tools$ appclient.pl -b 11 -e 0:14:4f:e:6c:e jdstest27 s11u1_1 sun4v
bash: appclient.pl: command not found
work@jdstest27:/ws/opg-lab-tools$
参考文献:
进入OK模式-http://yangzhongfei.blog.163.com/blog/static/46109875201067103245678/
查找MAC地址-http://bbs.chinaunix.net/thread-196187-1-1.html
OK模式下命令-http://apps.hi.baidu.com/share/detail/302926
Solaris 下基本命令-http://baike.baidu.com/view/3186438.html