Sponsored Content
Top Forums Shell Programming and Scripting Verify two disk pvid with command awk Post 302353939 by khalidou13 on Wednesday 16th of September 2009 02:55:56 PM
Old 09-16-2009
CPU & Memory Verify two disk pvid with command awk

I do a #lspv |grep rootvg and i got :

hdisk0 0006a81f3efcbe58 rootvg
hdisk1 0006a81fd9ff4014 rootvg

I want to verify for each server if the pvid is the same with use of the command lspv

Can you help to wrote a shell with the command awk for exemple .

Thank you
 

9 More Discussions You Might Find Interesting

1. Programming

Command to verify library sources in AIX

Hi there, May I know is there a command to verify and check the *.a file contents for AIX 5.2. How can I link the library file ? Thank you (0 Replies)
Discussion started by: chongks
0 Replies

2. Solaris

"Error for Command: verify"

I have a raid 5 configuration in a A3500 rack, manager by raid manager. This morning I found this messages in a /vad/adm/messages": Sep 10 04:33:57 zion scsi: WARNING: /sbus@3,0/SUNW,socal@2,0/sf@1,0/ssd@w200200a0b80735d3,4 (ssd11): Sep 10 04:33:57 zion Error for Command: verify ... (1 Reply)
Discussion started by: bonovox
1 Replies

3. UNIX for Dummies Questions & Answers

How to verify email address using mailx command ?

Is there any way i can verify the email address (before sending the mail) using the mailx command ? I know that sendmail -bv email@address.com can do it but there is a compatibility issues with the version of Unix we have. So mailx is the only command we can used at this point. Any... (1 Reply)
Discussion started by: rak007
1 Replies

4. AIX

Backup with Pax command. How to verify tape?

Dear all experts online, In my environment of AIX 5300-07, I am currently using "pax" command to backup all filesystems that I need to backup and it will take me around 4 hours time with LTO3 tape drive. When I need to verify the tape after backup, I am using "pax" command to list all files in... (2 Replies)
Discussion started by: kwliew999
2 Replies

5. Shell Programming and Scripting

awk command in script gives error while same awk command at prompt runs fine: Why?

Hello all, Here is what my bash script does: sums number columns, saves the tot in new column, outputs if tot >= threshold val: > cat getnon0file.sh #!/bin/bash this="getnon0file.sh" USAGE=$this" InFile="xyz.38" Min="0.05" # awk '{sum=0; for(n=2; n<=NF; n++){sum+=$n};... (4 Replies)
Discussion started by: catalys
4 Replies

6. AIX

verify command

Guy's I have script doing many steps as the below ... ############# ## step1# mount all Files system mount all ## step2# Start the application /app/appsh ############# but some time mount points will not be mounted completely so that will give an error if the next step started... (1 Reply)
Discussion started by: Mr.AIX
1 Replies

7. AIX

command to verify number of files

Guy's I have file system called /appspft has millions of files and I want to know exactly how many file under it Pls advice with that command to verify number of files .. (3 Replies)
Discussion started by: Mr.AIX
3 Replies

8. Shell Programming and Scripting

Verify File exists and execute command

Hi, I am trying to verify that a file exists within an alternate directory. If the file exists, it will execute a copy command...if it does not, it should exit the script. I tried the <test> command and the but keep coming up with syntax errors. I am coding in C Shell and the file... (5 Replies)
Discussion started by: CKT_newbie88
5 Replies

9. AIX

clearing PVID

HI admins, I am not able to clear pvid .I am getting below error. chdev -l hdisk273 -a pv=clear Method error (/usr/lib/methods/chgdisk): 0514-047 Cannot access a device. pv The disk is from SAN. I can clear remove the disk using rmdev.But if i run cfgmgr , this disk apperas... (2 Replies)
Discussion started by: newaix
2 Replies
Net::Jabber::Dialback::Verify(3pm)			User Contributed Perl Documentation			Net::Jabber::Dialback::Verify(3pm)

NAME
Net::Jabber::Dialback::Verify - Jabber Dialback Verify Module SYNOPSIS
Net::Jabber::Dialback::Verify is a companion to the Net::Jabber::Dialback module. It provides the user a simple interface to set and retrieve all parts of a Jabber Dialback Verify. DESCRIPTION
To initialize the Verify with a Jabber <db:*/> you must pass it the XML::Stream hash. For example: my $dialback = new Net::Jabber::Dialback::Verify(%hash); There has been a change from the old way of handling the callbacks. You no longer have to do the above yourself, a NJ::Dialback::Verify object is passed to the callback function for the message. Also, the first argument to the callback functions is the session ID from XML::Streams. There are some cases where you might want this information, like if you created a Client that connects to two servers at once, or for writing a mini server. use Net::Jabber qw(Server); sub dialbackVerify { my ($sid,$Verify) = @_; . . . } You now have access to all of the retrieval functions available. To create a new dialback to send to the server: use Net::Jabber qw(Server); $Verify = new Net::Jabber::Dialback::Verify(); Now you can call the creation functions below to populate the tag before sending it. For more information about the array format being passed to the CallBack please read the Net::Jabber::Client documentation. Retrieval functions $to = $Verify->GetTo(); $from = $Verify->GetFrom(); $type = $Verify->GetType(); $id = $Verify->GetID(); $data = $Verify->GetData(); $str = $Verify->GetXML(); @dialback = $Verify->GetTree(); Creation functions $Verify->SetVerify(from=>"jabber.org", to=>"jabber.com", id=>id, data=>key); $Verify->SetTo("jabber.org"); $Verify->SetFrom("jabber.com"); $Verify->SetType("valid"); $Verify->SetID(id); $Verify->SetData(key); Test functions $test = $Verify->DefinedTo(); $test = $Verify->DefinedFrom(); $test = $Verify->DefinedType(); $test = $Verify->DefinedID(); METHODS
Retrieval functions GetTo() - returns a string with server that the <db:verify/> is being sent to. GetFrom() - returns a string with server that the <db:verify/> is being sent from. GetType() - returns a string with the type <db:verify/> this is. GetID() - returns a string with the id <db:verify/> this is. GetData() - returns a string with the cdata of the <db:verify/>. GetXML() - returns the XML string that represents the <db:verify/>. This is used by the Send() function in Server.pm to send this object as a Jabber Dialback Verify. GetTree() - returns an array that contains the <db:verify/> tag in XML::Parser::Tree format. Creation functions SetVerify(to=>string, - set multiple fields in the <db:verify/> from=>string, at one time. This is a cumulative type=>string, and over writing action. If you set id=>string, the "from" attribute twice, the second data=>string) setting is what is used. If you set the type, and then set the data then both will be in the <db:verify/> tag. For valid settings read the specific Set functions below. SetTo(string) - sets the to attribute. SetFrom(string) - sets the from attribute. SetType(string) - sets the type attribute. Valid settings are: valid invalid SetID(string) - sets the id attribute. SetData(string) - sets the cdata of the <db:verify/>. Test functions DefinedTo() - returns 1 if the to attribute is defined in the <db:verify/>, 0 otherwise. DefinedFrom() - returns 1 if the from attribute is defined in the <db:verify/>, 0 otherwise. DefinedType() - returns 1 if the type attribute is defined in the <db:verify/>, 0 otherwise. DefinedID() - returns 1 if the id attribute is defined in the <db:verify/>, 0 otherwise. AUTHOR
By Ryan Eatmon in May of 2001 for http://jabber.org.. COPYRIGHT
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. perl v5.14.2 2004-08-17 Net::Jabber::Dialback::Verify(3pm)
All times are GMT -4. The time now is 01:01 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy