Search Results

Search: Posts Made By: aix_admin_007
1,080
Posted By aix_admin_007
Script Suggestion
I am trying to get output for fcs0 fcs1 side by side with "Date" "FCAdapter_Name" "Last Reset" "DMA_Res" "Adapter_Count" "Command_Res" for all the captured output in fcstat.out

Am I missing any...
1,793
Posted By aix_admin_007
let me say the sequence of checks and script checks
Firstly in "lsvg | grep old" here if the output is "old_rootvg", script would then delete it by "alt_rootvg_op -X old_rootvg", and check again "lsvg | grep old" if no output then "old_rootvg" is...
1,793
Posted By aix_admin_007
Input is list of Server's, script is basically to...
Input is list of Server's, script is basically to remove old_rootvg, So it should check first command "alt_rootvg_op -X old_rootvg" if it passes move to next server and starts check and if it fails...
1,793
Posted By aix_admin_007
it returns exit 1 as when it deletes using...
it returns exit 1 as when it deletes using command "alt_rootvg_op -X old_rootvg" will return exit 0.

Is the remote script exiting with a 0 if successful(i.e. exit 0) and non zero if...
1,210
Posted By aix_admin_007
Script to take .xls file and read it for each server
Script to take .xls file and read it for each server "/aix/test/$server_pre.xls" and then removes all the disks as provided in the file and then give output as below for each server, but am getting...
1,793
Posted By aix_admin_007
Script to check one command and if it fails moves to other command
Input is list of Server's, script is basically to remove old_rootvg, So it should check first command "alt_rootvg_op -X old_rootvg" if it passes move to next server and starts check and if it fails...
24,614
Posted By aix_admin_007
Great worked perfect.....
Great worked perfect.....
24,614
Posted By aix_admin_007
Want to remove / and character using awk or sed
Below i am trying to remove "/" and "r" from the output, so i need output as:
hdiskpower3
hdisk0
hdisk1

#inq (root@hrmoeedbt01:/#inq) | grep 5773 | awk '{print $1}' | sed 's/dev//g' | awk -F"/"...
1,984
Posted By aix_admin_007
How about an output in below pattern, where first...
How about an output in below pattern, where first coloumn is Symmetrix ID, 2nd coloumn are all hdiskpowers and 3rd coloumn are all hdisks, which are all associated to the Symmetrix ID=000090009902...
1,984
Posted By aix_admin_007
Out put am expecting is child disk devices...
Out put am expecting is child disk devices associated to state "dead" and Symmetrix ID=000090009902. Script should check for Symmetrix ID=000090009902 and then list the disks which are in state dead,...
1,984
Posted By aix_admin_007
Need help with awk and sed scripting
I need help with sed and awk scripts to search for Symmetrix ID=000090009902 and then grep its child disk devices associated to the dead paths and display them only, so that those dead devices can be...
1,581
Posted By aix_admin_007
Suggestion with script to cleanup
I need help with sed and awk scripts to search for Symmetrix ID=000090009902 and then grep its child disk devices associated to the dead paths and display them only, so that those dead devices can be...
3,990
Posted By aix_admin_007
Setup sftp connection
To set up a sftp connection between Server A, Server B and a website.com

A batch script will start from Server A and Server B and Connect to the Website server

How to setup sftp connection...
Forum: AIX 04-25-2013
1,538
Posted By aix_admin_007
Do i create a new lv ?
Currently directory /home/apps/fs_1 on both servers A and B is mounted on /dev/hd1.
I am assuming it should have separate filesystem, with its own lv as fs_1_lv to which /home/apps/fs_1 should be...
3,822
Posted By aix_admin_007
Solution
created log file with extension wpar_monitor_mail_txt.$$, And that way find and remove works...
3,822
Posted By aix_admin_007
msabhi@ giving error # stat -c "%W"...
msabhi@ giving error
# stat -c "%W" wpar_monitor_2days.log
ksh: stat: not found
3,822
Posted By aix_admin_007
Yes, Its a log file for a monitoring cron job,...
Yes, Its a log file for a monitoring cron job, which runs evey 5 mins and updates the log file time each time it updates, so the log file has current date and time.

I want to delete the data in...
3,822
Posted By aix_admin_007
Cleanup a log file data every 2 days
How do i cleanup a log file data every 2 days, I was using below command in a script to remove log file every 2 days, but looks like its not working as log file date and time gets updated every 5...
1,690
Posted By aix_admin_007
rdrtx1, Thanks a Lot. Gives exact required...
rdrtx1,

Thanks a Lot. Gives exact required output.

Regards.
1,690
Posted By aix_admin_007
Hope this is much clear, After removing unwanted...
Hope this is much clear, After removing unwanted lines from file below is the input, I need the below Red values also in Output with space between 7D 0

3EFC 10000000c97239cf FIBRE FA7D:0
...
1,690
Posted By aix_admin_007
awk or sed script to remove strings
Below am trying to separate FA-7A:1, In output file it should display 7A 1



Command am using


Gives same output as below format:
22B7 10000000c9720873 0
22B7 10000000c95d5d8b 0...
3,077
Posted By aix_admin_007
Gives same output as below: 22B7...
Gives same output as below:
22B7 10000000c9720873 0
22B7 10000000c95d5d8b 0
22BB 10000000c97843a2 0
22BB 10000000c975adbd 0


Not showing FA ports as required output:

01FB...
3,077
Posted By aix_admin_007
Am using as below: | grep -v Device | grep -v...
Am using as below:
| grep -v Device | grep -v Symmetrix | sed s/-//g | awk '/^ *$/{next;} length($1)!=4 { $0=l " " $0; } {l=$1 ; gsub("[:-]"," "); $3=$4="";} 1'
3,077
Posted By aix_admin_007
But i also need the FA port too, Required: ...
But i also need the FA port too, Required:
01FB 10000000c97843a2 8C 0
01FB 10000000c96fb279 9C 0
22AF 10000000c97843a2 8C 0
22AF 10000000c975adbd 8C 0

Output:
22B7...
3,077
Posted By aix_admin_007
Want to sort a file using awk & sed to get required output
Hi All, Need Suggestion, Want to sort a file using awk & sed to get required, output as below, such that each LUN shows correct WWPN and FA port Numbers correctly:
Required output:
01FB...
Showing results 1 to 25 of 35

 
All times are GMT -4. The time now is 04:08 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy