Main Menu

Search

Showing posts with label list. Show all posts
Showing posts with label list. Show all posts

Oracle VM Manager: Python Script to list all VM's and their Status (Running/Stopped) managed by OVM Manager 3.2.X (How To Doc)

Refer to below Tarbots GitHub Repository which has Python script to list all VM's and their Status (Running/Stopped) managed by OVM Manager 3.2.X.

https://github.com/tarbots/OVM-3.2.X-Python-Script-To-List-All-VMs-Status-On-All-Dom0-Nodes-Managed-By-Oracle-VM-Manager

Refer to Readme file in above GitHub repository which has instructions on how to run the Python scripts and details on sample output.

 

Products to which Article Applies

Oracle VM Manager version 3.2.X

 

Article Author: Tarun Boyella

LINUX: IPTABLES: How To List iptables with Line Numbers? ("IP Filters")

Below is the command to list the iptables with line numbers
iptables -L --line-numbers

Below is example output of above command which shows line numbers for some of the filers under INPUT policy.
# iptables -L --line-number
Chain INPUT (policy DROP)
num  target     prot opt source               destination
1    ACCEPT     all  --  10.10.10.20          anywhere
2    ACCEPT     all  --  localhost            anywhere

Chain FORWARD (policy ACCEPT)
num  target     prot opt source               destination

Chain OUTPUT (policy ACCEPT)
num  target     prot opt source               destination


Products to which Article Applies

All Linux Operating Systems


Additional References

https://linux.die.net/man/8/iptables

LINUX: "ps" Command To List All Non Root User PID's / Processes (How To Doc)

Below "ps" Command can be used to list all non root user PID's and processes.
ps --ppid 2 -p 2 --deselect

Below is example output of above command.

# ps --ppid 2 -p 2 --deselect
  PID TTY          TIME CMD
    1 ?        00:00:33 init
  594 ?        00:00:04 udevd
  602 ?        00:00:00 server_httpd
  603 ?        00:00:00 server_httpd
 1616 ?        00:00:00 ora_w008_elctrl
 1652 ?        00:00:00 ora_w007_elctrl
 2019 tty1     00:00:00 mingetty


Products to which Article Applies

All Linux Operating Systems

Oracle VM Manager (OVMM): List All the Servers / Dom0 Hypervisors Managed by OVM Manager in OVM CLI (How To Doc)

Below are steps for listing all Servers / Dom0 Hypervisors managed by OVM Manager in OVM CLI.

1. From the host running OVM Manager, login to OVM Shell CLI prompt using "admin" user by running below command.

ssh admin@localhost -p 10000

When prompted for password, enter OVM "admin" user password. After successful login you will be in OVM shell prompt "OVM>".

2. In OVM CLI prompt, run below "list server" command. All the Servers managed by OVM manager will be listed.

list server

Below is sample output.

OVM> list server
Command: list server
Status: Success
Time: 2019-09-29 14:00:13,092 EDT
Data:
  id:08:00:20:ff:ff:ff:ff:ff:ff:ff:xx:yy:zz:bd:9a:e6  name:ovm-server-03.testingcompany.com
  id:08:00:20:ff:ff:ff:ff:ff:ff:ff:xx:yy:zz:bd:16:14  name:ovm-server-02.testingcompany.com
  id:08:00:20:ff:ff:ff:ff:ff:ff:ff:xx:yy:zz:bd:9a:da  name:ovm-server-04.testingcompany.com
  id:08:00:20:ff:ff:ff:ff:ff:ff:ff:xx:yy:zz:c4:6f:1a  name:ovm-server-01.testingcompany.com
OVM>

Products to which Article Applies

Oracle VM Manager Version 3.3.X & Above Versions 

Additional Reference

https://docs.oracle.com/cd/E50245_01/E50252/html/vmcli-ref-list.html

Oracle VM Manager (OVMM): How To List and View Job Logs In OVM CLI Prompt In OVM Manager? (OVM 3.3.X & Above)

Below are steps to list and view job logs in OVM CLI prompt in OVM Manager.

1. Login to OVM Manager CLI prompt using below command.

ssh admin@localhost -p 10000

Once prompted for password enter OVM Manager "admin" user password.

2. To list OVM Manager Job logs run "getjobs" command.

getjobs

Below is example snippet of above command.

id:1562007170106  name:Sent VM message to VM: ovmd-test-messages
id:1562007167924  name:Modify VM: ovmd-test-messages

3. To view specific job log, run below command.

show job id=<job id>

Below is snippet

OVM> show job id=1562007108131

Command: show job id=1562007108131
Status: Success
Time: 2019-07-01 15:12:19,654 EDT
Data:
  Run State = Success
  Summary State = Success
  Done = Yes
  Summary Done = Yes
  Job Group = No
  Username = admin
  Creation Time = Jul 01, 2019 2:51:48 pm
  Start Time = Jul 01, 2019 2:51:48 pm
  End Time = Jul 01, 2019 2:51:48 pm
  Duration = 18ms
  Result Id Value = 0004fb000013000074a9e3abd50f046d
  Id = 1562007108131  [Create VM Clone Definition on VM: test-VM]
  Name = Create VM Clone Definition on VM:

test-VM  Description = Create VM Clone Definition on VM:
test-VM  Locked = false
    

Products to which Article Applies

Oracle VM Manager Version 3.3.X & Above Versions  


Additional Reference

https://manualzz.com/doc/34639998/oracle%C2%AE-vm---manager-command-line-interface-user-s-guide-for

LINUX: How To List All the Services and their State Using systemctl command? (How To Doc)

On Linux 7 & above versions "chkconfig --list" command does not list all th systemd services and their status.

We will have to use systemctl command to check the services and their status on Linux 7 and above versions.

Below command can be executed to list all the services and their status.
systemctl list-unit-files

Below is sample output. 
UNIT FILE                                     STATE
proc-sys-fs-binfmt_misc.automount             masked
dev-hugepages.mount                           static
dev-mqueue.mount                              static
proc-fs-nfsd.mount                            static
proc-sys-fs-binfmt_misc.mount                 static
sys-fs-fuse-connections.mount                 static
sys-kernel-config.mount                       static
sys-kernel-debug.mount                        static
tmp.mount                                     disabled
var-lib-nfs-rpc_pipefs.mount                  static
brandbot.path                                 enabled
systemd-ask-password-console.path             static
systemd-ask-password-wall.path                static
session-2.scope                               static
acpid.service                                 enabled
arp-ethers.service                            disabled
auth-rpcgss-module.service                    static

Products to which Article Applies


All Linux Operating Systems


Additional Reference