Skip to content

Latest commit

 

History

History
46 lines (32 loc) · 1.37 KB

README.md

File metadata and controls

46 lines (32 loc) · 1.37 KB

pca-tools

A collection of tools for Oracle's Private Cloud Appliance

send_bundle

This is a simple shell script that simplifies the process of uploading bundle files (any file is supported) to MOS. Installation is easy, just download it to your PCA MN and run it.

How to install

# mkdir -p /nfs/shared_storage/tools/
# mv send_bundle.sh /nfs/shared_storage/tools/send_bundle.sh
# chmod a+x /nfs/shared_storage/tools/send_bundle.sh

How to run

# cd /nfs/shared_storage/support_bundles
../tools/send_bundle.sh ./3-37582104811_pca-support-bundle_20240814T043429658.tar.gz

One Line Version

If you want to have a command that you can run from the prompt, just copy/paste this line of code.

echo -n "File: "; read f; p=$(realpath $f); [ ! -f $p ] && echo "Not a file." && return 1; echo -n "SR: "; read s; echo -n "Login: "; read l; u="https://transport.oracle.com/upload/issue/${s}/"; curl --verbose --progress-bar --user ${l} --upload-file ${p} ${u};

ssh_wrapper

One of the difficulties of using SSH with PCA is that if / when the master MN changes, the SSH client complains about the host key changing. So I wrote a SSH wrapper script that prompts to delete the host key and re-tries the connection.

How to install

# mkdir -p ~/bin/
# mv sssh.sh ~/bin/

How to use

# alias ssh="~/bin/sssh.sh"
# ssh <some host name as usual>