Sponsored Content
Top Forums Shell Programming and Scripting getting number of disks inside a solaris zone Post 302423919 by ygemici on Sunday 23rd of May 2010 09:10:26 AM
Old 05-23-2010
MySQL

Code:
echo disk > formatfile ; format -f formatfile > output ; grep -c "cyl" output

 

9 More Discussions You Might Find Interesting

1. Solaris

Solaris Zone : Non global Zone check failed

Hi All , I try to install some packages in my global zone... On the execution of the installion of the script it quits by saying the error "Non global zone check failed" Kindly help me in this regard Thanks in advance, jeganr (7 Replies)
Discussion started by: jegaraman
7 Replies

2. Shell Programming and Scripting

getting number of disks in solaris

Friends, i have used the following code to get the number of disks in solaris echo | pfexec format | egrep -v "Searching|AVAILABLE|Specify|^$|@" | wc -l is there a better way to get the same result (5 Replies)
Discussion started by: achak01
5 Replies

3. Shell Programming and Scripting

How to get number of attached hard disks in HP-UX

how do i get the number of attached hard disks in HP-UX (1 Reply)
Discussion started by: achak01
1 Replies

4. Solaris

How to upgrade firmware for disks inside servers?

Hi All, Recently I'm being request by customer to upgrade firmware for one of the disk but not from storage and is from server it self. The patch no is 116370-15, when I found it, I only see instructions on how to download for storage disks but not for server disks. All guru here please... (0 Replies)
Discussion started by: mailbox80
0 Replies

5. Solaris

Solaris 10 local zone on Solaris 11 global zone

Hi, A quick question: Can Solaris 10 local zones be moved to a Solaris 11 global zone and work well? Thank you in advance! (5 Replies)
Discussion started by: aixlover
5 Replies

6. UNIX for Advanced & Expert Users

Solaris 10: I forgot to detach a zone before zpool export. Uninstall zone?

Dear all, recently, I migrated a solaris zone from one host to another. The zone was inside of a zpool. The zpool cotains two volumes. I did the following: host1: $ zlogin zone1 shutdown -y -g0 -i0 #Zone status changes from running to installed $ zpool export zone1 host2: $ zpool... (2 Replies)
Discussion started by: custos
2 Replies

7. Solaris

Installing Solaris inside zone using automated installer

Hi guys, I was wondering if Solaris 11 can be installed in zone using automated installer as I can with vmvare or virtualbox. To be precise, first I want to create a zone which will create empty box. After that, I want to install Solaris using automated installer because I have a bunch of... (2 Replies)
Discussion started by: solaris_user
2 Replies

8. Solaris

Solaris 11 Global zone patching having Solaris 10 branded zone

I am planning to do solaris 11 global zone patching having solaris 10 branded zone. I have a doubts on step 8 specially Can someone clear my step 8 doubts or if anything wrong between step 1 to step 9 please correct that also as I have pretty good idea about Step 10 mean patching in solaris 10... (2 Replies)
Discussion started by: amity
2 Replies

9. Solaris

Solaris 11 zone has no external network access (except to Global Zone)

Hi, hoping someone can help, its been a while since I used Solaris. After creating a NGZ (non global zone), the NGZ can access the GZ (Global Zone) and the GZ can access the NGZ (using ssh, zlogin) However, the NGZ cannot access any other netwqork devices, it can't even see the default router ... (2 Replies)
Discussion started by: GazinLincoln
2 Replies
RCVTTY(1)                                                            [nmh-1.5]                                                           RCVTTY(1)

NAME
rcvtty - report new mail SYNOPSIS
/usr/lib/mh/rcvtty [command] [-form formatfile] [-format string] [-width columns] [-bell | -nobell] [-newline | -nonewline] [-biff] [-ver- sion] [-help] DESCRIPTION
The rcvtty can be used to report new mail. It is used primarily in conjunction with mail filtering agents such as slocal or procmail. The rcvtty program executes the named command with the message as its standard input, and writes the resulting output on your terminal. Alternately, if no command is specified (or is bogus), then rcvtty will instead write a one-line scan listing. The default output format of this scan listing may be overridden by using either the -form formatfile or -format string option, similar to the equivalent options for scan and inc. See mh-format(5) for details. A newline is output before the message output, and the terminal bell is rung after the output. The -nonewline and -nobell options will inhibit these functions. The switch -width columns may be given to specify the width of the scan line. The default is to use the width of the terminal. In addition to the standard format escapes described in mh-format(5), rcvtty also recognizes the following additional component escapes: Escape Returns Description body string the (compressed) first part of the body dtimenow date the current date folder string the name of the current folder By default, rcvtty will send its output to every terminal on the local machine that is owned by current user, and that has given write per- mission as granted by the command mesg(1). If the option -biff is given, then rcvtty will obey the notification status set by the command biff(1) instead. FILES
/etc/nmh/mts.conf nmh mts configuration file $HOME/.maildelivery The file controlling local delivery /etc/nmh/maildelivery Rather than the standard file CONTEXT
None DEFAULTS
`-width' defaults to the width of the terminal `-newline' `-bell' SEE ALSO
rcvdist(1), rcvpack(1), rcvstore(1), mh-format(5), slocal(1) BUGS
Only two return codes are meaningful, others should be. MH.6.8 11 June 2012 RCVTTY(1)
All times are GMT -4. The time now is 01:55 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy