From: "T.J. Yang" <tj_yang at hotmail.com> Reply-To: hobbit at hswn.dk To: hobbit at hswn.dk Subject: [hobbit] Solaris 2.6 hobbitclient-sunos.sh issue Date: Wed, 29 Nov 2006 23:26:58 -0600
problem in log file root at sol2.6> tail -2 hobbitclient.log inet6: unknown address family. /opt/hobbitc/bin/hobbitclient-sunos.sh: /usr/bin/kstat: not found root at sol2.6>
verfication of issue root at sol2.6> uname -a SunOS sol2.6 5.6 Generic_105181-39 sun4u sparc SUNW,Ultra-5_10 root at sol2.6> netstat -na -f inet6 -P tcp | tail +5 inet6: unknown address family. root at sol2.6>
root at sol2.6> /usr/bin/kstat -p -s '[or]bytes64' | sort bash: /usr/bin/kstat: No such file or directory root at sol2.6>
[root:sol2.9] /usr/bin/kstat -p -s '[or]bytes64' | sort bge:0:bge0:obytes64 410860433107 bge:0:bge0:rbytes64 59620378072 <snip>
- following codes in hobbitclient-sunos.sh for solaris 2.6 need to be fixed.
<snip> echo "[ports]" netstat -na -f inet -P tcp | tail +3 netstat -na -f inet6 -P tcp | tail +5 echo "[ifstat]" /usr/bin/kstat -p -s '[or]bytes64' | sort <snip>
Impact ? Looks I am missing network trending graph on sol 2.6
Solutions 5.1 work around of /usr/bin/kstat since 2.6 has no kstat ?
Followings looks like a promising solution,
root at sol2.6> netstat -i Name Mtu Net/Dest Address Ipkts Ierrs Opkts Oerrs Collis Queue lo0 8232 loopback localhost 563 0 563 0 0 0 hme0 1500 sol2.6 sol2.6 133418687 0 4871868 45896 3285 0 root at sol2.6> netstat -i |tail -1 hme0 1500 sol2.6 sol2.6 133418751 0 4871901 45896 3285 0 root at sol2.6> netstat -i |tail -1 | awk '{print $5,$7}' 133418774 4871913 root at sol2.6>
Henrik, what is your comment ?
5.2 I am thinkg of just delete this line "netstat -na -f inet6 -P tcp | tail +5", since ipv6 is supported on solaris 2.6.
T.J. Yang
From: "T.J. Yang" <tj_yang at hotmail.com> Reply-To: hobbit at hswn.dk To: hobbit at hswn.dk Subject: RE: [hobbit] HP-UX 10.20 hobbitclient-hpux.sh issue Date: Wed, 29 Nov 2006 23:00:58 -0600
T.J. Yang
From: "T.J. Yang" <tj_yang at hotmail.com> Reply-To: hobbit at hswn.dk To: hobbit at hswn.dk Subject: [hobbit] HP-UX 10.20 hobbitclient-hpux.sh issue Date: Wed, 29 Nov 2006 22:48:41 -0600
- following ps command works on hp-ux 11.11 but not on hpux 10.20 root at test> grep UNIX95 hobbitclient-hp-ux.sh UNIX95=1 ps -Ax -o pid,ppid,user,stime,state,pri,pcpu,time,vsz,args root at test>
Henrik, can you verify following change for hpux 10.20, there is no "x"(extented) option of ps on 10.20. instead I use "l" option instead.
the output of columns order looks the same on both 10.20 and 11.11.Please include this one character change if you confirm the fix
root at test> ps -Al -o pid,ppid,user,stime,state,pri,pcpu,time,vsz,args PID PPID USER STIME S PRI %CPU TIME VSZ COMMAND 0 0 root Oct 20 S 128 0 00:00:03 0 swapper 1 0 root Oct 20 S 168 0 00:00:24 344 init 2 0 root Oct 20 S 128 0 00:00:02 0 vhand 3 0 root Oct 20 S 128 0 00:09:47 0 statdaemon 4 0 root Oct 20 S 128 0 00:01:55 0 unhashdaemon 7 0 root Oct 20 S 31 0 00:00:00 0 ttisr <snip>
root at hp11.11> UNIX95=1 ps -Ax -o pid,ppid,user,stime,state,pri,pcpu,time,vsz,args PID PPID USER STIME S PRI %CPU TIME VSZ COMMAND 0 0 root Apr 17 S 127 0.02 05:14 0 swapper 8 0 root Apr 17 S 100 0.02 00:00 0 supsched 9 0 root Apr 17 S 100 0.00 00:00 0 strmem 10 0 root Apr 17 S 100 0.00 00:00 0 strweld 11 0 root Apr 17 S 100 0.00 00:00 0 strfreebd 2 0 root Apr 17 S 128 0.02 06:58 0 vhand 3 0 root Apr 17 S 128 0.02 19:21 0 statdaemon
- Here is the checking on a hp-ux 10.20. root at test> UNIX95=1 ps -Ax -o pid,ppid,user,stime,state,pri,pcpu,time,vsz,args root at test> echo $UNIX95 1 root at test> ps -Ax -o pid,ppid,user,stime,state,pri,pcpu,time,vsz,args
ps: illegal option -- x usage: ps [-aAcdefHjlOPX] [-C cmdlist] [-g sidlist] [-G gidlist] [-n namelist] [-o format] [-p proclist] [-R prmgrplist] [-s sidlist] [-t termlist] [-u uidlist] [-U uidlist] root at test> uname -a HP-UX test B.10.20 A 9000/785 2002377375 two-user license root at test> UNIX95=1 ps -Ax -o pid,ppid,user,stime,state,pri,pcpu,time,vsz,args ps: illegal option -- x usage: ps [-aAcdefHjlOPX] [-C cmdlist] [-g sidlist] [-G gidlist] [-n namelist] [-o format] [-p proclist] [-R prmgrplist] [-s sidlist] [-t termlist] [-u uidlist] [-U uidlist] root at test>T.J. Yang
Stay up-to-date with your friends through the Windows Live Spaces friends list. http://clk.atdmt.com/MSN/go/msnnkwsp0070000001msn/direct/01/?href=http://spa...
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
Fixing up the home? Live Search can help http://imagine-windowslive.com/search/kits/default.aspx?kit=improve&locale=e...
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
Share your latest news with your friends with the Windows Live Spaces friends module. http://clk.atdmt.com/MSN/go/msnnkwsp0070000001msn/direct/01/?href=http://spa...
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
Stay up-to-date with your friends through the Windows Live Spaces friends list. http://clk.atdmt.com/MSN/go/msnnkwsp0070000001msn/direct/01/?href=http://spa...