openstack key commands

Posted: March 26, 2018 in key commands, openstack

[root@rhel7- ~]# openstack stack list – —->stack complete container of Open stack

[root@rhel7 ~]# openstack image list —-> Like a ova that deployed as image in OS

[root@rhel7 ~]# openstack server list or nova list — > created Servers

[root@rhel7 ~]#openstack flavor list —>it like template what configuration use for server

[root@rhel7- ~]# openstack volume list or # cinder list — > list of Volume

[root@rhel7-~]# neutron net-list —-> Network List like a VLAN networking

[root@rhel7-i ~]# neutron subnet-list

[root@rhel7- ~]# neutron router-list

[root@rhel7-i~]# openstack flavor list


#cinder list

#mysql

MariaDB [(none)]> use cinder ;

MariaDB [cinder]> update volumes set attach_status=’detached’,status=’available’ where id ='<Volume id> ;

MariaDB [cinder]>exit

#cinder delete <volume_id>


1.SSH to  vCenter Server appliance as root user

2.Type the following in:

/usr/lib/vmware-vmdir/bin/vdcadmintool

Which gets you:
==================
Please select:
0. exit
1. Test LDAP connectivity
2. Force start replication cycle
3. Reset account password
4. Set log level and mask
5. Set vmdir state
==================

Select option 3

Please enter account UPN :

This is one of the problems with the 6.X guide, it doesn’t tell you explicitly that you need to type the following.

Administrator@vSphere.local

After that you should get a new password that you can use to log in. 
This password can then be used to access the WebGUI of the appliance and 
there you can set your administrator@vsphere.local password back

#!/bin/bash
#!/usr/bin/expect
IP=192.168.10.100
PASSWORD=root@123

echo -e "\n------------------------------------------------------------------------------------------"
echo -e "\t RHEL version"
echo "------------------------------------------------------------------------------------------"

expect -c "spawn ssh -qo StrictHostKeyChecking=no root@${IP}
 expect {
 \"(yes/no)?\"
 {
 send \"yes\"
 expect \"password: \"
 send \"${PASSWD}\r\"
 expect \"\\\\#\"
 send \"uname -r\r\"
 expect \"\\\\#\"
 send \"lsb_release -r\r\"
 expect \"\\\\#\"
 send \"logout\"
 }
 \"password: \"
 {
 send \"${PASSWD}\r\"
 expect \"\\\\#\"
 send \"uname -r\r\"
 expect \"lsb_release -r\\\\#\"
 send \"\r\"
 expect \"\\\\#\"
 send \"logout\"
 }
 \"# \"
 {
 expect \"\\\\#\"
 send \"uname -r\r\"
 expect \"\\\\#\"
 send \"lsb_release -r\r\"
 expect \"\\\\#\"
 send \"logout\"
 }
 }
 "
echo -e "\n ------------------------------------------------------------------------------------------\n"

Issue :- Windows cannot access samba share 

[test]

path=/backup

what is the problem : – I have created  directory as /BACKUP but i have mentioned  in samba path as /backup so here samba share path is not correct hence i getting below error

FIX : – Modify correct share directory name and restart samba service it will work.


Problem  : – samba is not accessible. you might not have permission to use this network resource

why it happens: –  Windows machine still pointing older samba shares hence you got above issue . Need to be clear the samba cache

FIX :-  Need to be clear the samba cache

Open command line console (menu start -> run -> cmd (ctrl + shift +enter will open with Administrator privileges))
>net use
>net use \\address_ip\share /delete
eg.
>net use \\192.168.1.1\photos /delete


this link contains most of admin stuffs as practice https://www.youtube.com/channel/UC1wYA1hj-a1hHr2AGi8qteQ