AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.


#Power
#Power
#Operatingsystems
#Servers
 View Only
Expand all | Collapse all

Difference in -outfile output when executed through ssh or on the server

  • 1.  Difference in -outfile output when executed through ssh or on the server

    Posted 09/05/14 04:41 AM

    Originally posted by: tpersoon


    When I run ssh user@IP 'dsmadmc -id=username -password=passwd -outfile=backupset.txt "q backupset"' I get output looking like this:

    Node Name: CODAPR_RG_ORADATA_M
    Backup Set Name: MAANDBACKUPSET.112735191
    Data Type: File
    Date/Time: 2014.07.03 06:02:43
    Retention Period: No Limit
    Device Class Name: TAPE_CLASS
    Description: Maandafsluiting 2014 07 03
    Has Table of Contents (TOC)?: Yes
     
    When I run the same command (dsmadmc -id=username -password=passwd -outfile=backupset.txt "q backupset") I get output like this:
    Node Name      Backup Set Name        Data Type         Date/Time              Retention   Device                Description        Has Table
                                                                                                                           Period        Class Name                                 of Conten-
                                                                                                                                                                                                  ts (TOC)?
    -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    CODAPR_RG_ORAD-     MAANDBACKUPSET-   File              2014.03.03 06:03:13    No Limit    TAPE_CLASS   Maandafsluiting          Yes
     ATA_M                             .102636326                                               2014 03 03
     

    How is this possible? I want the first output, but not through running ssh


    #AIX-Forum


  • 2.  Re: Difference in -outfile output when executed through ssh or on the server

    Posted 09/05/14 04:06 PM

    Originally posted by: GarlandJoseph


    It could be because of a difference in your terminal type  when you SSH versus when you are logged in interactively.  Do this:

     

    In other words, the output from 'dsmadmc is formatted based on terminal type.

     

    Things to try

    ssh user@IP "echo $TERM"   #comare to echo $TERM when you login interactively

    login and export TERM=dumb   #or some other terminal type


    #AIX-Forum