Working with Solaris Management Console

From Initq

Jump to: navigation, search

Run SMC remotely

We like to do our work remotely so here is an explanation on how to perform that. First find out the ip address of your solaris box.

-bash-3.00$ /sbin/ifconfig -a
lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
        inet 127.0.0.1 netmask ff000000
rge0: flags=1004843<UP,BROADCAST,RUNNING,MULTICAST,DHCP,IPv4> mtu 1500 index 2
        inet 192.168.1.2 netmask ffffff00 broadcast 192.168.1.255
rtls0: flags=1004843<UP,BROADCAST,RUNNING,MULTICAST,DHCP,IPv4> mtu 1500 index 3
        inet 192.168.1.4 netmask ffffff00 broadcast 192.168.1.255

Now when we go to our remote machine (192.168.1.20) and we ssh into our solaris box, but before we allow X clients to connect.

[lexiana@initq ~]$ xhost +
access control disabled, clients can connect from any host
[lexiana@initq ~]$ ssh -X 192.168.1.2 -l lexiana
Warning: Permanently added '192.168.1.2' (RSA) to the list of known hosts.
Password:
Last login: Wed Oct 14 19:59:09 2009 from 192.168.1.20
Could not chdir to home directory /home/lexiana: No such file or directory
/usr/openwin/bin/xauth:  error in locking authority file /home/lexiana/.Xauthority
Sun Microsystems Inc.   SunOS 5.10      Generic January 2005
-bash-3.00$ export DISPLAY=192.168.1.20:0.0
-bash-3.00$ echo $DISPLAY
192.168.1.20:0.0
-bash-3.00$ su root
Password:
# which smc
/usr/sbin/smc
# echo $DISPLAY
192.168.1.20:0.0
# smc
Personal tools