From: Arun Pal (arunkpal@yahoo.com)
Date: Mon Jun 26 2006 - 07:38:39 EDT
Hi Message 3:
Tracking for Tcp/ip connection did not need any third party tools. only you need to start the inetd deamon with -t option in the file /etc/init.d/netsvc.
For ant thing further contact me...
Arun
sunmanagers-request@sunmanagers.org wrote:
Send sunmanagers mailing list submissions to
sunmanagers@sunmanagers.org
To subscribe or unsubscribe via the World Wide Web, visit
http://www.sunmanagers.org/mailman/listinfo/sunmanagers
or, via email, send a message with subject or body 'help' to
sunmanagers-request@sunmanagers.org
You can reach the person managing the list at
sunmanagers-owner@sunmanagers.org
When replying, please edit your Subject line so it is more specific
than "Re: Contents of sunmanagers digest..."
Today's Topics:
1. SUMMARY: Debugging option (Robert K)
2. SUMMARY: One More Zone Question for Solaris 10 (Langston, Jim)
3. Tcp/ip connections logging (Shiva Nagaraj)
4. moving metavolumes to larger drives (Paveza, Gary)
5. IMPORTANT: Read this before posting to Sun-Managers (John DiMarco)
6. devfsadm and 24 device links (Paul Hunter)
7. Only accept ssh from root (Warren Liang)
8. maximum free space that is available for a soft partition
extension ?. (Kumaresh P Nataraj)
9. Sun-servers not seeing SAN-connected disks (NKS)
10. Baseline Performance Benchmark (Twaijiri, Ahmed F)
----------------------------------------------------------------------
Message: 1
Date: Fri, 23 Jun 2006 10:58:56 -0400 (EDT)
From: Robert K
Subject: SUMMARY: Debugging option
To: sunmanagers@sunmanagers.org
Message-ID: <20060623145856.33360.qmail@web35201.mail.mud.yahoo.com>
Content-Type: text/plain; charset="us-ascii"
Hello Managers
Thanks for all the responses and most of them are working.
Bill R. Williams
Jim VanBrocklin
Try the command 'script'
man script
script makes a record of a terminal session.When you run a script it actually forks a new shell and starts logging to a file (default "typescript").Both the commands you enter and the output of those commands will be logged to typescript.When you have everything you want to capture, just 'exit' the shell and 'script' will terminate leaving you with a log of the whole session.
Dave Markham
Lineberger, Aaron
Christopher McNabb
Steve Sandau
D Smythe
Sanjiv K Bhatia
sh ./filename | tee -a /var/log/filename.log 2>&1
sh ./filename > /var/log/filename.log 2>&1
ksh -x filename > ./testfile 2>&1
sh -x filename.sh 2>&1 | more
sh -n filename.sh > log.txt 2>&1
sh -n filename 2> ./testfile
sh -xv filename 2>&1 |more
sh -xv 2>&1 > .testfile
Shyam Hazari
Add "set -x" for debugging to the script
Thanks for all your recommendations.
Rob
---------------------------------
Be smarter than spam. See how smart SpamGuard is at giving junk email the boot with the All-new Yahoo! Mail
------------------------------
Message: 2
Date: Fri, 23 Jun 2006 12:14:24 -0400
From: "Langston, Jim"
Subject: SUMMARY: One More Zone Question for Solaris 10
To:
Message-ID: <76B242F452B3344299AA122A7E275E8A11C639@corpex01.pdit.int>
Content-Type: text/plain; charset="us-ascii"
I received several answers, all stating that it isn't supported, but
here is the work around. I followed these few steps and I was able to
change the zone names.
It's not supported, although there's RFE's in for it. You
can do it manually by editing the files in /etc/zones -- change
the zonename in the .xml file, and the zone name in
/etc/zones/index. (I haven't tried doing it on a running zone,
but it works for me if the zone is halted first.)
Cheers,
Jim
------------------------------
Message: 3
Date: Fri, 23 Jun 2006 12:38:55 -0400
From: "Shiva Nagaraj"
Subject: Tcp/ip connections logging
To:
Message-ID:
<6B865826E860EF42B3A387A03F3953960E46CD41@EX0004.AllstreamITS.local>
Content-Type: text/plain; charset="us-ascii"
Hi Guys,
Are there any freeware out there that can track all the tcp/ip
connections coming into a Solaris system & generate some kind of report?
Thanks
Shiva Nagaraj
UNIX Consultant
snagaraj@datawave.com
------------------------------------------------------------------------
-----------------
This message (including any attachments) is confidential, may be
privileged and is only intended for the person to whom it is addressed.
If you have received it by mistake please notify the sender by return
e-mail and delete this message from your system.
Any unauthorized use or dissemination of this message in whole or in
part is strictly prohibited. E-mail communications are inherently
vulnerable to interception by unauthorized parties and are susceptible
to change. We will use alternate communication means upon request
------------------------------------------------------------------------
-----------------
------------------------------
Message: 4
Date: Fri, 23 Jun 2006 13:52:29 -0400
From: "Paveza, Gary"
Subject: moving metavolumes to larger drives
To: "'sunmanagers@sunmanagers.org'"
Message-ID:
<011075EF5ED23844A1CAA16F7DE7F7D70825484A@xwilmbx10.aigm.com>
Content-Type: text/plain
Has anyone migrated filesystems from one disk to another (higher capacity)
using Solaris volume manager?
I have the following setup:
Solaris 9
A 69GB disk which has been partitioned into one large partition and put
under Solaris Volume Manager (d101)
A one-way mirror has been created from d101 (metainit d100 -m d101).
Soft partitions have been created on d100
I would like to migrate this to a pair of 146GB disks.
I think I can do the following:
- insert new 146GB disk into server (c0t3d0)
- create device files (devfsadm -c disk)
- format disk for one large partition
- metainit the disk to be d102
- metattach d100 d102
- allow sync
- metadetach d100 d101 (d101 is c0t2d0 a 69GB disk)
- metaclear d101
- Pull the disk that was d101 (c0t2d0) from the server
- Cleanup old device drives (devfsadm -C -c disk) to remove the old
c0t2d0 device drivers
- Put a new 146GB disk into server at c0t2d0
- Create devices (devfsadm -c disk)
- Format disk for one large partition
- Metainit disk to be d101
- Attach d101 as a submirror for d100
-
---------------------------------------------------------
Gary Paveza, Jr.
Senior Systems Administrator - HP CSE, SCSA
(302) 252-4831 - phone
------------------------------
Message: 5
Date: Sat, 24 Jun 2006 00:30:00 -0400 (EDT)
From: jdd@cs.toronto.edu (John DiMarco)
Subject: IMPORTANT: Read this before posting to Sun-Managers
To: sunmanagers@sunmanagers.org
Message-ID: <20060624043000.6D806D28C7@dvp.cs>
Archive-name: sunmanagers-before-posting
Last Updated: $Id: before.posting,v 1.21 2005/12/28 21:05:10 jdd Exp $
NOTE: This message is posted periodically to sunmanagers on behalf of all
members of the Sunmanager's mailing list. Please read it carefully
before posting. This document can be retrieved from:
ftp://ftp.cs.toronto.edu/pub/jdd/sunmanagers/before.posting
Dear prospective sunmanagers poster,
Before posting, please stop for a minute and consider whether or not your
posting is suitable for Sunmanagers. The list is not intended for just any
possible question related to managing Sun equipment or software. The only
appropriate questions for Sun Managers are time-critical questions about Sun
system management problems that are not answered in the manuals or system
documentation, or in the Sunmanager's FAQ.
In particular, the following kinds of postings are not appropriate:
- Subscribe and unsubscribe messages. Point your web browser to
http://www.sunmanagers.org instead.
- Test messages of any sort.
- Discussions about anything, including discussions about the list
itself, or followups to any posting, with the exception of a single
summary to one's own question summarizing the email responses. Use
instead one of the Sun newsgroups, eg. comp.sys.sun.admin,
comp.sys.sun.hardware or comp.unix.solaris.
- Replies to any SunManagers posting, even if the reply is a
separate question. Please send a separate message instead.
- Postings not related to Sun equipment or software. Use the
appropriate newsgroup or mailing list instead. For example,
if your question concerns "sendmail", please consult the
comp.mail.sendmail newsgroup or the www.sendmail.org website.
- General UNIX or network questions. Use the appropriate newsgroup,
eg. comp.unix.questions instead.
- Postings that are not time-critical. Use one of the Sun newsgroups,
eg. comp.sys.sun.admin, comp.sys.sun.hardware or comp.unix.solaris.
- Questions answered in the FAQ. Read the FAQ instead. If you're
not sure if the question is in the FAQ, please check before asking.
You can find the FAQ at:
ftp://ftp.cs.toronto.edu/pub/jdd/sunmanagers/faq.html
ftp://ftp.cs.toronto.edu/pub/jdd/sunmanagers/faq
- Questions that are answered in the manuals, http://docs.sun.com or
system documentation. Read the manuals instead. If you're not sure
if the question is answered in the manuals, please check first!
- Job postings, requests for jobs, sales pitches, etc. Use the
appropriate newsgroup instead.
- Please, no postings in HTML, rich-text-format, Microsoft Word,
Word Perfect, or any format that some people on the list would not
easily be able to read. Also, please post in English only; most
of our readers are not able to read other languages.
- Please do not BCC (blind carbon copy) the list. Many of our
list members depend on the list address appearing on incoming
mail messages, so that they can automatically distinguish list
traffic from other traffic.
Please note that we are not saying these postings are necessarily "bad" or
"stupid". They are not. They are merely inappropriate for this list. There
are many other lists and newsgroups for which the question may be completely
appropriate, and we encourage you to submit the posting there.
Note also that your question may have been already answered in the past.
Please spend a minute or two checking one of the Sunmanager's archives,
for example, at http://www.sunmanagers.org, or one of the archive sites
mentioned in the FAQ.
Here's an example of an appropriate question:
I have a SPARCserver 99 running Solaris 9.8.7 with the fizbozz patch
and the jumbo kernel patch version 158. After I installed
Futzbarworks version 3.2, the machine locks up every couple of
hours. When it locks up, the following message appears on the
console:
zz0: out of futzbufs. Barworks table is full.
I need to get this machine working as soon as possible. Please
help! Send email and I will summarize to the list.
To submit a question, email it to sunmanagers@sunmanagers.org. When you do
this, please indicate all relevant information, including machine type, OS
version and patches. Collect email replies, and then summarize them to the
list. If your question was posted with a subject of "foobar", for example,
then please post your summary with a subject of "SUMMARY: foobar".
Why are we asking that only certain types of postings be submitted to the
list? Very simply, the reason is this: we want the list to have a very
short turnaround time, and the only reasonable way to do this is to keep it
unmoderated. But this means that every message sent to the list ends up in
the mailboxes of all the list members. To keep all the members of the list
from being deluged by inappropriate messages, we need everyone's co-operation
in ensuring that only appropriate messages are sent to the list.
Please remember, Sunmanagers is a public forum: we have thousands of
subscribers, all posts are archived on numerous archive sites, and these are
searchable via various web engines. A great number of people will read your
message. Keep in mind that the person reading your message may be your boss,
your future boss, your customer, your seminar instructor, your colleague, or
someone else that you work with today or may find yourself working with
tomorrow. We do not want you to embarrass yourself by sending an
inappropriate or poorly thought-out posting.
Regards,
John
-- John DiMarco Sunmanagers Information Files Maintainer http://www.cs.toronto.edu/~jdd ------------------------------ Message: 6 Date: Sat, 24 Jun 2006 21:14:24 -0400 From: "Paul Hunter" Subject: devfsadm and 24 device links To: sunmanagers@sunmanagers.org Message-ID: <37ed01ff0606241814g73148eep1f9a4663e2bf7b76@mail.gmail.com> Content-Type: text/plain; charset="us-ascii" I have 2 fibre cards plugged into a SAN switch. I have 3 tape devices also plugged into the same zone. Why do I see 72 links in /dev/rmt? # ls -lat | grep "/pci@8,700000/SUNW,qlc@2" | wc -l 72 I assume I just use the /dev/rmt/6 when I reference any kind of backups? Can this directory be cleaned up or is this normal? Thanks ------------------------------ Message: 7 Date: Sun, 25 Jun 2006 14:52:09 -0700 From: Warren Liang Subject: Only accept ssh from root To: Sun Managers Message-ID: <1151272329.1481.5.camel@Redhat1g> Content-Type: text/plain Afternoon: Try to ssh to a Solaris 8 host, which has openSSH up and running. From my account, ssh to the Sun box failed: Local_host_Warren> ssh -v app1 ISTR_OpenSSH_3.7p1-pwexp24, SSH protocols 1.5/2.0, OpenSSL 0.9.7b 10 Apr 2003 debug1: Reading configuration data /opt/apps/openSSH/etc/ssh_config debug1: Connecting to app1 [69.1.2.12] port 22. debug1: connect to address 69.1.2.12 port 22: Connection refused ssh: connect to host app1 port 22: Connection refused However, after I su to become root on local host, then ssh to app1 works. Thanks in advance. Warren ------------------------------ Message: 8 Date: Mon, 26 Jun 2006 13:48:31 +1100 From: Kumaresh P Nataraj Subject: maximum free space that is available for a soft partition extension ?. To: sunmanagers@sunmanagers.org Message-ID: Content-Type: text/plain; charset="us-ascii" Hi Guru's Is there a simple way or script to find the maximum free space that is available for a soft partition extension ?. Best Regards __________________________________________________________ Kumaresh. P. N Ph: +91 80 417 74881 Unix Administrator Tie Line: 92 46638 OIS A/NZ Midrange Unix Email: pnkumaresh@in.ibm.com IBM India Pvt Ltd Mobile: +91 9880679279 EGL - D - Level 3, Bangalore - 560 071, INDIA __________________________________________________________ ------------------------------ Message: 9 Date: Mon, 26 Jun 2006 08:18:53 +0200 (CEST) From: NKS Subject: Sun-servers not seeing SAN-connected disks To: sunmanagers@sunmanagers.org Message-ID: <200606260618.k5Q6IqNA003941@svane.norsar.no> Content-Type: TEXT/plain; charset=us-ascii Fellow Managers, I am a bit of a newbie to Solaris and SANs so I need some help here... I have a Nexsan Ataboy2 fibre connected to a Sun 280R with Solaris 9, latest rec. & sec. patches. Emulex LP9002 single port fibre HBA. Latest Emulex lpfc driver and utility kit installed. topology=0 in /kernel/drv/lpfc.conf (loop). Sun SAN Foundation Suite NOT installed. /kernel/drv/sd.conf updated: name="sd" parent="lpfc" target=0 lun=0; name="sd" parent="lpfc" target=0 lun=1; name="sd" parent="lpfc" target=0 lun=2; name="sd" parent="lpfc" target=0 lun=3; name="sd" parent="lpfc" target=0 lun=4; name="sd" parent="lpfc" target=0 lun=5; Booted boot -r. I want to connect an extra fiber disk to the server and I have created a simple three port zone on my Brokade 200E SAN-switch. When connecting the server and the two fibre disk arrays to the switch, the switch sees all WWNs and report valid info for all these. However, the 280R does not see any disks. boot -r done. The zone is a private zone and I'm almost certain that this is set up correctly (it works fine if I connect two Win2003 servers and an other Ataboy2x to an identically configured zone). The output below is generaten on the 280R with the Ataboy2x disk array directly connected. ymer# luxadm probe No Network Array enclosures found in /dev/es Found Fibre Channel device(s): Node WWN:20000004cfa3bd79 Device Type:Disk device Logical Path:/dev/rdsk/c1t0d0s2 Node WWN:20000004cfa38af6 Device Type:Disk device Logical Path:/dev/rdsk/c1t1d0s2 ymer# modinfo | grep -i emulex 39 12ba911 512d2 273 1 lpfc (Emulex LightPulse FC SCSI/IP) ymer# cfgadm -al Ap_Id Type Receptacle Occupant Condition c0 scsi-bus connected configured unknown c0::dsk/c0t6d0 CD-ROM connected configured unknown c2 scsi-bus connected unconfigured unknown c4 scsi-bus connected configured unknown c4::rmt/0 tape connected configured unknown c5 scsi-bus connected unconfigured unknown usb0/1 unknown empty unconfigured ok usb0/2 unknown empty unconfigured ok usb0/3 unknown empty unconfigured ok usb0/4 unknown empty unconfigured ok ymer# prtdiag System Configuration: Sun Microsystems sun4u Sun Fire 280R (2 X UltraSPARC-III+) System clock frequency: 150 MHz Memory size: 4096 Megabytes .... Bus Max IO Port Bus Freq Bus Dev, Brd Type ID Side Slot MHz Freq Func State Name Model ---- ---- ---- ---- ---- ---- ---- ---- ----- -------------------------------- ---------------------- I/O PCI 8 B 4 33 33 1,0 ok pci-pci8086,b154.0/network (netw+ PCI-BRIDGE I/O PCI 8 B 4 33 33 0,0 ok network-pci108e,abba.11 SUNW,pci-ce/pci-bridge I/O PCI 8 B 3 33 33 2,0 ok fibre-channel-pci10df,f900.10df.+ I/O PCI 8 B 2 33 33 3,0 ok pci-pci8086,b154.0/scsi (scsi) PCI-BRIDGE I/O PCI 8 B 2 33 33 4,0 ok scsi-pci1077,1016/sd (block) QLGC,ISP10160/pci-brid+ I have another Sun-server (SunFire V240) with a QLogic fibre HBA. Solaris 9 with latest patches. If I try to connect the disk to the server using the SAN-switch, the same thing happens. Suggestions will be greatly appreciated. I will summarize. Thanks! Best regards, Nils ------------------------------ Message: 10 Date: Mon, 26 Jun 2006 12:12:07 +0300 From: "Twaijiri, Ahmed F" Subject: Baseline Performance Benchmark To: sunmanagers@sunmanagers.org Message-ID: <8EDB9D881C164D49BDEC1F96581A765CD1B617@MAILG2.aramco.com> Content-Type: text/plain; charset=us-ascii Hi everyone, I don't know if someone though about it or not. Basically I want to make a script that generate a Baseline Performance figures for all our SUN servers about CPU, Disk, Memory and network So later if someone complained about the server performance we can run the script and compare the result with the old result to see if there is any problem. I searched the internet but I didn't find anything So far I create several C codes to do some malloc (memory test) and thread (CPU) and I use time command to see how long it takes for the program to run Do you have any better suggestion? Best Regards, -- Ahmed Al-Twaijiry ENOD/CSYS/ Unix Support Group Phone: (966) 3 8738012 If I'm not back in five minutes... wait longer! ------------------------------ _______________________________________________ sunmanagers mailing list sunmanagers@sunmanagers.org http://www.sunmanagers.org/mailman/listinfo/sunmanagers End of sunmanagers Digest, Vol 39, Issue 32 ******************************************* Arun Kr. Pal 9871252452 (Mob.) Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com _______________________________________________ sunmanagers mailing list sunmanagers@sunmanagers.org http://www.sunmanagers.org/mailman/listinfo/sunmanagers
This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:40:15 EDT