Sponsored Content
Operating Systems AIX How to add the attribute to odm if it contains negative value? Post 302821231 by MichaelFelt on Friday 14th of June 2013 08:27:50 AM
Old 06-14-2013
1) I notice a space between the = token and the value hdisk7. This might have influence.
2) What does the simple odmget queries return (something/nothing)
Code:
 $ odmget -q name=hdisk7 CuAt
$ odmget -q attribute=odm_wait CuAt

If neither of these return a value, especially the one you want, then try to understand why it is failing.

Note: you can create a text file to add an attribute using odmadd.

Code:
$ echo "CuAt:\
        name = "hdisk7" \
        attribute = "odm_wait" \
        value = "-1" \
" >myadd.text
$ su root
# odmadd myadd.text

I am wondering if this is really something I would want to do using CuAt as there are other attributes that get updated.

Hope this helps!

---------- Post updated at 01:27 PM ---------- Previous update was at 01:20 PM ----------

OK, I read the infocenter documentation:
Quote:
odm_lock Subroutine

Purpose

Puts an exclusive lock on the requested path name.

Library

Object Data Manager Library (libodm.a)

Syntax

#include <odmi.h> int odm_lock ( LockPath, TimeOut)
char *LockPath;
int TimeOut;
....


Parameters

Item Description LockPath Specifies a string containing the path name in the file system in which to locate object classes or the path name to an object class to lock. TimeOut Specifies the amount of time, in seconds, to wait if another application or method holds a lock on the requested object class or classes. The possible values for the TimeOut parameter are: TimeOut = ODM_NOWAIT The odm_lock subroutine is unsuccessful if the lock cannot be granted immediately.TimeOut = Integer The odm_lock subroutine waits the specified amount of seconds to retry an unsuccessful lock request.TimeOut = ODM_WAIT The odm_lock subroutine waits until the locked path name is freed from its current lock and then locks it.
The define values you specify are for the call to odm_lock() and not meant as an attribute in a ODM record. IMHO, the "LockPath" parameter is the pathname of the classfile (e.g., ${ODMDIR}/CuAt)

Hope this helps!
 

10 More Discussions You Might Find Interesting

1. Linux

File attribute Help please

Could anyone help i have a question that i have a problem with for my home work it is, How do i change file permissions in a command line enviromet thanx (1 Reply)
Discussion started by: Cube3k
1 Replies

2. UNIX for Advanced & Expert Users

Clean an LV out of the ODM

I recently had a disk crash and was not able to clean the dump lv off the disk. Now trying to create new lvdump I am running into errors. My question is how do I remove the old lv out of the ODM? I have tried going through smit and also just rmlv and it cannot find the lv. Yet when I run lslv on... (0 Replies)
Discussion started by: Wamland
0 Replies

3. UNIX Benchmarks

ocs_vtsup: error locking odm database

Someone know something about this error ? We have 5.2 and HACMP Cluster. (1 Reply)
Discussion started by: hjara
1 Replies

4. AIX

Removing devices from ODM

I have replace a couple of hdisks in and old AIX 4 system. I have them assigned to the hdisk numbers previously in the system. When I don an lsvg -p vgname, i see them old devices by device number still come up as missing. I think they are still in the ODM,, how can I remove them? Thanks Mike (5 Replies)
Discussion started by: mhenryj
5 Replies

5. AIX

Script for Comparing VGDA and ODM

Hi there guys, if you have already this script as this will help us in determining of the two are consistent, and if it is not, which is the one correct. Hope you also have for this one.:) (1 Reply)
Discussion started by: sky_lark02
1 Replies

6. AIX

Odm & Lvm

Can i have BIG help on ODM and LVM??? I m new to AIX..... Devang (2 Replies)
Discussion started by: 10aix
2 Replies

7. AIX

remove default gateway on ODM

Hi All, I remove the default gateway by using a command line but I need also to remove it from ODM so that reboot will not trigger it back. How do I remove it from ODM of AIX 5.3? Thanks for any comment you may add. (4 Replies)
Discussion started by: itik
4 Replies

8. AIX

Problem with the ODM base

Hi, I gonna try to explain my problem. When I list my tty I have something like that: sa3 is the RAN where the tty are connected. Yesterday I tried to delete every tty from the RAN I had a problem with a tty which was not possible to delete with rmdev -dl, so I had to : - delete it... (0 Replies)
Discussion started by: Castelior
0 Replies

9. AIX

Removing object from ODM base

Hello! I did a big mistake and now I have to change the ODM base manually :wall: I had a server of test with 2 VG (rootvg and datavg). I had to test something on it with an other AIX version. So, to be sure to restore it, i did a mksysb before but I had completly forgotten the second vg and... (1 Reply)
Discussion started by: Castelior
1 Replies

10. AIX

AIX Migration issue with EMC ODM sets

Hi Experts , I want to start migrating our AIX 6.1 to AIX 7.1 . I am planning to use alt_disk_migration . Chris gibson has awesome documentation in the internet. However I am running into an issue with EMC odm filesets . So my current OS is AIX 6.1. and I have this : lslpp -l | grep EMC ... (7 Replies)
Discussion started by: JME2015
7 Replies
MooseX::AttributeHelpers::Number(3pm)			User Contributed Perl Documentation		     MooseX::AttributeHelpers::Number(3pm)

NAME
MooseX::AttributeHelpers::Number - numerical attribute type SYNOPSIS
package Real; use Moose; use MooseX::AttributeHelpers; has 'integer' => ( metaclass => 'Number', is => 'ro', isa => 'Int', default => sub { 5 }, provides => { set => 'set', add => 'add', sub => 'sub', mul => 'mul', div => 'div', mod => 'mod', abs => 'abs', } ); my $real = Real->new(); $real->add(5); # same as $real->integer($real->integer + 5); $real->sub(2); # same as $real->integer($real->integer - 2); DESCRIPTION
This provides a simple numeric attribute, which supports most of the basic math operations. METHODS
meta helper_type method_constructors PROVIDED METHODS
It is important to note that all those methods do in place modification of the value stored in the attribute. set ($value) Alternate way to set the value. add ($value) Adds the current value of the attribute to $value. sub ($value) Subtracts the current value of the attribute to $value. mul ($value) Multiplies the current value of the attribute to $value. div ($value) Divides the current value of the attribute to $value. mod ($value) Modulus the current value of the attribute to $value. abs Sets the current value of the attribute to its absolute value. BUGS
All complex software has bugs lurking in it, and this module is no exception. If you find a bug please either email me, or add the bug to cpan-RT. AUTHOR
Robert Boone COPYRIGHT AND LICENSE
Copyright 2007-2009 by Infinity Interactive, Inc. <http://www.iinteractive.com> This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. perl v5.10.1 2010-01-02 MooseX::AttributeHelpers::Number(3pm)
All times are GMT -4. The time now is 04:08 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy