Solaris

Entries from July 2006

 

Well, i didn't know that rstatd can be used to obtain a remote's server performance counters....

It is usually disabled for security purposes.

Just make sure it is configured at /etc/inetd.conf, by uncommenting the proper line

bash-2.05# grep rstat /etc/services

bash-2.05# grep rstat /etc/inetd.conf

rstatd/2-4 tli rpc/datagram_v wait root /usr/lib/netsvc/rstat/rpc.rstatd rpc.rstatd

Then restart inetd

bash-2.05# ps -ef | grep inetd
root 355 1 0 Apr 26 ? 0:00 /usr/sbin/inetd -s -t
bash-2.05# kill -HUP 355

It will be running

bash-2.05# ps -ef | grep rstat
root 23620 23616 0 18:01:48 pts/1 0:00 grep rstat
root 21694 355 0 17:39:37 ? 0:01 rpc.rstatd


You can use a fine rstatd client called java perfmeter: http://jperfmeter.sourceforge.net/


If you have CDE you can use sdtperfmeter

bash-3.00$ /usr/dt/bin/sdtperfmeter othermachine

If you have gnome, you might as well use gnome-perfmeter

# gnome-perfmeter othermachine




You might get a problem when using a gnome session on Solaris with vnc where keyboard is unresponsive....

According to http://sunsolve.sun.com/search/document.do?assetkey=1-9-81175-1  :

To work around this issue, touch the following file:

/etc/gconf/gconf.xml.defaults/apps/gnome_settings_daemon/keybindings/%gconf.xml

and edit the file with:

<?xml version="1.0"?>

<gconf>

<entry name="volume_up" mtime="1110896708" type="string">

<stringvalue></stringvalue>

</entry>

<entry name="volume_mute" mtime="1110896705" type="string">

<stringvalue></stringvalue>

</entry>

<entry name="volume_down" mtime="1110896702" type="string">

<stringvalue></stringvalue>

</entry>

<entry name="help" mtime="1110896698" type="string">

<stringvalue></stringvalue>

</entry>

</gconf>

Then just stop and start your vnc server


This is only how the install looks on solaris 9, not much options. It looks as it can be used only on qfe, ce and ge interfaces. We'll later see how to configure it

bash-2.05# pwd

/tmp/SUNTRUNKING/suntrunking

bash-2.05# ls

Copyright     FR_Copyright  README        Solaris_8     install


Docs          License       Solaris_7     Solaris_9     remove


bash-2.05# ./install



Sun Trunking 1.3 Utility Installation.

Copyright 2003 Sun Microsystems, Inc.  All rights reserved.
Use is subject to license terms.

** Checking for existing Sun Trunking 1.3 Utility packages...

**
Checking for supporting Ethernet drivers and patches...

This script is about to take the following actions:
- Install Sun Trunking 1.3 Utility packages.
- Install Vlan Ethernet Utility: 114600-02 required patch(es).
- Install Gigabit Ethernet: 113361-06 required patch(es).



Press return to continue, or 'Q' followed by a return to quit:


** Installing patch 114600-02 for Solaris 9...

Checking installed patches...
Verifying sufficient filesystem capacity (dry run method)...
Installing patch packages...

Patch number 114600-02 has been successfully installed.
See /var/sadm/patch/114600-02/log for details

Patch packages installed:
  SUNWvld
  SUNWvldu
  SUNWvldx


**
Installing patch 113361-06 for Solaris 9...

Checking installed patches...
This patch is obsoleted by patch 112233-12 which has already
been applied to this system.

Patchadd is terminating.

** Installing Sun Trunking 1.3 Utility packages...
Copyright 2003 Sun Microsystems, Inc.  All rights reserved.
Use is subject to license terms.
==================================================================
Please modify /etc/opt/SUNWconn/bin/nettr.sh to set up trunking configuration.
Please create /etc/hostname.qfeN entries for QFE trunk heads.
Please create /etc/hostname.geN entries for GEM trunk heads.
Please create /etc/hostname.ceN entries for CE trunk heads.
Reboot your system.

==================================================================

Installation of <SUNWtrku> was successful.
Copyright 2003 Sun Microsystems, Inc.  All rights reserved.
Use is subject to license terms.

Installation of <SUNWtrkm> was successful.
**
Done.
A log of this Install can be found at:
    /var/tmp/Trunking.install.2006.07.25





if you're bad at transforming hex to dec or viceversa

http://www.softwareeffect.com/tools/netmask.html


- rdircio



If your vold is fsck'ed up:

# mount -F hsfs -o nomaplcase,ro /dev/sr0 /CDROM

Thanks to Hiram Ruiz

- rdircio




  1. Solaris 2.6 / 7
    1. /usr/bin/truss /usr/bin/date 2>&1 | /usr/bin/awk '/^time/ {print $NF}'

  2. Solaris 8 / 9 / 10
    1. /usr/bin/perl -e 'printf "%d\n", time;'





(Page 1 of 2, totaling 7 entries)   next page »
View as PDF: Category Solaris | This month | Full blog