'Operating System'에 해당되는 글 9건

  1. 2015.03.31 AIX CLI -TAPE 관련
  2. 2013.04.16 When AIX changer does not recognize
  3. 2009.01.07 AX for the System Administrator
  4. 2009.01.05 Windows Command Line
  5. 2009.01.05 Netstat [2]
  6. 2009.01.05 GETMAC
  7. 2009.01.05 The Start Run Line
  8. 2009.01.05 Netstat
  9. 2009.01.05 Widows Command Line

AIX CLI -TAPE 관련

2015. 3. 31. 20:05 from Operating System/AIX
반응형

[filabmdb:root] / > lsslot -c pci

# Slot                   Description                              Device(s)

U789D.001.DQD01VK-P1-C1  PCI-E capable, Rev 1 slot with 8x lanes  fcs0 fcs1

U789D.001.DQD92K4-P1-C1  PCI-E capable, Rev 1 slot with 8x lanes  fcs2 fcs3

U789D.001.DQD01VK-P1-C2  PCI-E capable, Rev 1 slot with 8x lanes  Empty

U789D.001.DQD92K4-P1-C2  PCI-E capable, Rev 1 slot with 8x lanes  Empty

U789D.001.DQD01VK-P1-C3  PCI-E capable, Rev 1 slot with 8x lanes  Empty

U789D.001.DQD92K4-P1-C3  PCI-E capable, Rev 1 slot with 8x lanes  Empty

U789D.001.DQD01VK-P1-C4  PCI-X capable, 64 bit, 266MHz slot       ent4

U789D.001.DQD92K4-P1-C4  PCI-X capable, 64 bit, 266MHz slot       sisscsia0

U789D.001.DQD01VK-P1-C5  PCI-X capable, 64 bit, 266MHz slot       fcs8

U789D.001.DQD92K4-P1-C5  PCI-X capable, 64 bit, 266MHz slot       Empty

U789D.001.DQD01VK-P1-C6  PCI-E capable, Rev 1 slot with 8x lanes  Empty

U789D.001.DQD92K4-P1-C6  PCI-E capable, Rev 1 slot with 8x lanes  Empty

[filabmdb:root] / >

 

[filabmdb:root] / > lsdev |grep rmt

rmt0         Available 02-08-02     Other FC SCSI Tape Drive

rmt1         Available 02-08-02     Other FC SCSI Tape Drive

rmt2         Available 09-08-01-0,0 LVD SCSI 4mm Tape Drive

[filabmdb:root] / > lscfg -vpl rmt0

  rmt0             U789D.001.DQD01VK-P1-C5-T1-W2008000E1115214B-L0  Other FC SCSI Tape Drive

 

        Manufacturer................IBM    

        Machine Type and Model......ULT3580-HH6    

        Serial Number................

        Device Specific.(Z3)........0000

 

 

  PLATFORM SPECIFIC

 

  Name:  tape

    Node:  tape

    Device Type:  byte

[filabmdb:root] / > lscfg -vpl rmt1

  rmt1             U789D.001.DQD01VK-P1-C5-T1-W2002000E1115214B-L0  Other FC SCSI Tape Drive

 

        Manufacturer................IBM    

        Machine Type and Model......ULT3580-HH6    

        Serial Number................

        Device Specific.(Z3)........0000

 

 

  PLATFORM SPECIFIC

 

  Name:  tape

    Node:  tape

    Device Type:  byte

[filabmdb:root] / >

 

 

 

 

[filabmdb:root] / > mt -f /dev/rmt0 status

rmt0 Available 02-08-02 Other FC SCSI Tape Drive

attribute      value              description                               user_settable

 

block_size     512                BLOCK size (0=variable length)            True

delay          45                 Set delay after a FAILED command          True

density_set_1  0                  DENSITY setting #1                        True

density_set_2  0                  DENSITY setting #2                        True

extfm          yes                Use EXTENDED file marks                   True

location                          Location Label                            True

lun_id         0x0                Logical Unit Number ID                    False

mode           yes                Use DEVICE BUFFERS during writes          True

node_name      0x2007000e1115214b FC Node Name                              False

res_support    no                 RESERVE/RELEASE support                   True

ret_error      no                 RETURN error on tape change or reset      True

rwtimeout      144                Set timeout for the READ or WRITE command True

scsi_id        0x10e00            SCSI ID                                   False

var_block_size 0                  BLOCK SIZE for variable length support    True

ww_name        0x2008000e1115214b FC World Wide Name                        False

[filabmdb:root] / > mt -f /dev/rmt1 status

rmt1 Available 02-08-02 Other FC SCSI Tape Drive

attribute      value              description                               user_settable

 

block_size     512                BLOCK size (0=variable length)            True

delay          45                 Set delay after a FAILED command          True

density_set_1  0                  DENSITY setting #1                        True

density_set_2  0                  DENSITY setting #2                        True

extfm          yes                Use EXTENDED file marks                   True

location                          Location Label                            True

lun_id         0x0                Logical Unit Number ID                    False

mode           yes                Use DEVICE BUFFERS during writes          True

node_name      0x2001000e1115214b FC Node Name                              False

res_support    no                 RESERVE/RELEASE support                   True

ret_error      no                 RETURN error on tape change or reset      True

rwtimeout      144                Set timeout for the READ or WRITE command True

scsi_id        0x10f00            SCSI ID                                   False

var_block_size 0                  BLOCK SIZE for variable length support    True

ww_name        0x2002000e1115214b FC World Wide Name                        False

[filabmdb:root] / >

 

 

 

 

 

도움이 될법한 정보는 모두 공유드립니다

 

Fcs8 관련 정보

 

 

#######################################33

 

[filabmdb:root] / > fcstat fcs8|more

 

FIBRE CHANNEL STATISTICS REPORT: fcs8

 

Device Type: FC Adapter (df1000fd)

Serial Number: 1B8150486E

Option ROM Version: 02C82774

Firmware Version: B1D2.70A5

World Wide Node Name: 0x20000000C9764BE2 World Wide Port Name: 0x10000000C9764BE2

 

FC-4 TYPES:

  Supported: 0x0000012000000000000000000000000000000000000000000000000000000000

  Active:    0x0000010000000000000000000000000000000000000000000000000000000000

Class of Service: 3

Port Speed (supported): 4 GBIT

Port Speed (running):   4 GBIT

Port FC ID: 0x010A00

Port Type: Fabric

 

Seconds Since Last Reset: 4213           

 

        Transmit Statistics     Receive Statistics

        -------------------     ------------------

Frames: 4294967295              3201773008     

Words:  1099511627520           33625874432    

 

LIP Count: 0              

NOS Count: 0              

Error Frames:  170            

Dumped Frames: 0              

Link Failure Count: 0              

Loss of Sync Count: 1              

Loss of Signal: 0              

Primitive Seq Protocol Error Count: 0              

Invalid Tx Word Count: 2               

Invalid CRC Count: 170            

 

IP over FC Adapter Driver Information

  No DMA Resource Count: 0              

  No Adapter Elements Count: 0              

 

FC SCSI Adapter Driver Information

  No DMA Resource Count: 0              

  No Adapter Elements Count: 0

 

No Command Resource Count: 0              

 

IP over FC Traffic Statistics

  Input Requests:   0              

  Output Requests:  0              

  Control Requests: 0              

  Input Bytes:  0              

  Output Bytes: 0              

 

FC SCSI Traffic Statistics

  Input Requests:   57             

  Output Requests:  3850033        

  Control Requests: 34             

  Input Bytes:  134426         

  Output Bytes: 126157258980   

stdin: END

 

##########################################################3

[filabmdb:root] / > lsdev -Cc adapter

ent0      Available       Logical Host Ethernet Port (lp-hea)

ent1      Available       Logical Host Ethernet Port (lp-hea)

ent2      Available       Logical Host Ethernet Port (lp-hea)

ent3      Available       Logical Host Ethernet Port (lp-hea)

ent4      Available 00-08 Gigabit Ethernet-SX PCI-X Adapter (14106802)

fcs0      Available 03-00 4Gb FC PCI Express Adapter (df1000fe)

fcs1      Available 03-01 4Gb FC PCI Express Adapter (df1000fe)

