Run s a script for to use tmconfig in batch mode failed.

This is the script for add a server using tmconfig utility:
$ more add_server.sh
export EDITOR="echo \"TA_SERVERNAME\t$1\nTA_SRVGRP\t$2\nTA_SRVID\t$3\n\" >>$4"
tmconfig <<!
4
4
y
y
q
y
ubb_new.`date +"%y%m%d"`
This is the outpun when I run the script:
$ add_server.sh nuevo1 srv 99 s1
Section: 1) RESOURCES, 2) MACHINES, 3) GROUPS 4) SERVERS
5)SERVICES 6) NETWORK 7) ROUTING q) QUIT 9) WSL
10) NETGROUPS 11) NETMAPS 12) INTERFACES [1]:
Operation: 1) FIRST 2) NEXT 3) RETRIEVE 4) ADD 5) UPDATE
6) CLEAR BUFFER 7) QUIT [1]: Enter editor to add/modify fields [n]? Perform operation [y]? CMDTUX_CAT:1766: ERROR: tpcall() failed, TPESVCFAIL - application level service failure
Return value TAEREQUIRED
Buffer contents:
TA_OPERATION 4
TA_SECTION 3
TA_OCCURS 1
TA_STATE NEW
TA_STATUS LIBTMIB_CAT:236: ERROR: SET operation did not specify required key field
Section: 1) RESOURCES, 2) MACHINES, 3) GROUPS 4) SERVERS
5)SERVICES 6) NETWORK 7) ROUTING q) QUIT 9) WSL
10) NETGROUPS 11) NETMAPS 12) INTERFACES [4]: Unload TUXCONFIG file into backup UBB [y]? Backup filename [UBBCONFIG]? Configuration backed up in ubb_new.050304
I hope that you can help me. Regards.
Marcela.

Marcela,
Your script sets EDITOR to an echo command which appends to $4, which is s1
in your invocation of addserver.sh.
However, tmconfig invokes $EDITOR on file /tmp/Ta$$ , where $$ is the
process ID of tmconfig. Therefore, your script
appends to s1 but leaves the file actually used by tmconfig unchanged,
resulting in an error since the name, group, and ID of the new server have
been left unspecified.
Try setting EDITOR=vi and adding the fields manually to add your server.
If you will be adding new servers frequently and want to develop a script or
program to do this, an ud32 script or a C program invoking the TM_MIB(5)
interface are probably the easiest ways to do this.
Ed
<Marcela Godoy> wrote in message news:[email protected]..
This is the script for add a server using tmconfig utility:
$ more add_server.sh
export EDITOR="echo \"TA_SERVERNAME\t$1\nTA_SRVGRP\t$2\nTA_SRVID\t$3\n\"
$4"tmconfig <<!
4
4
y
y
q
y
ubb_new.`date +"%y%m%d"`
This is the outpun when I run the script:
$ add_server.sh nuevo1 srv 99 s1
Section: 1) RESOURCES, 2) MACHINES, 3) GROUPS 4) SERVERS
5)SERVICES 6) NETWORK 7) ROUTING q) QUIT 9) WSL
10) NETGROUPS 11) NETMAPS 12) INTERFACES [1]:
Operation: 1) FIRST 2) NEXT 3) RETRIEVE 4) ADD 5) UPDATE
6) CLEAR BUFFER 7) QUIT [1]: Enter editor to add/modify fields [n]?Perform operation [y]? CMDTUX_CAT:1766: ERROR: tpcall() failed, TPESVCFAIL -
application level service failure
Return value TAEREQUIRED
Buffer contents:
TA_OPERATION 4
TA_SECTION 3
TA_OCCURS 1
TA_STATE NEW
TA_STATUS LIBTMIB_CAT:236: ERROR: SET operation did not specify requiredkey field
>
Section: 1) RESOURCES, 2) MACHINES, 3) GROUPS 4) SERVERS
5)SERVICES 6) NETWORK 7) ROUTING q) QUIT 9) WSL
10) NETGROUPS 11) NETMAPS 12) INTERFACES [4]: Unload TUXCONFIG file intobackup UBB [y]? Backup filename [UBBCONFIG]? Configuration backed up in
ubb_new.050304
>
>
I hope that you can help me. Regards.
Marcela.

