xsos – a tool for sysadmins and support
Here is a very nice article that you may find useful
Here is a very nice article that you may find useful
If you are doing some scripting and using ‘time’ command, then you know sometimes it becomes difficult to capture the output as the output would be something like this:
: amit ; time ls real 0m0.002s user 0m0.000s sys 0m0.001s
So, it is better to change that format. Here is simple example:
|
1
|
Some times I need random string, for example to use as email seperator or to use in some API. One way is to use tools like /dev/[u]random or od and other such. But they seem cubersome after I figured this out.
openssl rand <length> openssl rand 10
This alone without some parameters is not interesting thoug. You can use ‘-base64’ or ‘-hex’ to select the encoding.
So if you execute the above you will get something like this
Continue readingsupernova is an easy to use tool that helps manage multiple openstack environments.
Details –
- Name : supernova
- Arch : noarch
- Epoch : 0
- Version : 2.2.0
- Release : 2.fc24
- Size : 62 k
- Repo : @System
- From repo : fedora
- Summary : Use novaclient with multiple OpenStack nova environments the easy way
- URL : https://github.com/major/supernova
- License : ASL 2.0
- Description : supernova manages multiple nova environments without sourcing
- novarc files or mucking with environment variables.
To get started, start with installing supernova with
Continue readingTo install a VM from command line, you can use the following command. Change the required parameters as need but you need to change at-least CDROM iso image and disk-path.
virt-install \
-n myVM \
--description "Test VM" \
--os-type=Linux \
--os-variant=centos7 \
--ram=2048 \
--vcpus=2 \
--disk path=./myVM.img,bus=virtio,size=10 \
--graphics none \
--cdrom <Image installtion CDROM>.iso \
--net user
From the packages github page:
SysReporter (System Reporter) is a bash script that runs and aggregates a set of reports about its host system. The report can then be emailed to the system administrator on a daily, hourly, minutely basis.
and from dnf info
Name : sysreporter
Continue reading
Arch : noarch
Epoch : 0
Version : 3.0.4
Release : 1.fc24
Size : 17 k
Repo : @System
From repo : updates
Summary : Basic system reporter with emailing
URL : https://github.com/onesimus-systems/sysreporter
License : MIT
Description : Basic system reporter with emailing
In shell scripts if you need to get you local IP address corresponding to your hostname then you can use this command
hostname -i