fcs2      Available 0A-00 4Gb FC PCI Express Adapter (df1000fe)

fcs3      Available 0A-01 4Gb FC PCI Express Adapter (df1000fe)

fcs4      Defined   04-00 4Gb FC PCI Express Adapter (df1000fe)

fcs5      Defined   04-01 4Gb FC PCI Express Adapter (df1000fe)

fcs6      Defined   0B-00 4Gb FC PCI Express Adapter (df1000fe)

fcs7      Defined   0B-01 4Gb FC PCI Express Adapter (df1000fe)

##

fcs8      Available 02-08 FC Adapter

##

lhea0     Available       Logical Host Ethernet Adapter (l-hea)

lhea1     Available       Logical Host Ethernet Adapter (l-hea)

sissas0   Available 0E-08 PCI-X266 Planar 3Gb SAS Adapter

sissas1   Available 0G-08 PCI-X266 Planar 3Gb SAS Adapter

sisscsia0 Available 09-08 PCI-XDDR Dual Channel Ultra320 SCSI Adapter

usbhc0    Available 0F-08 USB Host Controller (33103500)

usbhc1    Available 0F-09 USB Host Controller (33103500)

usbhc2    Available 0H-08 USB Host Controller (33103500)

usbhc3    Available 0H-09 USB Host Controller (33103500)

usbhc4    Available 0F-0a USB Enhanced Host Controller (3310e000)

usbhc5    Available 0H-0a USB Enhanced Host Controller (3310e000)

vsa0      Available       LPAR Virtual Serial Adapter

[filabmdb:root] / >

 

############################################################3

[filabmdb:root] / > lscfg -vpl fcs8

  fcs8             U789D.001.DQD01VK-P1-C5-T1  FC Adapter

 

        Part Number.................03N5014

        EC Level....................A

        Serial Number...............1B8150486E

        Manufacturer................001B

        Customer Card ID Number.....280D

        FRU Number.................. 03N5014

        Device Specific.(ZM)........3

 

##### WWN##########3

        Network Address.............10000000C9764BE2

 

        ROS Level and ID............02C82774

        Device Specific.(Z0)........1036406D

        Device Specific.(Z1)........00000000

        Device Specific.(Z2)........00000000

        Device Specific.(Z3)........03000909

        Device Specific.(Z4)........FFC01231

        Device Specific.(Z5)........02C82774

        Device Specific.(Z6)........06C32715

        Device Specific.(Z7)........07C32774

        Device Specific.(Z8)........20000000C9764BE2

        Device Specific.(Z9)........BS2.71X4

        Device Specific.(ZA)........B1D2.70A5

        Device Specific.(ZB)........B2D2.71X4

        Device Specific.(ZC)........00000000

        Hardware Location Code......U789D.001.DQD01VK-P1-C5-T1

 

 

  PLATFORM SPECIFIC

 

  Name:  fibre-channel

    Model:  LP11000

    Node:  fibre-channel@1

    Device Type:  fcp

    Physical Location: U789D.001.DQD01VK-P1-C5-T1 [filabmdb:root] / >

 

 

 

nsdi_ap_gnmy:root] /tmp > installp -acXd /tmp/Atape.12.6.2.0.bin Atape.driver

+-----------------------------------------------------------------------------+

                    Pre-installation Verification...

+-----------------------------------------------------------------------------+

Verifying selections...done

Verifying requisites...done

Results...

 

SUCCESSES

---------

  Filesets listed in this section passed pre-installation verification

  and will be installed.

 

  Selected Filesets

  -----------------

  Atape.driver 12.6.2.0                       # IBM AIX Enhanced Tape and Me...

 

  << End of Success Section >>

 

+-----------------------------------------------------------------------------+

                   BUILDDATE Verification ...

+-----------------------------------------------------------------------------+

Verifying build dates...done

FILESET STATISTICS

------------------

    1  Selected to be installed, of which:

        1  Passed pre-installation verification

  ----

    1  Total to be installed

 

0503-409 installp:  bosboot verification starting...

installp:  bosboot verification completed.

+-----------------------------------------------------------------------------+

                         Installing Software...

+-----------------------------------------------------------------------------+

 

installp:  APPLYING software for:

        Atape.driver 12.6.2.0

 

 

. . . . . << Copyright notice for Atape >> . . . . . . .

 

IBM AIX Enhanced Tape and Medium Changer Device Driver

 

(C) COPYRIGHT International Business Machines Corp. 1993 ~

All Rights Reserved

Licensed Materials - Property of IBM

 

US Government Users Restricted Rights - Use, duplication or

disclosure restricted by GSA ADP Schedule Contract with IBM Corp.

 

. . . . . << End of copyright notice for Atape >>. . . .

 

Checking for existing Atape devices...

Installing AIX Version 6.1 Atape.driver...

Adding device prototype...

Adding odm and smit entries...

Adding catalogs...

Adding trace template...

Adding error template...

7 entries added.

0 entries deleted.

0 entries updated.

Adding utility programs...

Finished processing all filesets.  (Total time:  15 secs).

 

0503-409 installp:  bosboot verification starting...

installp:  bosboot verification completed.

0503-408 installp:  bosboot process starting...

 

 

 

 

[nsdi_ap_gnmy:root] /tmp > installp -acXd /tmp/Atape.12.6.2.0.bin Atape.driver

+-----------------------------------------------------------------------------+

                    Pre-installation Verification...

+-----------------------------------------------------------------------------+

Verifying selections...done

Verifying requisites...done

Results...

 

SUCCESSES

---------

  Filesets listed in this section passed pre-installation verification

  and will be installed.

 

  Selected Filesets

  -----------------

  Atape.driver 12.6.2.0                       # IBM AIX Enhanced Tape and Me...

 

  << End of Success Section >>

 

+-----------------------------------------------------------------------------+

                   BUILDDATE Verification ...

+-----------------------------------------------------------------------------+

Verifying build dates...done

FILESET STATISTICS

------------------

    1  Selected to be installed, of which:

        1  Passed pre-installation verification

  ----

    1  Total to be installed

 

0503-409 installp:  bosboot verification starting...

installp:  bosboot verification completed.

+-----------------------------------------------------------------------------+

                         Installing Software...

+-----------------------------------------------------------------------------+

 

installp:  APPLYING software for:

        Atape.driver 12.6.2.0

 

 

. . . . . << Copyright notice for Atape >> . . . . . . .

 

IBM AIX Enhanced Tape and Medium Changer Device Driver

 

(C) COPYRIGHT International Business Machines Corp. 1993 ~

All Rights Reserved

Licensed Materials - Property of IBM

 

US Government Users Restricted Rights - Use, duplication or

disclosure restricted by GSA ADP Schedule Contract with IBM Corp.

 

. . . . . << End of copyright notice for Atape >>. . . .

 

Checking for existing Atape devices...

Installing AIX Version 6.1 Atape.driver...

Adding device prototype...

Adding odm and smit entries...

Adding catalogs...

Adding trace template...

Adding error template...

7 entries added.

0 entries deleted.

0 entries updated.

Adding utility programs...

Finished processing all filesets.  (Total time:  15 secs).

 

0503-409 installp:  bosboot verification starting...

installp:  bosboot verification completed.

0503-408 installp:  bosboot process starting...

 

bosboot: Boot image is 47147 512 byte blocks.

0503-292 This update will not fully take effect until after a

        system reboot.

 

    * * *  A T T E N T I O N  * * *

    System boot image has been updated. You should reboot the

    system as soon as possible to properly integrate the changes

    and to avoid disruption of current functionality.

 

installp:  bosboot process completed.

+-----------------------------------------------------------------------------+

                                Summaries:

+-----------------------------------------------------------------------------+

 

Installation Summary

--------------------

Name                        Level           Part        Event       Result

-------------------------------------------------------------------------------

Atape.driver                12.6.2.0        USR         APPLY       SUCCESS

[nsdi_ap_gnmy:root] /tmp >

[nsdi_ap_gnmy:root] /tmp >

 

 

[nsdi_ap_gnmy:root] /tmp > lslpp -l netvault.chm

  Fileset                      Level  State      Description

  ----------------------------------------------------------------------------