Similar Messages

  • I am trying to update my iTunes to 10.5.1 so that I can upgrade my 3GS phone but am getting the following error message when trying to install the itunes:Install step failed: Run pre upgrade script for apple mobile device support. Contact software manufac

    I am trying to update my iTunes to 10.5.1 so that I can upgrade my 3GS phone but am getting the following error message when trying to install the itunes: Install step failed: Run pre upgrade script for apple mobile device support. Contact software manufacturer for assistance. I am on a MacBook pro running 10.5.8 OS. Has anyone seen this before and how can I get it resolved.
    Thanks for your help in advance....

    Did you ever figure out the problem? "Contact Software Manufacturer"?? That sounds ominous... I've got the same issue and I'm pretty durn aggravated right about now....
    Thanks!

  • I'm not able to upgrade my Mac to itunes 10.5. Keep getting message "Run pre upgrade script for apple mobile device support" any help please?

    Hi I'm not able to upgrade my Mac OS X 10.5.8 to itunes 10.5 Keep getting message "the following install failed. run pre upgrade script for apple mobile device support" contact software manufacture for assistance. any help please?

    Did you ever figure out the problem? "Contact Software Manufacturer"?? That sounds ominous... I've got the same issue and I'm pretty durn aggravated right about now....
    Thanks!

  • I have tried to upgrade Painter 11 on my iMac running OS X 10.5.8. I keep getting the error message :- : The following install step failed : run pre install script for Corel Painter11 _ SP1 . Contact the software manufacturer for assistance   " Help pleas

    I have tried to upgrade Painter 11 on my iMac running OS x 10.5.8 but get the error message : The following install step failed : run pre install script for Corel Painter11_SP1. Contact the software manufacturer for assistance "
    I have contacted Corel and after several emails and one telephone call, they tell me , they cannot help but they think the problem could be with the OS.
    Does anyone have any suggestions, please ?

    Could be many things, we should start with this...
    "Try Disk Utility
    1. Insert the Mac OS X Install disc, then restart the computer while holding the C key.
    2. When your computer finishes starting up from the disc, choose Disk Utility from the Installer menu at top of the screen. (In Mac OS X 10.4 or later, you must select your language first.)
    *Important: Do not click Continue in the first screen of the Installer. If you do, you must restart from the disc again to access Disk Utility.*
    3. Click the First Aid tab.
    4. Select your Mac OS X volume.
    5. Click Repair Disk, (not Repair Permissions). Disk Utility checks and repairs the disk."
    http://docs.info.apple.com/article.html?artnum=106214
    Then try a Safe Boot, (holding Shift key down at bootup), run Disk Utility in Applications>Utilities, then highlight your drive, click on Repair Permissions, reboot when it completes.
    (Safe boot may stay on the gray radian for a long time, let it go, it's trying to repair the Hard Drive.)
    If perchance you can't find your install Disc, at least try it from the Safe Boot part onward.

  • Running a oracle script for multible database on same server

    Hello friends
    I am thinking of creating a script in HP UX which will run a SQL script on multiple oracle in same server. I can do this for one oracle but i'm unable to do it for multiple database.
    I need to do newid oraSID user every time for diff. database .. can u suggest something..
    regards
    Ashish

    Hi Markus,
    Its not working .. When i run this script from my ID, it says SQLPLUS not found. see this .. i have created 1 sql file and 1 script file to call it with exporting ORACLE_HOME & ORACE_SID for one of the system E40.
    Can you suggest something ..
    er3asu82:(/tmp)(xchason)#ll /tmp/testsql.sql /tmp/testscr.dat
    -rwxrwxrwx   1 xchason    dba            109 Aug  9 11:10 /tmp/testscr.dat
    -rwxrwxrwx   1 xchason    dba             32 Aug  9 11:08 /tmp/testsql.sql
    er3asu82:(/tmp)(xchason)#cat /tmp/testsql.sql
    select * from v$instance;
    quit
    er3asu82:(/tmp)(xchason)#cat /tmp/testscr.dat
    #! /bin/ksh
    export ORACLE_HOME=/oracle/E40/102_64
    export ORACE_SID=E40
    sqlplus "/as sysdba" @testsql.sql
    er3asu82:(/tmp)(xchason)#/tmp/testscr.dat
    /tmp/testscr.dat[5]: sqlplus:  not found
    Again when i try to run this from other orasid, it does not work as well..
    er3asu82:oraq52 1> /tmp/testscr.dat
    Error 6 initializing SQL*Plus
    Message file sp1<lang>.msb not found
    SP2-0750: You may need to set ORACLE_HOME to your Oracle software directory
    thanks
    ashish

  • EBS script for counting used licenses

    Hello,
    I'm looking for a script to execute on the database aimed at telling me how many licenses are actually used on my EBS.
    As part of an internal audit on licenses, I need to compare what we use in EBS with what we have bought.
    Concerning what we have bought, I have all the contracts.
    Concerning what we use, i'm looking for a method to determine the exact count.
    Ideally, I was wondering if a database script could exist, regarding that all users, employees and so on are stored in the EBS database.
    I was also wondering if a documentation exists.
    Many thanks.

    Hi,
    you can use this,
    REM:**********************************************************************************************
    REM: Script SCRIPT FOR User Informations
    REM: NOTE: PLEASE TEST THIS SCRIPT BEFORE USE.
    REM: Author will not be responsible for any damage that may be cause by this script.
    set feedback off
    set termout on
    set pagesize 56
    set linesize 800
    ttitle off
    spool D:\userinfo.wri
    set verify off
    set heading on
    Prompt Database Name:
    select 'Database Name (SID): ' || name "name" from v$database;
    prompt
    prompt
    prompt Database Version Informations:
    select * from v$version;
    select username,profile,default_tablespace,temporary_tablespace from dba_users;
    Prompt Database Character Set Informations:
    select * from nls_database_parameters;
    Prompt Database Segment Managment Informations:
    select TABLESPACE_NAME,BLOCK_SIZE,EXTENT_MANAGEMENT,SEGMENT_SPACE_MANAGEMENT from dba_tablespaces;
    Prompt Database Object Informations:
    select owner,object_type,count(1) from dba_objects Where owner not IN ('SYS','MDSYS','CTXSYS','HR','ORDSYS','OE','ODM_MTR','WMSYS','XDB','QS_WS', 'RMAN','SCOTT','QS_ADM','QS_CBADM',
    'ORDSYS','OUTLN','PM','QS_OS','QS_ES','ODM','OLAPSYS','WKSYS','SH','SYSTEM','ORDPLUGINS','QS','QS_CS') group by owner,object_type order by owner;
    Prompt File and Tablespace Informations:
    SELECT file_name,tablespace_name,autoextensible,maxbytes/1048576 FROM dba_data_files;
    spool off
    Hope it help.

  • Script for printing using alternate layout in Word

    I am relatively new to Applescript, but have a basic understanding of commands, etc. I am trying to write a script to print the active document in MSWord in draft quality. I often print large volumes of docs for quick reference but do not need high quality output. I am simply saving ink. How does Applescript access the printing preference settings? The Word script library obviously has no specific commands for the print dialog options, and I don't see any applescript commands to do it either. Since printing is handled by OS X, not by Word, I assume the commands will rest outside of the Word tell block?
    Any help would be super!
    Dual 2.0 G5 PPC   Mac OS X (10.4.8)   1GB DDR GeForce 6800 Ultra Mac Mini 1.4

    It can't be done using only a PDF file - any link to a URL will simply open your web browser, and whatever handler that browser uses when presented with MP3 files will be triggered (download, play, etc.) - nothing in the PDF can override that handler and force a "save" operation.
    Instead you'll need to configure your website to force downloads (using HTTP headers) and link to those URLs instead; which is a subject outside this forum.

  • HT1338 How do I run a preupgrade script for Apple Mobile Device for itunes?

    My computer says that I have an update available but so far into trying to install it tells me the upgrade script is wrong.  Am I able to take care of this by myself or do I need to take it to a store?

    Hello,
    What is the exact name of the upgrade?

  • Script for calculations using checkboxes in PDF form

    I have 7 checkboxes, at least one must be checked, but the user may select all. Each one has a value of 800, therefore selecting all seven would give a total of (800 + 800 + 800 + 800 + 800 + 800 + 800). Selecting only two: (800 + 800), etc.
    However, the last checkbox is a 50% discount for students.
    I'd like the total to have this formula:
    (CheckBox1 + CheckBox2 + CheckBox3 + CheckBox4 + CheckBox5 + CheckBox6 + CheckBox7) = x
    If CheckBox8 is selected, then x/2.
    I've done (CheckBox1 + CheckBox2 + CheckBox3 + CheckBox4 + CheckBox5 + CheckBox6 + CheckBox7) / CheckBox8
    but in this way, I only get a value if the CheckBox8 discount is selected. Not everyone will be a student.
    Excel, Access, no problem, but I'm new to javascript and pdf forms. Any suggestions?
    Isabel

    Two things about Acrobat JavaScirpt and forms you should be aware of:
    1. Check boxes and radio boxes have a string value of "Off" when there is no selection is made for the field or a field within an exclusionary group of fields, fields with the same name but different export values.
    2. One can not divide by zero and expect a reasonable answer. You will get a string returned with a value of "NaN' (Not a Number), "Infinity", or "-Infinity". Those values maybe number types but the numeric field type can not display them and reports a format error. You can check this by setting the field format to 'None'.

  • Is it safe to use PreparedStatement setNull() in a non-batch mode using iplanet JDBC driver in IAS 6.0 SP1? According to iPlanet, there is bug in PreparedStatment setNull() used in a batch mode.

    Anybody know the nature of the bug?

    Hi,
    As of today, the App server does not allow direct access to vendor drivers thru connection pooling. This is mainly due to portability issues. This explains your classcast exception.
    A possible solution to your problem might be the use of custom resources as described in:
    http://docs.sun.com/source/816-7156-10/agj2eres.html#22105

  • Same script for three scenarios

    Need to run the same script for three scenarios. N+1, N+2, N+3 at the same time, every time. I dont wish to replicate into three scripts yet dont know how to combine into one script ! The volumes for each scenario is used to calculate dollarcost. The BUD scenario used in the script below is intentional ie if rate exists in budget, multiply by volumes of various scenarios.
    Existing script
    FIX(_SCENARIO_,"FY10","AUD")
              fix(@IDESCENDANTS("DIV 1"),@IDESCENDANTS("DIV 2"))
                   "DollarCost1"
                        (IF("Rate1"->"BUD"->"AUD"-> "Division"-> "P13" > 0)
                             "DollarCost1" = "Rate1"->"BUD"->"AUD"->"Division"->"P13" * "Litres"->"*SCENARIO*";
                        ELSE "DollarCost1" = "ActCost1";
                        ENDIF;)
              "DollarCost2"
                   (IF("Rate2"->"BUD"->"AUD"-> "Division"->"P13" > 0)
                        "DollarCost2" = "Rate2"->"BUD"->"AUD"->"Division"->"P13" * "Litres"->"*SCENARIO*";
                   ELSE "DollarCost2" = "ActCost2";
                   ENDIF;)
              "DollarCost3"
                   (IF("Rate3"->"BUD"->"AUD"-> "Division"->"P13" > 0)
                        "DollarCost3" = "Rate3"->"BUD"->"AUD"->"Division"->"P13" * "Litres"->"*SCENARIO*";
                   ELSE "DollarCost3" = "ActCost3";
                   ENDIF;)
              "DollarCost4"
                   (IF("Rate4"->"BUD"->"AUD"-> "Division" ->"P13" 0)
                        "DollarCost4" = "Rate4"->"BUD"->"AUD"->"Division ->"P13" * "Litres"->"*SCENARIO*";
                   ELSE "DollarCost4" = "ActCost4";
                   ENDIF;)
         ENDFIX

    May be lame but a possibility:
    FIX(_N+1, N+2, N+3_,"FY10","AUD")
    fix(@IDESCENDANTS("DIV 1"),@IDESCENDANTS("DIV 2"))
    "DollarCost1"
    (IF("Rate1"->"BUD"->"AUD"-> "Division"-> "P13" > 0)
    "DollarCost1" -> N+1 = "Rate1"->"BUD"->"AUD"->"Division"->"P13" * "Litres"->"*N+1*";
    "DollarCost1" -> N+2 = "Rate1"->"BUD"->"AUD"->"Division"->"P13" * "Litres"->"*N+2*";
    "DollarCost1" -> N+3 = "Rate1"->"BUD"->"AUD"->"Division"->"P13" * "Litres"->"*N+3*";
    ELSE "DollarCost1" -> N+1 = "ActCost1-> N+1";
    "DollarCost1" -> N+2 = "ActCost1-> N+2;
    "DollarCost1" -> N+3 = "ActCost1-> N+3;
    ENDIF;)
    Or is there a better way of doing this?

  • Error in RBDMIDOC report run in E-REC, for data transfer from HR to EREC system

    Hi,
    We are on EHP5, EREC 605, SP0007. EREC is on a standalone, separate instance. HR in a separate instance.
    We have created new org.units & positions, which we are trying to move from HR to EREC system for starting the EREC process.
    In the report message type, gave input "HRMD_ABA", The output throws this error. (Screenshot attached)
    Please provide your helps on the reasons for the error and corrective action to be taken.
    Regards,
    ER.

    Thank Nicole for the reply.
    Just extending my query,
    I have  created newly 2 org.units & 2 positions under the org.units in HR system.I
    If i want to create a requisition as a recruiter from EREC portal,  for that newly created vacant positions, what needs to be done?
    How  to move that new vacant org.unit with position to EREC system ?
    Should I run the org.unit with positions using PFAL (Insert/update mode) or use RBDMIDOC method ?
    Look for inputs.
    Regards,
    ER.

  • Formatting a previously used RAID drive for re-use

    Hello,
    I had an odd request from a client. He has a XServe RAID with 2 RAID sets - one on each side - with all bays filled on each side. He purchased replacement modules for each side, and wanted to pull a working drive from each side, and put the new ones in. It was his thinking that he would know absolutely that he had two good drives on the shelf ready to use (the ones that were pulled). Having given reasons not to do this etc., and with many warnings, I complied (after conditioning the RAID sets and rebuilding parity.)
    My question is, how do I format the drives that were pulled to prepare them for re-use if a drive modules fails? A simple format with disk utility? I'm worried that there is some signature on the modules that will, when inserted, think it is already part of the RAID, and mess things up.
    So, will a re-partition and format in DiskUtility do it? I'll be using a drive dock with the disk out of the RAID chassis.
    Thanks!

    Hello, e2o, and welcome to the Apple Boards,
    Your instincts are good because the RAID will see it as a previously used drive if/when you reinsert it. All you should need to do, however, is go into RAID Admin and use "Make Drive Available for Use" and the RAID should then run with it. This is a safety measure to keep the RAID from claiming drives that you stick into it without "asking". The only time this should be a problem is if the drive were intended to be used as a "hot spare" because the RAID wouldn't use it until you manually intervened.
    You could blank the disk if you want to but it shouldn't be necessary as long as you're aware of the RAID Admin function.
    =Tod

  • Startup Scripts for OBIEE 11g on Linux

    Hi, I originally spent many hours trying to find a startup/shutdown script for OBIEE on linux, in the end I compiled a new one based on notes in the install manual and other posts on the subject until I got it working consistantly
    Please add comments or improvements :)
    Note: you need to create the boot.properties file (in /security) for each server, and provide the username/password so WebLogic won't prompt for it when starting automatically (otherwise it doesn't start :p) ....refer to the install manual or [weblogic boot.properties|http://onlineappsdba.com/index.php/2010/08/21/weblogic-startup-prompting-from-username-password-bootproperties/]
    #!/bin/bash
    # /etc/init.d/obiee
    # Run-level Startup script for OBIEE
    # set required paths
    export ORACLE_BASE=/opt/oracle
    export ORACLE_HOME=/opt/oracle/product/11.1.0/db_1
    export ORACLE_OWNR=oracle
    export ORACLE_FMW=/opt/oracle/product/fmw
    export PATH=$PATH:$ORACLE_FMW/bin
    case "$1" in
    start)
    echo -e "Starting Weblogic Server...."
    su $ORACLE_OWNR -c "$ORACLE_FMW/user_projects/domains/bifoundation_domain/bin/startWebLogic.sh > /dev/null 2>&1 &"
    sleep 30
    echo -e "Starting Node Manager..."
    su $ORACLE_OWNR -c "$ORACLE_FMW/wlserver_10.3/server/bin/startNodeManager.sh > /dev/null 2>&1 &"
    sleep 30
    echo -e "Starting Managed Server: bi_server1..."
    su $ORACLE_OWNR -c "$ORACLE_FMW/user_projects/domains/bifoundation_domain/bin/startManagedWebLogic.sh bi_server1 [url for admin console] > /dev/null 2>&1 &"
    sleep 30
    echo -e "Starting Components...."
    su $ORACLE_OWNR -c "$ORACLE_FMW/instances/instance1/bin/opmnctl startall > /dev/null 2>&1 &"
    sleep 30
    stop)
    echo -e "Stopping Components...."
    su $ORACLE_OWNR -c "$ORACLE_FMW/instances/instance1/bin/opmnctl stopall > /dev/null 2>&1 &"
    sleep 30
    echo -e "Stopping Managed Server: bi_server1..."
    su $ORACLE_OWNR -c "$ORACLE_FMW/user_projects/domains/bifoundation_domain/bin/stopManagedWebLogic.sh bi_server1 [url for admin console] [weblogic user] [weblogic pass] > /dev/null 2>&1 &"
    sleep 30
    echo -e "Stopping Weblogic Server...."
    su $ORACLE_OWNR -c "$ORACLE_FMW/user_projects/domains/bifoundation_domain/bin/stopWebLogic.sh > /dev/null 2>&1 &"
    sleep 15
    status)
    echo -e "Component Status...."
    su $ORACLE_OWNR -c "$ORACLE_FMW/instances/instance1/bin/opmnctl status"
    restart)
    $0 stop
    $0 start
    echo "Usage: `basename $0` start|stop|restart|status"
    exit 1
    esac
    exit 0
    Hopefully this helps others in the same situation
    Cheers

    HI,
    Is this script for Enterprise Install on a single computer? For Simple install I think there is no concept of nodemanager and managedserver.
    --Joe                                                                                                                                                                                                                                                                                                                           

  • Running scripts in SQL developer in batch mode (windows 7)

    Hi
    Can anybody share the steps to run a set of SQLs in SQL developer in batch mode in Windows 7
    Regards
    -Learnsequel
    Edited by: 910874 on Jul 25, 2012 9:13 AM

    910874 wrote:
    was thinking of something like this
    1) Create a .txt file name 'mysqlfile.txt' in desktop which contains the below statements
    Create table A
    Create table B
    2) Create a .bat file name 'run.bat' and kept in desktop which contains the below statements ( syntax may not be correct though)
    sqlplus -s <DBusername>/<pwd>@//<Hostname>:<port>/<SID>@<C:\Users\<username>\Desktop/mysqlfile.txt>
    3) Double click 'run.bat'
    Any thought?
    Regards
    -Learnsequelit can be made to work;
    but it is a run ONCE file since errors get throw on second & subsequent runs

