http://community.brocade.com/
lance-Schedule/ta-p/3063
I hope someone finds this useful.
ID NAME | STATUS | PATH | BRAND | IP |
global | running | / | native | shared |
moon | running | /export/zones/moon | native | shared |
cat "NB_CLT_7.5.0.4-tar-split.1of3" "NB_CLT_7.5.0.4-tar-split.2of3" "NB_CLT_7.5.0.4-tar-split.3of3" > "NB_CLT_7.5.0.4.tar"
# ssh root@server-ILOM
Are you sure you want to continue connecting (yes/no)? yes
Password:
-> cd SP/network
-> set pendingipaddress=10.1.0.10
-> set pendingipgatway=0.0.0.0
-> set pendingipnetmask=255.0.0.0
-> set pendingipdiscovery=static
-> set commitpending=true
-> show /SP/network
-> cd CMM/network
-> cd CH/BL#/SP/network
# ps -ef|grep vnc
rich 15137 14170 0 Nov 24 ? 0:00 vncconfig -iconic
rich 538 8833 0 Nov 24 ? 7:34 Xvnc :1 -desktop server:1 (rich) -auth /home/rich/.Xauthority -geometry 1900
# vncserver
After you run this command you will get a session ID number. For example the first user of VNC server will get session number 1. When you connect to the session from a remote computer you use the hostname:1. # vncpasswd
This sets the password for your account. # vncserver :3 -geometry 800x600 -http
# vncserver -kill :#
Replace # with the session number VNC gave you.
# vncviewer server1:1
man@earth> ssh moon ls -l /etc/resolve.conf
-rwxr-xr-x 1 root root 20 Oct 6 2011 /etc/resolv.conf
man@earth>
man@earth>for s in moon
> do
> ssh -q $s ls -l /etc/resolve.conf
> done
-rwxr-xr-x 1 root root 20 Oct 6 2011 /etc/resolv.conf
man@earth>
#!/bin/bash
servers="moon mars saturn"
for s in $servers
do
ssh -q $s uname -n
ssh -q $s ls -l /etc/resolve.conf
done
man@earth> bash check
moon
-rwxr-xr-x 1 root root 20 Oct 6 2011 /etc/resolv.conf
mars
-rwxr-xr-x 1 root root 20 Oct 6 2011 /etc/resolv.conf
saturn
-rwxr-xr-x 1 root root 20 Oct 6 2011 /etc/resolv.conf
man@earth
moon
mars
saturn
#!/bin/bash
for s in `cat servers`
do
ssh -q $s uname -n >> result
ssh -q $s ls -l /etc/resolve.conf >> result
done
rich@home# ssh -X remote
Can also use -Y instead of -X. This is more secure then the method described below. rich@home# xhost + remote
server2 being added to access control list
rich@home# echo $DISPLAY
:1.0
rich@home# ssh remote
rich@remote# export DISPLAY=home:1.0
At this point you can now forward your display. Export DISPLAY works with BASH and KSH. Use setenv DISPLAY for CSH. Take a note of the fact that this 2nd way of forwarding your display is insecure. root@earth> ifconfig [interface] x.x.x.x/x
root@earth> ifconfig [interface] plumb x.x.x.x/x up
root@earth> echo x.x.x.x/x > /etc/hostname.[interface]
root@earth> svcadm restart network/physical
root@earth> zonecfg -z moon
zonecfg:moon> select net address=x.x.x.x/x
zonecfg:moon:net> set address=x.x.x.x/x
zonecfg:moon:net> set physical=[interface]
zonecfg:moon:net> set defrouter=x.x.x.x/x
zonecfg:moon:net> end
zonecfg:moon> verify
zonecfg:moon> commit
zonecfg:moon> exit
root@earth> zonecfg:moon> remove address=x.x.x.x/x
zonecfg:moon> add net
zonecfg:moon:net> set address=x.x.x.x/x
zonecfg:moon:net> set physical=[interface]
zonecfg:moon:net> set defrouter=x.x.x.x/x
zonecfg:moon:net> end
root@earth> zoneadm -z moon reboot
root@earth> zoneadm list -cv
ID NAME STATUS PATH BRAND IP
global running / native shared
moon running /export/zones/moon native shared