Path: /usr/lib/objrepos

  netvault.chm               6.1.0.0  COMMITTED  NetVault Scsi Medium Changer

                                                 Driver

 

 

 

[nsdi_ap_gnmy:root] /tmp > lsdev -Cc tape

rmt0 Defined   04-01-02 Other FC SCSI Tape Drive

rmt1 Available 04-01-02 Other FC SCSI Tape Drive

rmt2 Available 00-01-02 Other FC SCSI Tape Drive

 

 

 

[nsdi_ap_gnmy:root] /usr/netvault/trace >

[nsdi_ap_gnmy:root] /usr/netvault/trace > cat nvchgmgr* | grep -i prodcut

[nsdi_ap_gnmy:root] /usr/netvault/trace >  /usr/lpp/netvault/addproduct "Scalar i40-i80"

[nsdi_ap_gnmy:root] /usr/netvault/trace >

[nsdi_ap_gnmy:root] /usr/netvault/trace > cfgmgr

[nsdi_ap_gnmy:root] /usr/netvault/trace >

[nsdi_ap_gnmy:root] /usr/netvault/trace >

[nsdi_ap_gnmy:root] /usr/netvault/trace >

 

From: 지수 [mailto:ng0210@utimostins.com]
Sent: Tuesday, March 31, 2015 7:05 PM
To:
김영근
Cc: lhl@metanet.co.kr
Subject:
휠라 메인DB AIX 정보

 

[filabmdb:root] / > lsslot -c pci

# Slot                   Description                              Device(s)

U789D.001.DQD01VK-P1-C1  PCI-E capable, Rev 1 slot with 8x lanes  fcs0 fcs1

U789D.001.DQD92K4-P1-C1  PCI-E capable, Rev 1 slot with 8x lanes  fcs2 fcs3

U789D.001.DQD01VK-P1-C2  PCI-E capable, Rev 1 slot with 8x lanes  Empty

U789D.001.DQD92K4-P1-C2  PCI-E capable, Rev 1 slot with 8x lanes  Empty

U789D.001.DQD01VK-P1-C3  PCI-E capable, Rev 1 slot with 8x lanes  Empty

U789D.001.DQD92K4-P1-C3  PCI-E capable, Rev 1 slot with 8x lanes  Empty

U789D.001.DQD01VK-P1-C4  PCI-X capable, 64 bit, 266MHz slot       ent4

U789D.001.DQD92K4-P1-C4  PCI-X capable, 64 bit, 266MHz slot       sisscsia0

U789D.001.DQD01VK-P1-C5  PCI-X capable, 64 bit, 266MHz slot       fcs8

U789D.001.DQD92K4-P1-C5  PCI-X capable, 64 bit, 266MHz slot       Empty

U789D.001.DQD01VK-P1-C6  PCI-E capable, Rev 1 slot with 8x lanes  Empty

U789D.001.DQD92K4-P1-C6  PCI-E capable, Rev 1 slot with 8x lanes  Empty

[filabmdb:root] / >

 

[filabmdb:root] / > lsdev |grep rmt

rmt0         Available 02-08-02     Other FC SCSI Tape Drive

rmt1         Available 02-08-02     Other FC SCSI Tape Drive

rmt2         Available 09-08-01-0,0 LVD SCSI 4mm Tape Drive

[filabmdb:root] / > lscfg -vpl rmt0

  rmt0             U789D.001.DQD01VK-P1-C5-T1-W2008000E1115214B-L0  Other FC SCSI Tape Drive

 

        Manufacturer................IBM    

        Machine Type and Model......ULT3580-HH6    

        Serial Number................

        Device Specific.(Z3)........0000

 

 

  PLATFORM SPECIFIC

 

  Name:  tape

    Node:  tape

    Device Type:  byte

[filabmdb:root] / > lscfg -vpl rmt1

  rmt1             U789D.001.DQD01VK-P1-C5-T1-W2002000E1115214B-L0  Other FC SCSI Tape Drive

 

        Manufacturer................IBM    

        Machine Type and Model......ULT3580-HH6    

        Serial Number................

        Device Specific.(Z3)........0000

 

 

  PLATFORM SPECIFIC

 

  Name:  tape

    Node:  tape

    Device Type:  byte

[filabmdb:root] / >

 

 

 

 

[filabmdb:root] / > mt -f /dev/rmt0 status

rmt0 Available 02-08-02 Other FC SCSI Tape Drive

attribute      value              description                               user_settable

 

block_size     512                BLOCK size (0=variable length)            True

delay          45                 Set delay after a FAILED command          True

density_set_1  0                  DENSITY setting #1                        True

density_set_2  0                  DENSITY setting #2                        True

extfm          yes                Use EXTENDED file marks                   True

location                          Location Label                            True

lun_id         0x0                Logical Unit Number ID                    False

mode           yes                Use DEVICE BUFFERS during writes          True

node_name      0x2007000e1115214b FC Node Name                              False

res_support    no                 RESERVE/RELEASE support                   True

ret_error      no                 RETURN error on tape change or reset      True

rwtimeout      144                Set timeout for the READ or WRITE command True

scsi_id        0x10e00            SCSI ID                                   False

var_block_size 0                  BLOCK SIZE for variable length support    True

ww_name        0x2008000e1115214b FC World Wide Name                        False

[filabmdb:root] / > mt -f /dev/rmt1 status

rmt1 Available 02-08-02 Other FC SCSI Tape Drive

attribute      value              description                               user_settable

 

block_size     512                BLOCK size (0=variable length)            True

delay          45                 Set delay after a FAILED command          True

density_set_1  0                  DENSITY setting #1                        True

density_set_2  0                  DENSITY setting #2                        True

extfm          yes                Use EXTENDED file marks                   True

location                          Location Label                            True

lun_id         0x0                Logical Unit Number ID                    False

mode           yes                Use DEVICE BUFFERS during writes          True

node_name      0x2001000e1115214b FC Node Name                              False

res_support    no                 RESERVE/RELEASE support                   True

ret_error      no                 RETURN error on tape change or reset      True

rwtimeout      144                Set timeout for the READ or WRITE command True

scsi_id        0x10f00            SCSI ID                                   False

var_block_size 0                  BLOCK SIZE for variable length support    True

ww_name        0x2002000e1115214b FC World Wide Name                        False

[filabmdb:root] / >

 

 

 

 

 

'Operating System > AIX' 카테고리의 다른 글