Maybe you are looking for

  • Solution Manager instance install with on differnt platform than ERP system

    Hello, I am working on a project to implement Solution Manager 7.0 in our landscape (SAP 4.7).  Our current servers are running on HP-UX 11 with Oracle 9.4.0.2 database.  We are considering implementing SolMan on a different OS (Linux & Windows the p

  • External  Hard Drive stuck on Read Only

    I just moved an external hard drive that had been attached to a Vista PC over to my Mac. However, I can't edit anything on the disk from my Mac, because it's in Read Only mode. I'm sure Vista set some sort of security on it, but from Vista I gave eve

  • EXCEPTION EXCEL ERROR 0X800A03EC ON SAVE.AS COMMAND

    i am facing a problem on save as command. i m currently working on a project in which i take the data from the the database and row by row i print it on the excel file . but on saving it generates the error code 0x800a03ec .. dont know why .. the sim

  • How to use collect?

    hi all , i want to add net value of all the line items which are in the same group am using collect but am unable to do that. plz suggest me what to do? DATA: BEGIN OF del_grp_data occurs 0,         vbeln like vbap-vbeln,  " Sales document         gr

  • What is happening to the 'Username list'?

    Perhaps it is because the Email system is still in transition, but it appears that the very useful 'Username list' is not going to be available. As I have a number of secondary accounts having such a list is a timesaver; if the new BT version fails t