Tanti Technology

My photo
Bangalore, karnataka, India
Sandeep Kumar | Founder, Tanti Technologies At Tanti Technologies, I share practical knowledge, hands-on tutorials, and real-world solutions across Python, SQL, Docker, Kubernetes, CI/CD, AWS, Azure, Machine Learning, Generative AI, and Agentic AI. My mission is to simplify complex technologies and provide actionable insights that help developers, engineers, and businesses learn faster, build better, automate smarter, and innovate with confidence. šŸš€ Learn • Build • Automate • Innovate Follow Tanti Technologies for practical technology insights and next-generation AI solutions.

Monday, 17 February 2014

CPIO backup command in AIX


Copies files to/from an archive storage device. This command is often used to copy files from UNIX to AIX systems. This command will span across multiple tapes. cpio stands for CoPy Input to Output.




Options What it does
-c Writes header information in ascii format for portability across UNIX systems. The message Out of phase--get help is generated when an attempt is made to extract a file not in cpio format OR if the archive tape was written with the -c option. The cpio command doesn't have this option specified when attemping to extract files from the media (eg., cpio -icdumpv < /dev/rmt0)
-r When restoring will prompt for new path/file to restore to
-v List the file name as it's being copied
-i Read from standard input, i.e. keyboard
-u Copies unconditionally. Older file replaces a newer one. Files with older modification times will replace files with newer modification times.
-d Creates directories, if applicable
-t For table of contents
-C1 Performs block I/O in 512 byte blocks, if the block size of the device that wrote the data on the tape was set to 512 bytes. Make sure you read with the same block size. If the block size that the data was written to and about to be read from are two different sizes, this message will be displayed: Cannot read from the specified device

Emergency FIX


Before patching check with this command #lppchk -v ...... If you get any fix to install run this script to, It will help you complete the FIX.

/usr/sbin/emgr -P | egrep -v 'PACKAGE|=' | awk '{print $3}' | while read ff
do
emgr -r -L $ff
done

Welcome to AIX world. Post your question to clarify your doubts.


Latest AIX servers. IBM's latesr AIX 7

  • Latest generation of IBM’s market leading, scalable, open standards-based UNIX® operating system

  • Binary compatibility with previous releases of AIX® to preserve client’s software investment

  • Tremendous vertical scalability to provide capacity for your IT infrastructure to grow with your business

  • Built-in clustering capabilities to simplify high availability and to provide infrastructure for future innovation

  • Enhancements to virtualization capabilities to provide even more flexibility to support changing workloads

  • Built on IBM POWER® technology and virtualization to help deliver superior performance, increase system utilization and efficiency, provide for easy administration and reduce total costs

  • Available in three editions for even more capability and flexibility

  • AIX, the future of the UNIX operating system

    Businesses today need to maximize the return on investment in information technology. Their IT infrastructure should have the flexibility to quickly adjust to changing business computing requirements and scale to handle ever expanding workloads—without adding complexity. But just providing flexibility and performance isn’t enough; the IT infrastructure also needs to provide rock-solid security and near-continuous availability and while managing energy and cooling costs.

    Fresher : Basic things to do as a Admin - For safer side


    Hi Everyone... The following comments are very useful for the beginerrs in AIX

    Admin role :Once logged into the AIX server run the follwing commands and save the output.

    1. oslevel -s
    2. id
    3. uptime
    4. w or who
    5. lsvg
    6. lsvg -o
    7. lsvg rootvg
    8. df -k
    9. date

    If you are suppose to work on any critical issue please run the follwing commands too and save the output

    9. prtconf
    10. ps -ef
    11. ps -ef|grep root
    12. ifconfig -a
    13. netstat -nr
    14. errpt
    15. lsvg

    Basic commands of AIX


    HI Friends,

    The following commands should be handy for AIX servers

    In AIX 5.2, the 32-bit kernel is installed by default. In AIX 5.3, the 64-bit kernel is installed on 64-bit hardware and the 32-bit kernel is installed on 32-bit hardware by default.


    How would I know if my System p machine (hardware) is 32-bit or 64-bit?

    To display if the hardware is 32-bit or 64-bit, type:

    #bootinfo -y


    To display the number of hard disks on your system, type:

    #lspv

    How do I list information about a specific physical volume?

    To find details about hdisk1, for example, run the following command:

    #lspv hdisk1

    How do I get a detailed configuration of my system?

    Type the following:

    #lscfg

    The uname command provides details about your system.

    #uname -p
    Displays the chip type of the system. For example, PowerPC.

    #uname -r
    Displays the release number of the operating system.

    #uname -s
    Displays the system name. For example, AIX.

    #uname -n
    Displays the name of the node.

    #uname -a
    Displays the system name, nodename, version, machine ID.

    #uname -M
    Displays the system model name. For example, IBM, 9114-275.

    #uname -v
    Displays the operating system version.

    #uname -m
    Displays the machine ID number of the hardware running the system.

    #uname -u
    Displays the system ID number.

    The uname command provides details about your system.

    #uname -p
    Displays the chip type of the system. For example, PowerPC.

    #uname -r
    Displays the release number of the operating system.

    #uname -s
    Displays the system name. For example, AIX.

    #uname -n
    Displays the name of the node.

    #uname -a
    Displays the system name, nodename, version, machine ID.

    #uname -M
    Displays the system model name. For example, IBM, 9114-275.

    #uname -v
    Displays the operating system version.

    #uname -m
    Displays the machine ID number of the hardware running the system.

    #uname -u
    Displays the system ID number.

    Useful links to learn AIX


    Learn more about AIX
    AIX & UNIX developerWorks zone
    http://www-128.ibm.com/developerworks/aix

    PowerAIX.org mit indischer User Group
    http://www.poweraix.org/groups?groupid=5


    Other useful Websites
    Support for IBM System p servers
    http://www-03.ibm.com/servers/eserver/support/unixservers

    Technical Database for AIX
    http://www14.software.ibm.com/webapp/set2/srchBroker/views/srchBroker.jsp

    Redbooks domain for IBM System p
    http://www.redbooks.ibm.com/portals/UNIX

    Virtual Loaner Program
    http://www.ibm.com/servers/enable/site/vlp

    AIX Documents


    Redbooks
    IBM System p5 Approaches to 24x7 Availability Including AIX 5L
    http://www.redbooks.ibm.com/Redbooks.nsf/RedbookAbstracts/sg247196.html?Open


    Advanced POWER Virtualization on IBM System p5
    http://www.redbooks.ibm.com/Redbooks.nsf/RedbookAbstracts/sg247940.html?OpenDocument

    Problem Solving and Troubleshooting in AIX 5L
    http://www.redbooks.ibm.com/Redbooks.nsf/RedbookAbstracts/sg245496.html?OpenDocument

    Technical Database for AIX
    http://www14.software.ibm.com/webapp/set2/srchBroker/views/srchBroker.jsp