When AIX changer does not recognize  (0) 2013.04.16
AX for the System Administrator  (0) 2009.01.07
Posted by IT 사랑 :
반응형
  • Title

    Binding to the ATAPE driver for IBM devices on AIX.
  • Description

    From release 8.x of NetVault: Backup, only devices using the ATAPE driver are supported on AIX platforms. Tape devices configured on AIX with another driver (for example SCTAPE) cannot be configured in NetVault: Backup. A device scan from NetVault will not discover these devices.

    This solution provides a process to attempt to bind devices with the ATAPE driver.
     

  • Resolution

    Assuming the tape device uses the device file /dev/rmt0, and the device is on the NetVault Supported devices matrix, determine the existing driver attached to the device:

    # odmget -q name=rmt0 CuDv

    ddins = "sctape"


    The DDINS value shows the driver this device is using, in this case, it is sctape.

    Remove this device file:
    # rmdev –dl rmt0

    Download and install the atape driver.
    http://www.ibm.com/support/fixcentral

    The driver can be found by selecting “Storage Systems” -> “Tape Systems” -> “Tape device drivers and software” -> “Tape device drivers” -> “AIX”. Browse for fixes, and select to download “Atape_Driver_for_AIX”. Installation instructions can be found on this page.

    After installing atape, rescan the device tree to re-create the rmt0 device
    # cfgmgr –v rmt0

    Confirm that the new device is using the atape driver
    # odmget -q name=rmt0 CuDv

    If the DDINS value shows atape, NetVault Backup will be able to discover the device in a device scan, and the device can be configured for backups.

    If the device file wont recreate with the atape device, escalate to IBM for assistance.
    Note that some IBM devices such as the IBM FC5746 cannot use atape device driver.

                                      'Operating System > AIX' 카테고리의 다른 글

                                      AIX CLI -TAPE 관련  (0) 2015.03.31
                                      AX for the System Administrator  (0) 2009.01.07
                                      Posted by IT 사랑 :
                                      반응형

                                      AIX for the System Administrator

                                      Glossary
                                      Boot Process
                                      Disks
                                      Dump Space
                                      Filesystems
                                      Kernel
                                      Networking
                                      Paging and Swap Space
                                      Password/Account Reset
                                      Processes
                                      Software Installation and Patches
                                      System Information
                                      System Monitoring
                                      Tapeutil
                                      Terminal Configuration
                                      Troubleshooting --> see aix-troubleshooting.html
                                      Users

                                      Glossary

                                      Term
                                      Definition
                                      Advanced Interactive Executive (AIX)
                                      RS/6000 Unix Operating System
                                      Authorized Program Analysis Report (APAR)
                                      Used to identify a fix for a PMR.
                                      Base Operating System (BOS)

                                      Fileset

                                      Fragments Allows disk space to be divided into units that are smaller than the size of a logical block
                                      High Availability Cluster Multiprocessor  ?? (HACMP)
                                      AIX Clustering
                                      I-Node 128 bit structure that contains information about the file or directory such  as ownership, permissions, file type, number of links to the file, etc.
                                      Logical Block Disk block that contains file or directory data
                                      Maintenance Level (ML)
                                      Service updates necessary to upgrade the BOS to the current release level
                                      ODN

                                      Page
                                      4KB unit of virtual memory than can be transferred between physical ram and disk paging space
                                      Paging Space
                                      Special logical volume used for holding inactive data that has been temporarily transferred out of physical ram.
                                      Phsysical Volume ID (PVID)
                                      Unique id that consists of a hash of the CPUID and the date.
                                      Problem Management Record (PMR)
                                      Tracking record used for customer problems.
                                      Program Temporary Fix (PTF)
                                      Temporary fix that will be incorporated into the next release of the product.  May be a single fix or multiple fixes associated with a single fileset.
                                      Service Boot
                                      Server is started with the key in the service position (as opposed to the key being in the normal position).
                                      Superblock Disk block that contains information about the entire file system.  It starts at byte offset 4096 and is 4096 bytes in size.
                                      Swap Space
                                      See Paging Space above.
                                      System Management Interface Tool (SMIT) Menu driven system administration interface for AIX
                                      Vpath
                                      Similar to HP LUN?


                                      Boot Process

                                      Phases of the Boot Process:
                                      1. Read Only Storage Kernel Init Phase
                                        1. Motherboard is Checked
                                        2. Bootlist is found
                                        3. Boot image is read into memory
                                        4. Initialization starts
                                      2. Base Device Configuration Phase
                                        1. All devices are configured with cfgmgr command
                                      3. System Boot Phase
                                        1. Logical volumes are varied on
                                        2. Paging is started
                                        3. /etc/inittab is processed
                                      Commands

                                      alog - allows the administrator to view logs
                                      alog -L  <-- displays log files that alog can view
                                      alog -o -t boot   <-- displays the boot log file
                                      cfgmgr
                                      last
                                      bootlist
                                      uptime
                                      mpcfg
                                      shutdown

                                      How to boot the system if the Service Processor Firmware Menu is displayed:

                                      Service Processor Firmware
                                               Main Menu

                                      1.  Service Processor Setup Menu
                                      2.  System Power Control Menu
                                      3.  System Information Menu
                                      4.  Language Selection
                                      5.  Call In/Call Out
                                      6.  Set System Name
                                      99.  Exit Menu

                                      Choose Option 2:  System Power Control menu, then select option to Power On

                                      How to boot to the SMS Menu (to apply firmware updates)
                                      • Boot normally
                                      • Interrupt the boot when the systems displays memory and cpu information
                                      • <1> on Ascii terminals
                                      • <F1> on Graphics terminals
                                      • If you want to update firmware then you need to choose option 3, then put software in diskette drive and choose:
                                        • Option 6 for Update System Software
                                        • Option 7 for Update Service Processor
                                      Startup Scripts
                                      • /etc/inittab
                                        • Indentifier:RunLevel:Action:Command
                                      • Inittab Commands
                                        • lsitab  --> lists records in /etc/inittab
                                        • mkitab  --> makes a new entry in /etc/inittab
                                        • chitab  --> changes an existing entry in /etc/inittab
                                        • rmitab  -->  removes an entry from /etc/inittab

                                      Disks


                                      lsdev -C -c disk  - shows available disks on the server

                                      lsfs    <-- show the filesystems on the server and their characteristics

                                      lspv  - shows disks and their LVM information or "none" if not part of LVM

                                      dumpfs <disk> - shows superblock, i-node map and disk map information for the file system specified.

                                      df -v - shows the number of i-nodes used and free.

                                      istat - shows the last updated, last modified and last accessed times of a file.

                                      ls -i - shows the i-node number assigned to a file

                                      bosboot -a  --> creates a new bootimage

                                      bootlist -m normal -o hdisk0 hdisk1  --> puts hdisk0 and hdisk1 on the bootlist

                                      bootlist -m normal -o  --> displays the current bootlist

                                      How to mount a cdrom
                                      • Make sure the cdrom is inserted
                                      • Make sure the cdrom drive is properly identified
                                        • lsdev -Cc cdrom
                                      • Mount the cdrom
                                        • mount -v cdrfs -r /dev/cd0 /cdrom

                                      Dump Space

                                      The system dump facility copies critical information to the dump device when a system crash occurs.  This information is critical for determing the cause of the crash.

                                      sysdumpdev -l  <-- shows where the system dump location currently is located.

                                      sysdumpdev -P -p /dev/hd9   <-- changes the primary dump device to hd9

                                      sysdumpdev -e   <-- estimates the size of the current dump

                                      smitty dump   <-- access dump configuration through smit

                                      Procedure for manually peforming a system dump
                                      • Using Commands
                                        • sysdumpstart
                                        • smit dump
                                      • Using special key sequence
                                        • Key in SERVICE mode
                                        • <CTRL><ALT><NUMPAD1> or K<CTRL><ALT><NUMPAD2>
                                      • Using the reset button
                                        • Key in SERVICE mode
                                        • Press the reset button once
                                      Procedure to verify a system dump
                                      • Find out the name of the dump file
                                        • sysdumpdev -L
                                      • Run the crash command
                                        • crash <Dump copy filename>  or crash <Dump Device Name>
                                          • crash will provide a ">" prompt, stat and quit are commands of crash
                                        • >stat
                                          • If the dump is successful, then you will see statistics of the dump
                                        • >quit
                                      Procedure to generate a system dump using snap
                                      • snap -gfkDNcd <directory to store snap file>
                                        • -g  <--  gets output of the lslpp -hBc command
                                        • -f   <--  gets system information
                                        • -k  <--  gets kernel information
                                        • -D  <--  gets dump and /unix information
                                        • -N  <--  does  not check for free space
                                        • -c  <--  creates a compressed pax image of all the files in the directory
                                        • -d  <--  allows the destination directory to specified, rather than the default of  /tmp/ibmsupt

                                      Filesystems

                                      Additional information in the file aix-lvm.html.

                                       mount -t <type>  --> mounts all filesystems in /etc/filesystems containing the t=type attribute

                                      Copying files
                                      • cp
                                      • tar - limited to files smaller than 2 GB
                                      • cpio - limited to files smaller than 2 GB
                                      • pax

                                      Argument list too long error
                                      • lsattr -E -l sys0 -a ncargs - List value of ARG/ENV
                                      • chdev -l sys0 -a ncargs=NewValue (range 6-128) - Modifies value of ARG/ENV.

                                      Kernel

                                      Changing from 32 bit kernel to 64 bit kernel
                                      • Change the link in the root directory
                                        • Existing link:  lrwxrwxrwx   1 root     system           21 Jun 12 09:59 unix -> /usr/lib/boot/unix_mp
                                        • Link to:  /usr/lib/boot/unix_64
                                      • Change the link in the /usr/lib/boot directory
                                        • Existing link:  lrwxrwxrwx   1 root     system           21 Jun 12 10:01 unix -> /usr/lib/boot/unix_mp
                                        • Link to:  /usr/lib/boot/unix_64


                                      Networking

                                      entstat -d en0   <-- this will display configuration and statistics for the network card "en0" - useful for displaying speed/duplex configuration

                                      Paging and Swap Space

                                      Utilities to monitor paging space:
                                      • vmstat
                                      • topas
                                      lsps -a  <- Lists paging space by disk
                                      chps -s 16 hd6   <- Changes the paging space by adding 16 logical partitions to the hd6 logical volume (default swap space device)
                                      chps -d 16 hd6  <- Changes the paging space by deleting 16 logical partitions from the hd6 logical volume
                                      mkps  <--  Makes additional paging space
                                      rmps  <--  Deletes paging space  (paging space must be deactivated by chps and then system must be rebooted to remove the paging space)
                                      swapon  <-- Turns on a paging space
                                      swapoff  <-- Turns off a paging space

                                      Total Paging Space = 512MB + (Physical Memory Size - 256MB) * 1.25


                                      Processes and Services

                                      /etc/inetd.conf - inetd configuration file
                                      /etc/services - information about services, such as port number

                                      Starting and stopping a process:
                                      refresh -p <pid>
                                      refresh -s <subsystem name>

                                      Changing the inetd configuration
                                      • Files
                                        • /etc/inetd.conf
                                        • /etc/services
                                      • Using smit - daemon is recycled automatically upon exit
                                      • Using vi
                                        • restart the inetd daemon so that the new configuration is read:
                                        • refresh -s inetd
                                      • Using chservices to edit /etc/services
                                        • chservices -c  --> changes entries
                                        • chservices -a  --> adds entries
                                        • chservices -d  --> deactivates entries

                                      Software Installation and Patches

                                      lslpp -l "<fileset>"   <--  Shows information about filesets

                                      rebuild .toc file - "inutoc"  <-- This rebuilds the toc where the bff's are located.  Needed if something is added to an existing fileset or new file will not be found.

                                      root.oncwhst5:/# instfix -ciqk 5100-04_AIX_ML | grep ":-:"

                                      root.oncwhst5:/# lslpp -l bos.iconv.ucs.com


                                      Displaying the maintenance level and fixes that are installed
                                      • oslevel
                                      • oslevel -q
                                      • oslevel -r   <-- Shows the maintenance release that you are running
                                      • instfix -i | grep ML  <-- Shows what filesets are found for maintenance releases on your system and whether they are complete
                                      • instfix -ik <FIX_IX>   <-- Shows whether a particular fix has been installed on your system
                                      • lppchk -v   <-- Shows filesets that are incompletely installed or need to be corrected
                                      • lscfg -vp | grep alterable   <-- shows firmware level

                                      Procedure to upgrade the maintenance level of the os


                                      System Information

                                      prtconf|more  <-- prints system information (aix 5.x)
                                      amount of ram - bootinfo -r or lsattr -El sys0 -a realmem
                                      number of  processors - lscfg | grep proc or bindprocessor -q

                                      oslevel  --> returns the major level of the OS (such as 5.0)
                                      oslevel -r  -->  returns the detailed level of the OS, with sub level and patch level info (such as 5.1)
                                      uname -a
                                      uname -uM  --> type of machine and serial number

                                      System Monitoring

                                      topas = top on hp-ux

                                      Tapeutil

                                      To run the menu version type "tapeutil"
                                      • Open the correct device
                                        • /dev/rmt0 = tape drive
                                        • /dev/smc0 = tape library
                                      • "lsdev -Cc tape" will list the devices
                                      • Use the commands listed
                                        • 14 =Element Inventory
                                        • 17 = Load/Unload Medium

                                      To manually use tapeutil
                                      • "tapeutil -f /dev/smc0 move 5 82"  --> will move tape from slot 5 to the tape drive
                                      To manually remove a tape from the drive using tapeutil:
                                      • tapeutil -f /dev/rmt0 unload  -->
                                      • tapeutil -f /dev/smc0 move 82 5


                                      Terminal Configuration

                                      Autocompletion:  <esc>\

                                      Troubleshooting

                                      See aix-troubleshooting.html

                                      Users

                                      Commands:
                                      mkuser  -->  utility the creates a new user
                                      passwd  -->  change the user's password
                                      chuser  -->  change the user's attributes
                                      chuser minother=# <user>  --> changes minother atttribute for a user
                                      luser <user>    -->  lists the attributes for a specific user account
                                      lsuser -f <user>  --> lists each attribute on it's own line
                                      rmuser  -->  utility that removes a user
                                      chsec  -->  change the user's security attributes
                                      login 
                                      who  -->  lists who is currently logged into the system
                                      whoami (who am i)  --> displays information about yourself
                                      dtconfig

                                      Files:
                                      /etc/security/environ  --> lists environment attributes for each user
                                      /etc/security/lastlog  --> lists last login attributes for each user
                                      /etc/security/limits   -->  lists process resource limits for each user
                                      /etc/security/user  --> lists extended user attributes for  each user
                                      /usr/lib/security/mkuser.default  --> lists default attributes for new users
                                      /usr/lib/security/mkuser.sys  --> script that sets up the user's environment
                                      /etc/passwd  --> lists basic user attributes for each user
                                      /etc/security/passwd  -->  contains password information for each user
                                      /etc/security/login.cfg  -->  lists login security information for each user
                                      /etc/utmp  --> contains users that are logged into the system, used by the "who" command
                                      /var/adm/wtmp  -->  contains connect time information for users
                                      /etc/security/failedlogin  --> contains unsuccessful login attempts
                                      /etc/motd  -->  message of the day that is displayed when the user logs in.
                                      /etc/environment  --> lists the default environment that new processes will use.
                                      /etc/profile  -->  environment settings for all  users
                                      $HOME/.profile  -->  environment settings for a specific user
                                      /etc/group  -->  lists attributes for each group
                                      /etc/security/group  -->  lists extended attributes for each group

                                      Important /etc/security/user attributes to know about:

                                      account_locked   -->  true or false
                                      expires -->  Expiration time for a user account.  MMDDHHMMYY,  a value of 0 indicates no expiration
                                      loginretires  -->  Number of invalid login attempts before a users is not allowed to login.  A value of 0 indicates this attribute is disabled.
                                      maxage  --> Maximum number of weeks a password is valid, a value of 0 indicates unlimited
                                      minage  -->  Minimum nuimber of weeks between password changes.

                                      Procedure to add a new user
                                      • mkuser <user_id> or
                                      • smitty mkuser

                                      Procedure to change the password on a server

                                      passwd <User>

                                      Note:  The account needs to be reset if when trying to log in the following message is received:

                                      3004-303 There have been too many unsuccessful login attempts; please see
                                              the system administrator.

                                      Procedure to reset the account:

                                      1.  chsec -f /etc/security/lastlog -a "unsuccessful_login_count=0" -s N500620

                                      2.  chuser "account_locked=false" N500620

                                      Procedure to change the shell prompt:
                                      • Prompts
                                        • PS1 - normal system prompt
                                        • PS2 - prompt when system expects more input
                                        • PS3 - super-user prompt
                                      • export PS1="newprompt>"


                                      'Operating System > AIX' 카테고리의 다른 글

                                      AIX CLI -TAPE 관련  (0) 2015.03.31
                                      When AIX changer does not recognize  (0) 2013.04.16
                                      Posted by IT 사랑 :
                                      반응형


                                      > sc stop wuauserv


                                      가끔씩 XP에서 업데이트가 완료 되었다고 재부팅 하라고 할 때가 있습니다.
                                      계속 나중에 하기를 눌러도 다시 뜨고,,
                                      그럴때는 업데이트 서비스를 중시 시키면 되는데 해당 서비스를 중지 시키는 명령 입니다.

                                       

                                       

                                      > taskkill /IM iexplore.exe /f


                                      IE가 가끔씩 못된 짓 할 때, Linux계열에서는 killall -f iexplorer 와 유사 합니다.

                                       

                                       

                                      > PROMPT=$P\$_$G

                                      cmd창에서 디렉토리가 너무 길어서 두줄로 Prompt를 보고 싶을 때 사용하면 좋습니다.
                                      $_이 줄바꿈인 것이 포인트 입니다.

                                       

                                       


                                      > shutdown /r /t 0

                                      재부팅 하고 싶으면 ...

                                       

                                       

                                      > appwiz.cpl


                                      제어판에서 제일 많이 쓰는 '프로그램 추가/제거'의 바로 가기


                                      > sc stop wuauserv


                                      가끔씩 XP에서 업데이트가 완료 되었다고 재부팅 하라고 할 때가 있습니다.
                                      계속 나중에 하기를 눌러도 다시 뜨고,,
                                      그럴때는 업데이트 서비스를 중시 시키면 되는데 해당 서비스를 중지 시키는 명령 입니다.

                                       

                                       

                                      > taskkill /IM iexplore.exe /f


                                      IE가 가끔씩 못된 짓 할 때, Linux계열에서는 killall -f iexplorer 와 유사 합니다.

                                       

                                       

                                      > PROMPT=$P\$_$G

                                      cmd창에서 디렉토리가 너무 길어서 두줄로 Prompt를 보고 싶을 때 사용하면 좋습니다.
                                      $_이 줄바꿈인 것이 포인트 입니다.

                                       

                                       


                                      > shutdown /r /t 0

                                      재부팅 하고 싶으면 ...

                                       

                                       

                                      > appwiz.cpl


                                      제어판에서 제일 많이 쓰는 '프로그램 추가/제거'의 바로 가기


                                      The Source : http://9eye.net/entry/Useful-Windows-Command
                                       Posted by U Seung

                                      'Operating System > Windosw' 카테고리의 다른 글

                                      Netstat [2]  (0) 2009.01.05
                                      GETMAC  (0) 2009.01.05
                                      The Start Run Line  (0) 2009.01.05
                                      Netstat  (0) 2009.01.05
                                      Widows Command Line  (0) 2009.01.05
                                      Posted by IT 사랑 :

                                      Netstat [2]

                                      2009. 1. 5. 03:49 from Operating System/Windosw
                                      반응형


                                      C:\>netstat -no

                                      Active Connections

                                        Proto  Local Address          Foreign Address        State           PID
                                        TCP    127.0.0.1:****        127.0.0.1:****       ESTABLISHED    ****
                                        TCP    127.0.0.1:****         127.0.0.1:****        ESTABLISHED     ****
                                        TCP    127.0.0.1:****         127.0.0.1:****        ESTABLISHED     ****
                                        TCP    127.0.0.1:****        127.0.0.1:2****      ESTABLISHED     ****
                                        TCP    127.0.0.1:****         127.0.0.1:****       ESTABLISHED     ****
                                       

                                      C:\>netstat -nobv

                                      Active Connections

                                        Proto  Local Address          Foreign Address        State           PID
                                        TCP    127.0.0.1:****         127.0.0.1:****        ESTABLISHED     308
                                        C:\WINDOWS\System32\****.dll
                                        C:\WINDOWS\system32\****.dll
                                        C:\WINDOWS\system32\libnv6.dll
                                        C:\Program Files\****\N****lt\bin\****daemon.exe
                                        C:\WINDOWS\****2\k****.dll
                                        [n****daemon.exe]

                                      C:\>

                                      'Operating System > Windosw' 카테고리의 다른 글

                                      Windows Command Line  (0) 2009.01.05
                                      GETMAC  (0) 2009.01.05
                                      The Start Run Line  (0) 2009.01.05
                                      Netstat  (0) 2009.01.05
                                      Widows Command Line  (0) 2009.01.05
                                      Posted by IT 사랑 :

                                      GETMAC

                                      2009. 1. 5. 03:30 from Operating System/Windosw
                                      반응형




                                      C:\>getmac

                                      실제 주소           전송 이름
                                      =================== ==========================================================
                                      00-14-22-F9-67-5A   \Device\Tcpip_{2E8CE004-E1DA-47B1-B56E-BD4D93C6A40E}
                                      00-13-02-8E-23-1A   미디어 연결 끊김

                                      C:\>

                                      'Operating System > Windosw' 카테고리의 다른 글

                                      Windows Command Line  (0) 2009.01.05
                                      Netstat [2]  (0) 2009.01.05
                                      The Start Run Line  (0) 2009.01.05
                                      Netstat  (0) 2009.01.05
                                      Widows Command Line  (0) 2009.01.05
                                      Posted by IT 사랑 :
                                      반응형

                                      The Start-Run Line
                                      The "Run" line in the Start menu can be used to speed up access to a whole variety of functions. Some examples of the shortcuts that are available are discussed here.

                                      Introduction to the Run Line

                                      The Run command line may be one of the least utilized functions in the Start menu. This is a pity since it can be very useful. It is often the quickest way to launch programs or to open folders and documents. The figure below shows the Start-Run entry.

                                      Start-Run entry

                                      Clicking the entry "Run" opens the box shown below, where commands may be typed and entered.

                                      Run line window

                                      Opening applications in Run

                                      Although applications can be opened in a variety of ways, the Run line often provides the quickest route. Desktop shortcut icons are also a quick route but you have to know how to create a shortcut for all the applications and you may end up with dozens of icons.

                                      The best candidates for the Run line are applications that are in the "path" environment. (Go to this page for more discussion of the path.) The path environment is a set of folders whose names do not have to be included when entering a command. The path environment variable normally includes \Windows\ and \Windows\system32\. Many common accessories and Windows applets are in these folders and can be opened by entering just the executable file name. Several that I use constantly are the Registry editor (regedit) and the System Configuration Utility (msconfig). Note that neither of these frequently used system tools has an entry in Start- All Programs. The Run line is the standard method of accessing them.

                                      A table listing some applications that can be opened in the Run line is given below.

                                      A few applications for the Run line
                                      Entry for Run Function
                                      calc Opens calculator
                                      cmd Opens command prompt window
                                      explorer Opens Windows explorer
                                      magnify Screen magnifier accessory
                                      msconfig System Configuration Utility
                                      mshearts Opens Hearts game
                                      msinfo32 System Information applet
                                      mspaint Opens graphics accessory Paint
                                      notepad Notepad accessory
                                      regedit Registry editor
                                      sol Opens Classical Solitaire game

                                      Programs not in the path require their full address, including the root folder and all subfolders. Actually typing long path names is not required since a "Browse" function comes with the Run line. This provides a way to search for files of interest and to enter them directly without typing. If desired, frequently used programs can be added to the path environment using the methods that are discussed in a section below.

                                      Opening Management Consoles

                                      Some of the functions that I find convenient to open by means of the Run line include various Management Consoles. For example, the disk defragmenter is opened by entering "dfrg.msc" . I find this easier than the multi-step process involved otherwise. A list of the appropriate file names for opening some of the various services is given in the table below. A more complete list is on this page.

                                      Commands for some Management Consoles (msc extension required)
                                      Entry for Run Function
                                      ciadv.msc Manages the Indexing Service
                                      compmgmt.msc Computer Management Console. It contains a number of the other consoles
                                      devmgmt.msc Device Manager
                                      dfrg.msc Disk Defragmenter
                                      diskmgmt.msc Disk Management
                                      gpedit.msc Group Policy Editor. Windows XP Professional only
                                      services.msc Manages the many services involved in Windows and installed software

                                       


                                      The Source : http://commandwindows.com

                                      'Operating System > Windosw' 카테고리의 다른 글

                                      Windows Command Line  (0) 2009.01.05
                                      Netstat [2]  (0) 2009.01.05
                                      GETMAC  (0) 2009.01.05
                                      Netstat  (0) 2009.01.05
                                      Widows Command Line  (0) 2009.01.05
                                      Posted by IT 사랑 :

                                      Netstat

                                      2009. 1. 5. 03:11 from Operating System/Windosw
                                      반응형

                                      Netstat
                                      Netstat is a useful tool for checking network and Internet connections. Some useful applications for the average PC user are considered, including checking for malware connections.

                                      Syntax and switches

                                      The command syntax is netstat [-a] [-b] [-e] [-n] [-o] [-p proto] [-r] [-s] [-v] [interval] A brief description of the switches is given in Table I below. Note that switches for Netstat use the dash symbol "-" rather than the slash "/".

                                      Table I. Switches for Netstat command
                                      Switch Description
                                      -a Displays all connections and listening ports
                                      -b Displays the executable involved in creating each connection or listening port. (Added in XP SP2.)
                                      -e Displays Ethernet statistics
                                      -n Displays addresses and port numbers in numerical form
                                      -o Displays the owning process ID associated with each connection
                                      -p proto Shows connections for the protocol specified by proto; proto may be any of: TCP, UDP, TCPv6, or UDPv6.
                                      -r Displays the routing table
                                      -s Displays per-protocol statistics
                                      -v When used in conjunction with -b, will display sequence of components involved in creating the connection or listening port for all executables
                                      [interval] An integer used to display results multiple times with specified number of seconds between displays. Continues until stopped by command ctrl+c. Default setting is to display once,

                                      Applications of Netstat

                                      Netstat is one of a number of command-line tools available to check the functioning of a network. (See this page for discussion of other tools.) It provides a way to check if various aspects of TCP/IP are working and what connections are present. In Windows XP SP2, a new switch "-B" was added that allows the actual executable file that has opened a connection to be displayed. This newer capability provides a chance to catch malware that may be phoning home or using your computer in unwanted ways on the Internet. There are various ways that a system administrator might use the assortment of switches but I will give two examples that might be useful to home PC users.

                                      Checking TCP/IP connections

                                      TCP and UDP connections and their IP and port addresses can be seen by entering a command combining two switches: netstat -an An example of the output that is obtained is shown in Figure 1.
                                      Figure 1. Example output for command "netstat -an"

                                      The information that is displayed includes the protocol, the local address, the remote (foreign) address, and the connection state. Note that the various IP addresses include port information as well. An explanation of the different connection states is given in Table II>

                                      Table II. Description of various connection states
                                      State Description
                                      CLOSED Indicates that the server has received an ACK signal from the client and the connection is closed
                                      CLOSE_WAIT Indicates that the server has received the first FIN signal from the client and the connection is in the process of being closed
                                      ESTABLISHED Indicates that the server received the SYN signal from the client and the session is established
                                      FIN_WAIT_1 Indicates that the connection is still active but not currently being used
                                      FIN_WAIT_2 Indicates that the client just received acknowledgment of the first FIN signal from the server
                                      LAST_ACK Indicates that the server is in the process of sending its own FIN signal
                                      LISTENING Indicates that the server is ready to accept a connection
                                      SYN_RECEIVED Indicates that the server just received a SYN signal from the client
                                      SYN_SEND Indicates that this particular connection is open and active
                                      TIME_WAIT Indicates that the client recognizes the connection as still active but not currently being used

                                      Checking for malware by looking at which programs initiate connections

                                      To find out which programs are making connections with the outside world, we can use the command netstat -b Actually, it is better to check over a period of time and we can add a number that sets the command to run at fixed intervals. Also, it is best to create a written record of the connections that are made over some period of time. The command can then be written netstat -b 5 >> C:\connections.txt Note that as written, this command will run with five-second intervals until stopped by entering "Ctrl+c", which is a general command to exit. (Some reports say that this can be fairly CPU intensive so it may cause a slower, single-core machine to run sluggishly. It was not noticeable on my dual-core machine.) A simple example of the type of output is shown in Figure 2. Note that the Process ID (PID) is given. This command can be combined with other tools such as Task Manager to analyze what executable files and processes are active and are trying to make Internet connections.

                                      Figure 2. Sample output for command "netsat -b"

                                      Batch program to check connections and terminate automatically

                                      The previous example of using "netstat -b" to check connections at intervals has the disadvantage that it requires manual termination. It is also possible to use a batch file that runs a specified number of times with a given time interval and then terminates automatically. In Windows XP we can make use of a command from the Windows 2003 Server Tools called "Sleep". A possible batch file is: @echo off
                                      for /L %%X in (1,1,100) do (netstat -b >> C:\connections.txt)&(sleep 5)
                                      This particular example does 100 iterations of the netstat command at 5 second intervals.

                                      The Source : http://commandwindows.com 

                                      'Operating System > Windosw' 카테고리의 다른 글

                                      Windows Command Line  (0) 2009.01.05
                                      Netstat [2]  (0) 2009.01.05
                                      GETMAC  (0) 2009.01.05
                                      The Start Run Line  (0) 2009.01.05
                                      Widows Command Line  (0) 2009.01.05
                                      Posted by IT 사랑 :
                                      반응형
                                      Windows XP has a whole array of helpful command line tools for configuring and testing Internet and LAN connections. On this page is a discussion of some of the networking tools that can be useful to an average PC user.

                                      There are dozens of networking tools available for Windows XP (For example, see this command-line reference.) Most of these are specialized and are mainly of interest to professionals who are maintaining a large network. Many, however, are relevant to the Internet and some of these can be helpful to the average PC user. The tools of interest to the discussion here are a few of of the TCP/IP utilities. (Go here for a complete list.) TCP/IP refers to the set of protocols that are used for Internet connections and on most networks. Discussing TCP/IP is beyond the scope of this page but more details are available on a separate page and in the references in the sidebar. Fortunately, it is not necessary to understand the gory details of TCP/IP in order to make practical use of the tools considered here.

                                      All of the tools are run by opening a Command window and entering the appropriate command. Go to Start-Run and enter "cmd" to open a Command window.

                                      Windows IP Configuration Tool (ipconfig)

                                      The Windows IP Configuration tool (ipconfig) is the command-line equivalent of the accessory "Winipcfg" that was present in Windows 9X/Me. It is used to display the TCP/IP network configuration values. To open it, enter "ipconfig" in the command prompt. If you are connected directly to the Internet, you will obtain your IP address. (For a discussion of what an IP is, go here.) The figure below shows the result for a broadband connection where the IP is assigned automatically. Here the IP is your computer's temporary address on the Internet.

                                      ipconfig window

                                      If you are on a local area network using a router, the information is different. You do not obtain the IP corresponding to the network's address on the Internet. (To obtain the IP that the Internet sees, go to a source such as DSL Reports Whois.) The IP given is the local address on the network. This information can be helpful in diagnosing network problems. Also listed is the "gateway" or router address on the local network. The figure below illustrates the result.

                                      Ipconfig window for network

                                      Switches for IPConfig

                                      There are also a variety of switches for ipconfig that add functions. These are invoked by entering "ipconfig /{switch}". To obtain a list of switches, enter "ipconfig /?" or "ipconfig -?". These are shown in the figure below. The switches of most interest to everyday use are "release" and "renew". Note that IP addresses are typically assigned or "leased" for a period of time, often a day or more. It sometimes happens that IP addresses are no longer valid or are in conflict. Problems can often be solved by first releasing the IP address and then renewing it. Sometimes cable or DSL modems that seem to be disabled can be restored this way. If you travel and use broadband connections elsewhere, you will often find this procedure of releasing and renewing the IP address to be necessary.

                                      Ipconfig switches

                                      For a detailed output of network parameters, you can use the command "ipconfig /all". Unless you are experienced with networks, however, this may be more than you want to know.

                                      The switches "flushdns" and "displaydns" are are also sometimes useful in everyday use and they are discussed on another page at a sister site.

                                      Ping

                                      Ping is an old Unix tool that has been around for a long time but many PC users are unfamiliar with the Windows version. Ping sends out a packet to a designated internet host or network computer and measures its response time. The target computer will return (hopefully) a signal. It is a way of determining the quality of your connection to another site. You will also receive an IP address that corresponds to the user-friendly type of URL (see this page for further discussion of IPs and URLs). To use ping, open a command window (or DOS in Windows 9X/Me) and type: ping <hostname>. For example, to ping Dell enter: ping dell.com Please note the use of a hostname, not a complete URL. The prefix "http://" is never used. Many sites also do not require "www" . By convention, 32 byte packets will be transmitted four times. You will receive a screen output that looks like:

                                      Ping window

                                      The screen tells me that the IP for dell.com is 143.166.83.230 (For the moment, at least. This can change.) It also tells me that the average round trip time for a packet was 69 milliseconds, which means I have a good connection to dell.com. Long reply times of several hundred milliseconds are indicative of a slow connection. Note that some major sites such as microsoft.com do not like being pinged and block pings. In that case you will get a "Request timed out" message.

                                      In addition to being used on the Internet, Ping is often used to test connections on local networks. More details can be found in this Microsoft article.

                                      Tracert

                                      Tracert (traceroute) is another old tool borrowed from Unix. The actual path between two computers on the Internet is not a straight line but consists of numerous segments or "hops" from one intermediate computer to another. Tracert shows each step of the path taken. It can be interesting to see just how convoluted it is. The times for each hop and the IP addresses for each intermediate computer are displayed. Tracert shows up to 30 hops. It is convenient for finding if there is one particular segment that is causing a slow or bad connection. A typical command might be "tracert dell.com".

                                      Pathping

                                      This command combines functions of Ping and Tracert. Pathping will first list the number of hops required to reach the address you are testing and then send multiple pings to each router between you and the destination. After that, it computes results based on the packets returned from each router. Because pathping displays the degree of packet loss at any given router or link, you can determine which routers or subnets might be having network problems. Note that the whole process may consume 5-10 minutes because many pings are being sent. There are switches to modify the process and these can be seen by entering "pathping /?" in the command prompt.

                                      Netstat

                                      Netstat displays the active TCP connections and ports on which the computer is listening, Ethernet statistics, the IP routing table, statistics for the IP, ICMP, TCP, and UDP protocols. It comes with a number of switches for displaying a variety of properties of the network and TCP connections. (One tricky point: the switches must be prefixed with a minus, not a slash.) More detail is at this page. One possible use for Netstat is to determine if spyware or Trojans have established connections that you do not know about. The command "netstat -a" will display all your connections. The command "netstat -b" will show the executable files involved in creating a connection. A figure showing all the switches and syntax is given below.

                                      Netstat window

                                      Nslookup

                                      This command helps diagnose the Domain Name System (DNS) infrastructure and comes with a number of sub-commands. These are mainly for systems administrators. The primary interest for average PC users is its use to find the computer name corresponding to a numeric IP. For example, if you want to know who is "216.109.112.135" , enter "nslookup 216.109.112.135" and you will find that it is (or was anyway) a Yahoo computer. My firewall keeps a log of the IPs involved in the attempts to probe my computer and I sometimes look a few up to see who they are. (There are also Whois search sites available on the Web as mentioned in the Ipconfig section.)

                                      Netsh

                                      The network services shell is a large suite of many tools. I discuss it in some depth on another page.

                                      Back to top

                                      Netsh, the Network Services Shell
                                      A suite of command line networking tools called Netsh that comes with its own shell or interface is contained in a number of Windows operating systems and is discussed here.

                                      Introduction to Netsh

                                      As more and more home users set up networks, they are finding themselves to be de facto system administrators. Home networks are very nice but they require a certain amount of care and feeding. Fortunately, Windows XP comes with a large assortment of command-line tools that can help maintain your network. Although many are specialized and of interest only to administrators of large corporate setups, some tools can be quite helpful to the home user as well.

                                      Many may find that the basic tools like ping, ipconfig, and netstat, which are discussed on another page, are all that they care to deal with but the more adventurous can take advantage of a complete suite of powerful tools called Netsh. This suite is invoked from the standard command-line but has it has own interface or shell with a large number of sub-commands. I will try to focus on the features of Netsh that I think can be helpful to the home user. The whole suite has many applications and those who want more details can go to this Microsoft reference.

                                      The Network Services shell is opened by entering netsh into a regular command prompt. The shell has a hierarchical structure with some sub-shells that Microsoft calls "contexts". From the user's point of view, however, all that this means is that commands are entered as a sequence of terms. The following sections discuss the "contexts" of most use to the home user.

                                      The "netsh diag" context

                                      The diagnostic context "diag" contains useful tools for checking out a network and testing various components and functions. Table I shows the contexts and sub-commands of most interest to this discussion. A complete list and many details are given at this Microsoft reference.

                                      Table I. Some sub-shells (contexts) and commands for Netsh diag
                                      Context Sub-context Commands
                                      diag connect- Establishes, verifies, and then drops a connection iphost, mail, news
                                      ping- Verifies connectivity adapter, iphost, mail, news
                                      show- Lists network components and settings all, client, ip, mail, modem
                                      gui- Starts the network diagnostics tool in Help and Support Center. Graphical user interface

                                      This group of commands provides ways to test some of the most common functions of interest to home users. For example, you can test if your email server is working or check your email settings by the command netsh diag connect mail (Note that this may not work for email clients like AOL.). Another example is to list important settings withnetsh diag show all

                                      The graphical user interface

                                      One way to simplify diagnostic tasks is to use the Help Center interface that can be invoked by entering netsh diag gui With this interface, you can carry out a number of diagnostic tests with one operation. Figure 1 shows the available functions.

                                      Figure 1. Settings for GUI function of Netsh diag
                                      GUI for netsh

                                      The "netsh interface ip" context

                                      This context is another with functions that might interest a home user. It provides a way to add, delete, modify, and display various IP addresses and TCP/IP settings. Table II lists several functions. More detail and additional functions are discussed in this Microsoft reference. An example of its use is to display TCP/IP settings with the command netsh interface ip show configThis can also be written netsh int ip show config

                                      Table II. Some commands for "netsh interface ip"
                                      Context Sub-context Function
                                      interface ip
                                      or
                                      int ip
                                      set address Configures an IP address and a default gateway on a specified interface
                                      show address Displays address for specified interface

                                      Reset Internet Protocol (TCP/IP)

                                      Another example of using the Netsh Internet Ip context is resetting TCP/IP. For several reasons, including infestation from spyware, these settings might get corrupted. Netsh contains a command that will reset the TCP/IP stack to the original settings that existed when the operating system was installed. These settings may not be the most up-to-date for your system but they will allow you to reconfigure after a spyware invasion or other problem. The command to reset TCP/IP is netsh int ip reset {logfile} Note that you must include the name of a file where a log of the actions will be placed. Thus, if the log file is C:\tcplog.txt, the command is netsh int ip reset C:\tcplog.txt A detailed description of reinstalling TCP/IP is given at this Microsoft reference. Also, see the Winsock section below.

                                      The "netsh winsock" context

                                      Service pack 2 for Windows XP includes some additions to the Netsh suite. These are discussed here and include a new tool for repairing the Windows network socket or "winsock". Uninstalling spyware or poorly written applications can corrupt the winsock settings and result in loss of network connectivity. There are two commands for managing the settings. To display a list of various installed services (LSP, BSP, NSP) use netsh winsock show catalog This list may not be too meaningful for the average PC user but it can be helpful for more experienced users. To reset the winsock to the default configuration use netsh winsock reset catalog Note that any installed software that uses Internet connections may be partially disabled by this action and have to be reinstalled. This would include most software that updates itself and anti-virus programs that use proxy servers. Therefore, this command should only be used for cases where the degree of corruption makes it necessary. See this reference for some alternative methods.

                                      Netsh Firewall Helper in Windows XP SP2

                                      Microsoft changed the way the firewall in Windows XP works when it issued service pack 2. It also added capability to Netsh for extensive configuring of the firewall with a new context "netsh firewall" that Microsoft calls the Firewall Helper. Its use in troubleshooting firewall problems in SP2 is extensively discussed in this knowledge base article. With the Firewall Helper Microsoft says you can now

                                      • Configure the default state of Windows Firewall. (Options include Off, On, and On with no exceptions.)
                                      • Configure the ports that must be open.
                                      • Configure the ports to enable global access or to restrict access to the local subnet.
                                      • Set ports to be open on all interfaces or only on a specific interface.
                                      • Configure the logging options.
                                      • Configure the Internet Control Message Protocol (ICMP) handling options.
                                      • Add or remove programs from the exceptions list

                                      The number of possible commands is quite large but two main sub-contexts are netsh firewall set and netsh firewall show An extensive list of commands is in the knowledge base article previously mentioned.

                                      Back to top

                                      The Source : http://commandwindows.com 

                                      'Operating System > Windosw' 카테고리의 다른 글

                                      Windows Command Line  (0) 2009.01.05
                                      Netstat [2]  (0) 2009.01.05
                                      GETMAC  (0) 2009.01.05
                                      The Start Run Line  (0) 2009.01.05
                                      Netstat  (0) 2009.01.05
                                      Posted by IT 사랑 :