Forum Discussion

NIKHIL234656595's avatar
13 years ago

tpautoconf

 

-bash-3.2$ sudo ./tpautoconf -r

 

TPAC60 IBM     3576-MTL        587G 000001320426_LLA -1 -1 -1 -1 /dev/sg55 - -

TPAC60 IBM     3576-MTL        587G 000001320425_LLA -1 -1 -1 -1 /dev/sg53 - -

TPAC60 IBM     3576-MTL        587G 000001320426_LLA -1 -1 -1 -1 /dev/sg26 - -

TPAC60 IBM     3576-MTL        587G 000001320425_LLA -1 -1 -1 -1 /dev/sg28 - -

 

-bash-3.2$ sudo ./tpautoconf -t

TPAC60 IBM     ULT3580-TD4     A239 1310254587 -1 -1 -1 -1 /dev/nst3 - -

TPAC60 IBM     ULT3580-TD4     A239 1310254632 -1 -1 -1 -1 /dev/nst2 - -

TPAC60 IBM     ULT3580-TD4     A239 1310255704 -1 -1 -1 -1 /dev/nst1 - -

TPAC60 IBM     ULT3580-TD4     A239 1310254613 -1 -1 -1 -1 /dev/nst0 - -

 

What these lines predict? the output of the command 

  •  

    I don't know what all the fields are, let me show you how to work out at least some of them

    Given that tpautoconf is more or less the same command as scan (just output is formatted differenly) let's run scan and see what we can identify.

    From scan
     
    Device Name  : "/dev/sg/c0t5l1"
    Passthru Name: "/dev/sg/c0t5l1"
    Volume Header: ""
    Port: -1; Bus: -1; Target: -1; LUN: -1
    Inquiry    : "HP      DAT72X6         B604"
    Vendor ID  : "HP      "
    Product ID : "DAT72X6         "
    Product Rev: "B604"
    Serial Number: "000053107P"
    WWN          : ""
    WWN Id Type  : 0
    Device Identifier: "HP      DAT72X6         000053107P08"
    Device Type    : SDT_CHANGER
    NetBackup Robot Type: 7
    Removable      : Yes
    Device Supports: SCSI-3
    Number of Drives : 1
    Number of Slots  : 6
    Number of Media Access Ports: 0
    Flags : 0x0
    Reason: 0x0
     
     
    root@womble  $ tpautoconf -t
    TPAC60 HP      DAT72X6         B604 000053107P -1 -1 -1 -1 /dev/rmt/0cbn - -
     
     
    Not sure what TPAC60 is, as it is the same on your output and mine, and given we ave differnt drive makes, it appears to be some NBU id.
    HP is the make
    DAT72X6 is the Product ID (found this in scan)
    B604 is the product revision (from scan again), I guess this is the firmware level
    000053107P is the serial number (from scan again)
    -1 -1 -1 -1  appears to be the port/bus/target/lun (from scan)
    /dev/rmt/0cbn is the device file
    Cannot identify the last two -   They seemed to be unused,

    Hope this helps,

     

    Martin

  • tpautoconf  ------  discover and configure devices

    The Device Configuration Wizard normally uses tpautoconf to discover devices.

    This wizard calls tpautoconf with a different set of options.
    The get and the set options are useful in special situations. For example, use
    them to specify a different host as the Enterprise Media Manager (EMM) server.
    The EMM server name is automatically defined when NetBackup is installed.
    For more information about how to manage the EMM server, refer to "Managing
    the EMM server" of the NetBackup Administrator’s Guide, Volume I.
     
     
  • i want to know what are these in the output og the command,

     

    TPAC60 IBM     3576-MTL        587G 000001320426_LLA -1 -1 -1 -1 /dev/sg55 - -

    TPAC60 IBM     3576-MTL        587G 000001320425_LLA -1 -1 -1 -1 /dev/sg53 - -

    TPAC60 IBM     3576-MTL        587G 000001320426_LLA -1 -1 -1 -1 /dev/sg26 - -

    TPAC60 IBM     3576-MTL        587G 000001320425_LLA -1 -1 -1 -1 /dev/sg28 - -

     

     

  • I answered this exact question before.

    -r shows the robots

    -t shows the drives

    Why do you not read the questions you posted before.  I even suggested to you that you wrote down in a document, the questions you have asked, so that you can look back before asking the question.

    But, and you not able to work this out yourself ...  

    You know, hopefully that the tpautconf command is to do with drives and libraries ...

    therefore r might just possbly stand for 'robot' and t might stand for 'tapedrive'.

    Are you not able to see what this is for example ...

     

    TPAC60 IBM     ULT3580-TD4     A239 1310254587 -1 -1 -1 -1 /dev/nst3 - -

    It says ULT3580-TD4 and mentions IBM in the line - is this not obvious that it is a  tape drive.
     
    Martin
  • Anonymous's avatar
    Anonymous

    Got a command line, so use it to best of your abilities.

    tpautoconf -Q

    Q for me means Question or Query about the command preceeding it. Thankfully for some versions of NetBackup it holds some extra but helpful information about commands. So issue -Q after some commands to get more of a detail.

     

     tpautoconf -a | -t | -r | -w [-q | -v | -java]
      -a
          Attempt to configure all discovered devices and return a list
          of all devices configured and unconfigured.
      -t
          Return a list of tape drives discovered.
      -r
          Return a list of robots discovered.
      -w
          Return a list of API style robots.
      -q
          Turn on quiet mode.
      -v
          Turn on verbose mode.
      -java
          Format the output for java GUIs.
      -browse
          Return a list of drives discovered, both tape and optical.
          Used for browse button.
     

    Suggest you add that tip your noteboook. Or add the MANPATH into your system for the NetBackup man pages.

    Spot on Martin.

  •  

    I don't know what all the fields are, let me show you how to work out at least some of them

    Given that tpautoconf is more or less the same command as scan (just output is formatted differenly) let's run scan and see what we can identify.

    From scan
     
    Device Name  : "/dev/sg/c0t5l1"
    Passthru Name: "/dev/sg/c0t5l1"
    Volume Header: ""
    Port: -1; Bus: -1; Target: -1; LUN: -1
    Inquiry    : "HP      DAT72X6         B604"
    Vendor ID  : "HP      "
    Product ID : "DAT72X6         "
    Product Rev: "B604"
    Serial Number: "000053107P"
    WWN          : ""
    WWN Id Type  : 0
    Device Identifier: "HP      DAT72X6         000053107P08"
    Device Type    : SDT_CHANGER
    NetBackup Robot Type: 7
    Removable      : Yes
    Device Supports: SCSI-3
    Number of Drives : 1
    Number of Slots  : 6
    Number of Media Access Ports: 0
    Flags : 0x0
    Reason: 0x0
     
     
    root@womble  $ tpautoconf -t
    TPAC60 HP      DAT72X6         B604 000053107P -1 -1 -1 -1 /dev/rmt/0cbn - -
     
     
    Not sure what TPAC60 is, as it is the same on your output and mine, and given we ave differnt drive makes, it appears to be some NBU id.
    HP is the make
    DAT72X6 is the Product ID (found this in scan)
    B604 is the product revision (from scan again), I guess this is the firmware level
    000053107P is the serial number (from scan again)
    -1 -1 -1 -1  appears to be the port/bus/target/lun (from scan)
    /dev/rmt/0cbn is the device file
    Cannot identify the last two -   They seemed to be unused,

    Hope this helps,

     

    Martin