Regarding getting metastat command output
Hi,
I am facing some problems while getting metastat command output. Basically in some scenario's the output format for device is shown in CnTnDn format. But for some other metadevices its shown as /de/dsk/CnTnDn format. How can i achieve getting Device info in only one format? Attached is the output. Here d42 Device is shown in c1t1d0s4 format and d1023 is being shown as "/dev/dsk/c6t50060E8003F64A19d5s7".
d42: Submirror of d40
State: Needs maintenance
Invoke: metasync d40
Size: 10247232 blocks (4.9 GB)
Stripe 0:
Device Start Block Dbase State Reloc Hot Spare
c1t1d0s4 0 No Okay Yes
d1023: Concat/Stripe
Size: 113798880 blocks (54 GB)
Stripe 0: (interlace: 2048 blocks)
Device Start Block Dbase Reloc
/dev/dsk/c6t50060E8003F64A19d5s7 0 No Yes
/dev/dsk/c6t50060E8003F64A19d6s7 1440 No Yes
Regards,
Shivaraj
email: [email protected]
Hi wrightrp,
Thanks for replying. This info was very helpfull for me.
But it looks we are little bit diverted from original problem. Basically I was having trouble in identifying "Device" format in my script. If you look at my example metastat output, for d42 the "Device" info was shown as "c1t1d0s4" but for d1023 its shown as "/dev/dsk/c6t50060E8003F64A19d5s7" So i am worried about why for some metadevices its just shown as CTD format and why some others its shown as "/dev/dsk/CTD" format? For d1023 /dev/dsk is coming extra. Any help/info on this will be much appriciated.
Regards,
Shivaraj
Similar Messages
-
BR0278E Command output of 'LANG=C mt -f /dev/rmt/0m rew
Dear all,
I am facing on problem while doing th Backup volume initialization from DB13 on the error log is mentioned below:
BR0051I BRBACKUP 7.00 (24)
BR0055I Start of database backup: bdywwgym.tib 2008-09-25 17.49.48
BR0484I BRBACKUP log file: /oracle/RD1/DEV/sapbackup/bdywwgym.tib
BR0101I Parameters
Name Value
oracle_sid DEV
oracle_home /oracle/RD1/DEV/102_64
oracle_profile /oracle/RD1/DEV/102_64/dbs/initDEV.ora
sapdata_home /oracle/RD1/DEV
sap_profile /oracle/RD1/DEV/102_64/dbs/initDEV.sap
backup_dev_type tape
tape_copy_cmd cpio
cpio_flags -ovB
cpio_in_flags -iuvB
dd_flags obs=64k bs=64k
dd_in_flags ibs=64k bs=64k
rewind mt -f $ rew
rewind_offline mt -f $ offl
tape_address /dev/rmt/0mn
tape_address_rew /dev/rmt/0m
volume_backup SCRATCH
expir_period 30
tape_use_count 100
exec_parallel 0
system_info devadm/oradev rlsdev HP-UX B.11.31 U ia64
make_info hpia64 OCI_102 Apr 21 2007
command_line brbackup -u / -jid TAPIN20080925174944 -i force -c force -n 1 -v SCRATCH
BR0477I Oracle pfile /oracle/RD1/DEV/102_64/dbs/initDEV.ora created from spfile /oracle/RD1/DEV/102_64/
BR0205I Backup volume initialization
BR0058I BRBACKUP action ID: bdywwgym
BR0059I BRBACKUP function ID: tib
BR0102I Following backup device will be used: /dev/rmt/0mn
BR0131I All volumes get the name SCRATCH
BR0129I Force option set - no label checking during initialization
BR0134I Unattended mode with 'force' active - no operator confirmation allowed
BR0207I Volume in device: /dev/rmt/0mn will be initialized with name: SCRATCH
BR0280I BRBACKUP time stamp: 2008-09-25 17.49.49
BR0226I Rewinding tape volume in device /dev/rmt/0m ...
BR0278E Command output of 'LANG=C mt -f /dev/rmt/0m rew':
/dev/rmt/0m: No such device or address
BR0280I BRBACKUP time stamp: 2008-09-25 17.49.49
BR0279E Return code from 'LANG=C mt -f /dev/rmt/0m rew': 1
BR0213E Winding tape volume in device /dev/rmt/0mn failed
BR0219E Initialization of volume SCRATCH in device /dev/rmt/0mn failed
BR0206I End of backup volume initialization
BR0280I BRBACKUP time stamp: 2008-09-25 17.49.49
BR0054I BRBACKUP terminated with errors
Kindly help.Dear Karan,
Thanks a lot for replying please check the output.
lsdev -Cc tape
tape - invalid major number
usage: lsdev [-h] [-d driver | -C class] [-b block_major] [-c char_major]
[-e major] [major] ...
Regards,
Manish -
PAYABLES NOT GETTING THE REPORT OUTPUT IN PDF AFTER APPLYING RUP5 R12
Hi All,
RDBMS:10.2.0.3.0
Oracle Apps :12.0.4
OS:AIX 5.3
Problem Description:
We are presently facing an issue in Payables not getting the report output in PDF esp for the reports "Invoice Register", Invoice Hold Report and also other reports. We were able to generate the reports till our last test performed on last Thursday. This instance was cloned over the last weekend and probably the new upgrade to RUP5 R12,would have impacted it.
Concurrent Programs submitted are completed normal but on clicking "view output" results in Blank PDF output.
The error message what was shown is as below:
"Adobe Reader could not open 'AcrC.tmp' because it is either not a supported file type or because the file has been damaged (for example, it was sent as an email attachment and wasn't correctly decoded)".
Where could we locate ther above 'AcrC.tmp' of Adobe Reader..
could anyone please share such an experience encountered for resolution..
Would appreciate an early response..
Thanks for your time!
Regards,I suggest you speak to your DBA/sysadmin. This is not likely to be a reports problem.
Check that you can see the output from apps through the viewer (the report may not hav output anything)
Check whether you can print anything on that printer from apps.
May also be worth checking to see if you can print to another printer from this report. -
In JDBC Sender Adapter , the server is Microsoft SQL .I need to pass current date as the input column while Executing stored procedure, which will get me 10 Output Columns. Kindly suggest me the SQL Query String , for executing the Stored Procedure with Current date as the input .
Hi Srinath,
The below blog might be useful
http://scn.sap.com/community/pi-and-soa-middleware/blog/2013/03/06/executing-stored-procedure-from-sender-adapter-in-sap-pi-71
PI/XI: Sender JDBC adapter for Oracle stored procedures in 5 days
regards,
Harish -
Need Help in Getting the below output
Hi All,
The below is the table data.
col1 col2 col3 col4 col5 col6
Aa 1 Con 100 10 -1
Ba 2 Cam 50 2 33
Aa 1 Con 200 20 -2
Ca 3 val 2 5 -10
Aa 1 Con 150 30 -3
Ba 2 Cam 20 3 11
Ca 3 val 3 5 -20
Ba 2 Cam 30 5 22
Ca 3 val 5 4 -30
I need the output as below. Please help me in getting the output.
col1 col2 col3 col4 col5 col6
Aa 1 Con 100 10 -1
Aa 1 Con 200 20 -2
Aa 1 Con 150 30 -3
Aa-Con Subtotal 450 60 -6
Ba 2 Cam 20 3 11
Ba 2 Cam 30 5 22
Ba 2 Cam 50 2 33
Ba-Cam Subtotal 100 10 66
Ca 3 val 2 5 -10
Ca 3 val 3 5 -20
Ca 3 val 5 4 -30
Ca-val Subtotal 10 14 -60
I am using Oracle 10g. Let me know if other details required.
Thanks in Advance.
Regards,
Ravi Kumar Ankarapu.You can try using ROLLUP and GROUPING SETS like how some of the other forum members have suggested. Another way of getting the desired output would be :
with t as
select 'Aa' col1, 1 col2, 'Con' col3, 100 col4, 10 col5, -1 col6 from dual
union all
select 'Ba', 2, 'Cam', 50, 2, 33 from dual
union all
select 'Aa', 1, 'Con', 200, 20, -2 from dual
union all
select 'Ca', 3, 'val', 2, 5, -10 from dual
union all
select 'Aa', 1, 'Con', 150, 30, -3 from dual
union all
select 'Ba', 2, 'Cam', 20, 3, 11 from dual
union all
select 'Ca', 3 ,'val', 3, 5, -20 from dual
union all
select 'Ba', 2, 'Cam', 30, 5, 22 from dual
union all
select 'Ca', 3, 'val', 5, 4, -30 from dual
select * from
select * from t
union all
select distinct * from
select col1 || '-' || col3 || ' Sub-total' col1, null col2, null col3,
sum(col4) over (partition by col1 order by col1) col4,
sum(col5) over (partition by col1 order by col1) col5,
sum(col6) over (partition by col1 order by col1) col6
from t
order by col1, col2, col3
Output:
"COL1" "COL2" "COL3" "COL4" "COL5" "COL6"
"Aa" "1" "Con" "150" "30" "-3"
"Aa" "1" "Con" "100" "10" "-1"
"Aa" "1" "Con" "200" "20" "-2"
"Aa-Con Sub-total" "" "" "450" "60" "-6"
"Ba" "2" "Cam" "50" "2" "33"
"Ba" "2" "Cam" "20" "3" "11"
"Ba" "2" "Cam" "30" "5" "22"
"Ba-Cam Sub-total" "" "" "100" "10" "66"
"Ca" "3" "val" "5" "4" "-30"
"Ca" "3" "val" "2" "5" "-10"
"Ca" "3" "val" "3" "5" "-20"
"Ca-val Sub-total" "" "" "10" "14" "-60" -
When to use GET LATE command in LDB
Hi,
Can anyone tell me the the use of GET LATE command in logical database,
when to use this..
example will be more helpful.
Regards,
MrunalHi Frd
If you want to perform calculations or other operations which are not associated with certain additional fields, you can formulate ABAP code for the GET and GET LATE events of a logical database table when creating an InfoSet. The code for GET events is particularly important if you have defined parameters or selection criteria for the InfoSet. It is here that you must define the code to check whether a table line is to be evaluated or not.
Example
REPORT demo_program_get_late.
NODES: spfli, sflight, sbook.
DATA weight TYPE i VALUE 0.
START-OF-SELECTION.
WRITE 'Test Program for GET node LATE'.
GET spfli.
SKIP.
WRITE: / 'Carrid:', spfli-carrid,
'Connid:', spfli-connid,
/ 'From: ', spfli-cityfrom,
'To: ', spfli-cityto.
ULINE.
GET sflight.
SKIP.
WRITE: / 'Date:', sflight-fldate.
GET sbook.
weight = weight + sbook-luggweight.
GET sflight LATE.
WRITE: / 'Total luggage weight =', weight.
ULINE.
weight = 0.
Reward Me Point
By
Pari -
Didnt get the command back after startWebLogic.sh
Hello,
after i start weblogic server i dont get the command back.
It looks like below. And if i close my terminal the server will shutdown. Is this normal ??
Thanks for ur help .
FUSION mode detected, skipping all update logic
CSSSystemFactory: creation FusionSystem
Calling FusionSystem.getInstance
FusionProvider BIPlatformProvider security version 2
FUSION mode detected, skipping all update logic
CSSSystemFactory: creation FusionSystem
Calling FusionSystem.getInstance
FusionProvider BIPlatformProvider security version 2
Mode: Fusion read from Registry
HRContextListener::contextInitialized
CSSSystemFactory: creation FusionSystem
Calling FusionSystem.getInstance
FusionProvider BIPlatformProvider security version 2
<Nov 5, 2013 11:10:56 AM CET> <Notice> <Log Management> <BEA-170027> <The Server has established connection with the Domain level Diagnostic Service successfully.>
<Nov 5, 2013 11:10:56 AM CET> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to ADMIN>
<Nov 5, 2013 11:10:56 AM CET> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to RESUMING>
<Nov 5, 2013 11:10:56 AM CET> <Warning> <Server> <BEA-002611> <Hostname "localhost", maps to multiple IP addresses: 127.0.0.1, 0:0:0:0:0:0:0:1>
<Nov 5, 2013 11:10:56 AM CET> <Notice> <Server> <BEA-002613> <Channel "Default[3]" is now listening on 127.0.0.2:7001 for protocols iiop, t3, ldap, snmp, http.>
<Nov 5, 2013 11:10:56 AM CET> <Notice> <Server> <BEA-002613> <Channel "Default" is now listening on 10.215.205.5:7001 for protocols iiop, t3, ldap, snmp, http.>
<Nov 5, 2013 11:10:56 AM CET> <Notice> <Server> <BEA-002613> <Channel "Default[1]" is now listening on fe80:0:0:0:250:56ff:fea4:5472:7001 for protocols iiop, t3, ldap, snmp, http.>
<Nov 5, 2013 11:10:56 AM CET> <Notice> <Server> <BEA-002613> <Channel "Default[4]" is now listening on 0:0:0:0:0:0:0:1:7001 for protocols iiop, t3, ldap, snmp, http.>
<Nov 5, 2013 11:10:56 AM CET> <Notice> <Server> <BEA-002613> <Channel "Default[2]" is now listening on 127.0.0.1:7001 for protocols iiop, t3, ldap, snmp, http.>
<Nov 5, 2013 11:10:56 AM CET> <Notice> <WebLogicServer> <BEA-000329> <Started WebLogic Admin Server "AdminServer" for domain "bifoundation_domain" running in Production Mode>
<Nov 5, 2013 11:10:57 AM CET> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to RUNNING>
<Nov 5, 2013 11:10:57 AM CET> <Notice> <WebLogicServer> <BEA-000360> <Server started in RUNNING mode>Hi,
Yes this is normal.
when you start the service it will end with running mode only..
If you close the command automaticaly it will shutdown the services all.
http://mkashu.blogspot.com
regards,
VG -
How to get ALL command line parameters
Hi,
Is there possibility to get all command line parameters which
Flex builder invokes when I press RUN button ?
I am asking because I want to create mxmlc ant task with the
same parameters as Flex builder.
I wrote something like that below but I have a problem with
invoking remote function, it seems that poduced SWF inf flex
builder an my script (below) arent the same - and mayby have some
security differences.
Any Ideas how to get all compiler argumets from flex builder
quote:
<mxmlc
file="${flex.src}\main.mxml"
output="${flex.output}\main.swf"
services="${path.tomcat.root.WEB}/flex/services-config.xml"
context-root="${path.tomcat.root}"
use-network="true"
keep-generated-actionscript="false"
debug="false"
locale="en_US"
incremental="true"
>
<!--load-externs="${LOADEXTERNS}"
link-report="link-report.xml" -->
<load-config
filename="${FLEX_HOME}\frameworks\flex-config.xml"/>
<source-path path-element="${FLEX_HOME}\frameworks"/>
<compiler.source-path path-element="${flex.src}"/>
<compiler.library-path dir="${FLEX_HOME}\frameworks"
append="true">
<include name="libs" />
<include name="../bundles/{locale}" />
</compiler.library-path>
</mxmlc>Hi,
Try -dump-config compiler argument, which will write all the
currently set configuration values. Please find more details at the
URL below.
http://www.quilix.com/node/9
Hope this helps. -
Using regular expressions to get a customized output
Hi,
I have a string/varchar variable with the data ',a,b,c,' in it.
I want the display as follows:
a
b
c
I would like to get the similar output using regular expressions.
How do I get this output using REGEXP_REPLACE or REGEXP_SUBSTR?
Please do the needful.
Thanks & Regards,
RakshitI remember that, however if we look closer, that one has a little flaw: The 2nd row should be null, because ",," indicates an empy field. The MODEL clause solution works just fine in this case:
with t as (select 'aaaa,,bbbb,cccc,dddd,eeee,ffff' col1 from dual)
-- end of sample data
SELECT col_new
FROM t
MODEL
PARTITION BY (ROWNUM rn)
DIMENSION BY (0 dim)
MEASURES(col1, col1 col_new)
RULES ITERATE(99) UNTIL (ITERATION_NUMBER = LENGTH(REGEXP_REPLACE(col1[0], '[^,]')))
(col_new[ITERATION_NUMBER] = REPLACE(REGEXP_SUBSTR(col1[0], '(^|,)[^,]*', 1, ITERATION_NUMBER+1), ','))
COL_NEW
aaaa
bbbb
cccc
dddd
eeee
ffff
7 Zeilen ausgewählt.Update: I had this nagging feeling that I missed something, and there it was. If you want to see what the problem with my solution is, change the example to
with t as (select ',aaaa,,bbbb,cccc,dddd,eeee,ffff' col1 from dual)So I went back and tried to fix BlueShadows approach. Here it is:
with t as (select 'aaaa,,bbbb,cccc,dddd,eeee,ffff' txt from dual)
-- end of sample data
SELECT REPLACE(REGEXP_SUBSTR(',' || txt, ',[^,]*', 1, level), ',') col_new
FROM t
CONNECT BY level <= length(regexp_replace(txt,'[^,]*'))+1
;C. -
Sample Command Output of show chassis inventory for CSS
Hi,
I am trying to get a sample command output of "show chassis inventory" for:
CSS 11501
CSS 11503
CSS 11506
Can anyone help?
Thanks in advance.
MikeHi Mchi,
When I use the command: show chassis inventory. I found :
Slot Module Serial
1 CSS5-SCM-2GE F0 JABxxxxxxx
2 CSS5-IOM-2GE E0 JAB08xxxxxx
3 CSS5-IOM-8FE F0 JAB0xxxxxxx
4 CSS503-SM-INT JAB09xxxxxxx
this is the switch fabric module that connects the other modules.
This is an internal module and it can't be removed/replaced.
Use the show chassis command to display a chassis configuration for the CSS. The syntax and options for this command are as follows:
•show chassis - Displays a summary of the chassis configuration.
•show chassis slot number - Displays the operational parameters for a slot in a CSS 11503 or CSS 11506 chassis. Enter an integer value for the chassis slot number.
•show chassis verbose - Displays detailed information about the chassis configuration.
•show chassis flash - Displays the operational and locked Flash software code on the CSS 11501, and the CSS 11503 or CSS 11506 SCM and I/O modules. An asterisk (*) character before a Flash version of code and build number indicates that it is active.
•show chassis inventory - Displays the physical configuration of the CSS including part and serial numbers.
•show chassis session-processors - Displays the weight and power summary of the session processors in the CSS chassis.
CSS11506# show chassis inventory
Chassis Inventory:
Product Name: CSS11506-2AC E0 SW Version: 07.50.1.05s
Serial Number: JAB09xxxxxx Base Mac Address: 00-13-80-37-xx-xx
Slot Module Serial
1 CSS5-SCM-2GE F0 JAB0915xxxx
2 CSS5-SCM-2GE F0 JAB0914xxxx
3 CSS5-SSL-K9 F0 JAB0848xxxx
4 CSS5-IOM-2GE E0 JAB0808xxxx
7 CSS506-SM E0 JAB0911xxxx
8 CSS506-SM E0 JAB0911xxxx
Even a "show chassis verbose" command does not indicate the presence of a GBIC. It shows the Operational Status of a port as "online" whether there is a GBIC installed or not. For example, in the output below Slot 4 has a GBIC installed in port 4/1, but 4/2 is empty:
CSS11506# sho chassis verbose
Configuration for CSS11506-2AC E0:
Product Name: CSS11506-2AC E0 SW Version: 07.50.1.05s
Serial Number: JAB0916xxxx Base Mac Address: 00-13-80-37-xx-xx
Module(s) Found: 6
Power Supplies(s) Found: 2
Fan(s) Found: 3
Slot/SubSlot Operational Locked
1/1 *07.50.1.05 07.40.1.03
2/1 *07.50.1.05 07.40.1.03
3/1 *07.50.1.05 07.40.1.03
4/1 *07.50.1.05 07.20.2.06
Slot Number: 1 Type: CSS5-SCM-2GE F0
Serial Number: JAB0915xxxx Number of Ports: 2
Operational Status: primary
Port Number: 1 Port Name: SCM-2GE
Operational Status online
Port Number: 2 Port Name: SCM-2GE
Operational Status online
Slot Number: 2 Type: CSS5-SCM-2GE F0
Serial Number: JAB0914xxxx Number of Ports: 0
Operational Status: backup
Slot Number: 3 Type: CSS5-SSL-K9 F0
Serial Number: JAB0848xxxx Number of Ports: 0
Operational Status: primary
Slot Number: 4 Type: CSS5-IOM-2GE E0
Serial Number: JAB0808xxxx Number of Ports: 2
Operational Status: primary
Port Number: 1 Port Name: IOM-2GE
Operational Status online
Port Number: 2 Port Name: IOM-2GE
Operational Status online
Slot Number: 7 Type: CSS506-SM E0
Serial Number: JAB0911xxxx Number of Ports: 0
Operational Status: powered-on
Slot Number: 8 Type: CSS506-SM E0
Serial Number: JAB0911xxxx Number of Ports: 0
Operational Status: powered-on
end of buffer.
Maybe you can use "show tech"
HTH
Sachin -
How to Save Command Output to Flash on ASA 8.4
Hi,
I nice easy one for you guys.
How do you save the command output from the CLI to a file on flash?
With IOS, I would normally use a pipe command to redirect to tftp, but the ASA doesn't support this as far as I can tell. As a work around I was thinking I could save the output to flash and then tftp that file off the ASA.
Thanks,
PaulHi Jennifer,
Thanks for your help. I do use this feature at the moment, but I find every break in the output (where you need to hit space to see more) gets recorded which leaves the file quite messy. I usually have to edit the file afterwards so it reads clearly.
I wondered if there is a way for the asa to write the output directly?
Thanks,
Paul -
Show ip interface brief command output
Hi,
I have seen 'show ip interface brief' command output.
For some interfaces 'method' it is showing 'NVRAM' and for some interfaces it is 'Manual'.
What does it mean?
Regards
SKRhello,
what about CONFIG method. what is the difference between that and manual and how can I change it to CONFIG? this is related to the ASA 5585.
thanks!! -
How to get automatic message output
Hi,
How to get automatic message output while creating po cause i have done all setting in the config but still it does not work what else i have to do.
And 1 more thing how we can maintain condition record for Printoutput & External send for one output type.
Regards,
AnantHi,
Please follow the below steops for the Output of Purchase Order
1. Condition Table
SPRO > Material Management> Purchasing -> Message -> Output Control->Condition Tables->Define Condition Table for Purchase Order
Select:
Purchasing Doc. Type, Purch. Organization, Vendor
2. Access Sequences
SPRO -> -> Purchasing -> Message -> Output Control->Access Sequences->Define Condition Table for Purchase Order
3. Message Type
SPRO -> Material Management-> Purchasing -> Message -> Output Control->Message Types->Define Message Type for Purchase Order
*4. Message Determination Schemas*
4.1. Message Determination Schemas
SPRO -> Material Management-> Purchasing -> Message -> Output Control->Message Schema->Define Message Schema for Purchase Order-> Maintain Message Determination Schema
4.2. Assign Schema to Purchase Order
SPRO -> Material Management-> Purchasing -> Message -> Output Control->Message Schema->Define Message Schema for Purchase Order-> Assign Schema to Purchase Order
5. Partner Roles per Message Type
SPRO -> Material Management-> Purchasing -> Message -> Output Control-> Partner Roles per Message Type ->Define Partner Role for Purchase Order
6. Condition Record
Navigation Path: SAP Menu-> Logistics -> Material Management -> Purchasing-> Master data-Messages- MN04
Here you can maintain the condition record.
All above steps u can do from transacton NACE also
now when u create po in the messages u will get the out put method as u have maintained in the above steps.
Regards,
Manish -
Get-MailboxStatistics command to run and not count hidden objects
I have a script that generates a report on a set of mailboxes in an OU and how many messages are in the Inbox using the following command:
Get-MailboxFolderStatistics $mailbox -FolderScope Inbox | Where {$_.FolderPath -eq "/Inbox"}
There is a lot more to this script and it outputs a lot of information, but the count of items in the inbox is always wrong. It seems to be counting a lot of hidden items which users cannot see. From my reading in many forums this is a common problem, and
so far I have not found a solution.
Is there a way to fun the Get-MailboxFolderStatistics command and folder out hidden objects?`Thank you for the response, but unfortunately I have been tasked to find a way to get this working. I understand that the Get-MailboxStatistics command is unable to filter out hidden items but I need to find a way to make this report possible. I can understand
the limitations of the command and the technology, but unfortunately the CEO of our company will not accept that as an answer and making this report working is not an option.
To at least allow the report to function for now, I have created a report which manually adjusts for the hidden objects in each box. This does require the manual effort however of adjusting an input file which keeps track of the number of hidden objects
in each box. Here is the code that generates the report:
$mailboxes = @(get-mailbox -OrganizationalUnit "<ORGANIZATION UNIT>")
$report = @()
foreach ($mailbox in $mailboxes)
$inboxstats = Get-MailboxFolderStatistics $mailbox -FolderScope Inbox | Where {$_.FolderPath -eq "/Inbox"}
$MailboxInfo = Get-MailboxStatistics $mailbox | Select LastLoggedOnUserAccount,LastLogonTime,LastLogoffTime
$inboxstatCount = Get-MailboxFolderStatistics $mailbox -FolderScope Inbox | Where {$_.ItemsInFolder -gt 0 -and $_.FolderType -like "Inbox"}
$RawInboxCount = $inboxstatCount.ItemsInFolder
if ($mailbox.DisplayName -like "BillingFaxes")
$CurrentHiddenCount = "$HiddenCountBillingFaxes"
If ($mailbox.DisplayName -eq "callcenter")
$CurrentHiddenCount = $HiddenCountcallcenter
If ($mailbox.DisplayName -eq "lab")
$CurrentHiddenCount = $HiddenCountcathlab
If ($mailbox.DisplayName -eq "cviholter")
$CurrentHiddenCount = $HiddenCountcviholter
If ($mailbox.DisplayName -eq "medrecs")
$CurrentHiddenCount = $HiddenCountmedrecs
If ($mailbox.DisplayName -eq "appointments")
$CurrentHiddenCount = $HiddenCountNFRappointments
If ($mailbox.DisplayName -eq "pharmacy")
$CurrentHiddenCount = $HiddenCountpharmacy
If ($mailbox.DisplayName -eq "referrals")
$CurrentHiddenCount = $HiddenCountreferrals
If ($mailbox.DisplayName -eq "research")
$CurrentHiddenCount = $HiddenCountresearch
#else
#{ $CurrentHiddenCount = "No Value" }
#DIAGNOSTIC VALUES OUTPUT
Write-Host "--------------------------------------------------------------"
Write-Host "Current Mailbox" $mailbox.DisplayName
Write-Host "Current Inbox Count from the report=" $RawInboxCount
Write-Host "Current Hidden Count Number" $CurrentHiddenCount
Write-Host "The Math should equal " ($RawInboxCount - $CurrentHiddenCount)
$mbObj = New-Object PSObject
$mbObj | Add-Member -MemberType NoteProperty -Name "Display Name" -Value $mailbox.DisplayName
$mbObj | Add-Member -MemberType NoteProperty -Name "Inbox Size (Mb)" -Value $inboxstats.FolderSize.ToMB()
$mbObj | Add-Member -MemberType NoteProperty -Name "Inbox Items" -Value ($RawInboxCount - $CurrentHiddenCount)
$mbObj | Add-Member -MemberType NoteProperty -Name "Last User to Log On" -Value $MailboxInfo.LastLoggedOnUserAccount
$mbObj | Add-Member -MemberType NoteProperty -Name "Time User was last logged in" -Value $MailboxInfo.LastLogonTime
$mbObj | Add-Member -MemberType NoteProperty -Name "Time User last logged off" -Value $MailboxInfo.LastLogoffTime
$report += $mbObj
All $Hidden----- variables are set to values from an imported file that must be updated regularly. It's messy, but at least it is getting the information we need to those that need it. If anyone can suggest a way to make this work without the constant need
to adjust the numbers for hidden items please let me know. -
Hi,
Please provide me sql query to get df -h output. I don't have server (Solaris) access to get df -h output.
I want to check the space availability on the mount point to increase space at the tablespace level.
Thank you..sb92075 wrote:
SQL> host df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 220G 66G 144G 32% /
none 1.9G 308K 1.9G 1% /dev
none 1.9G 959M 896M 52% /dev/shm
none 1.9G 96K 1.9G 1% /var/run
none 1.9G 0 1.9G 0% /var/lock
none 1.9G 0 1.9G 0% /lib/init/rw
The "host" command executes on the client machine running sqlplus, not the server that the OP says he doesn't have access to.
Maybe you are looking for
-
Error in Java Mapping for Single XML conversion
We are working on ABAP Proxy --> SAP PI 7.1 --> SOAP (Synchronous Scenario). (ECC -> PI -> Legacy CRM) Client has provided a WSDL with Single Node of XML and asking us to pass the whole structure as an single string along with all the nodes of data s
-
Thumbnails not showing up in sequence when media reconnected
I use Final Cut Express for editing. I recently moved all of a client's projects from one external hard drive to another for archive purposes. Now I need to revise several sequences but most (not all) of the thumbnails don't show up on the sequence t
-
Cannot compose or reply using yahoo mail with firefox
I have done everything Yahoo says to do which is FF's solution to my problem, but it does not solve the problem Yahoo mail works fine with IE & CHROME but with FF 33 & 34 it will not allow me to compose or reply to an email! And the checkboxes with t
-
720 camera fails to launch post black update
Hi Lumia 720. OS version 8.0.10517.15 Firmware 3056.40000.1349.2004 Since the black update the camera fails to launch either from the camera button or any app that uses the camera. All that happens is the camera attempts to open then depending on w
-
10.4.7 update issue
hi, last night i updated my operating system to 10.4.7. Upon completion the screen went darker and a window popped up telling me to reboot my computer. Not the usual software update resart window, this one disabled keyboard and mouse, and instructed