Cmnd_Alias ISCSIADM = /usr/libexec/oracle-cloud-agent/ocatools/oca-privileged-helper-iscsiadm, /snap/oracle-cloud-agent/current/usr/libexec/oracle-cloud-agent/ocatools/oca-privileged-helper-iscsiadm

Cmnd_Alias ISCSI_NODE_SIZE = /usr/libexec/oracle-cloud-agent/ocatools/oca-privileged-helper-iscsi-node-size, /snap/oracle-cloud-agent/current/usr/libexec/oracle-cloud-agent/ocatools/oca-privileged-helper-iscsi-node-size

Cmnd_Alias RM_ISCSI_NODE = /usr/libexec/oracle-cloud-agent/ocatools/oca-privileged-helper-rm-iscsi-node, /snap/oracle-cloud-agent/current/usr/libexec/oracle-cloud-agent/ocatools/oca-privileged-helper-rm-iscsi-node

Cmnd_Alias DMSETUP = /usr/libexec/oracle-cloud-agent/ocatools/oca-privileged-helper-dmsetup, /snap/oracle-cloud-agent/current/usr/libexec/oracle-cloud-agent/ocatools/oca-privileged-helper-dmsetup

Cmnd_Alias MULTIPATH_INSTALL = /bin/yum install -y device-mapper-multipath, \
                               /usr/bin/yum install -y device-mapper-multipath, \
                               /bin/dnf install -y device-mapper-multipath, \
                               /usr/bin/dnf install -y device-mapper-multipath

Cmnd_Alias MULTIPATH_SYSTEMD = /bin/systemctl start multipathd.service, \
                               /bin/systemctl restart multipathd.service, \
                               /bin/systemctl disable multipathd.service, \
                               /bin/systemctl is-active multipathd.service, \
                               /bin/systemctl is-enabled multipathd.service, \
                               /bin/systemctl start multipath-tools, \
                               /bin/systemctl restart multipath-tools, \
                               /bin/systemctl disable multipath-tools, \
                               /bin/systemctl is-active multipath-tools, \
                               /bin/systemctl is-enabled multipath-tools

Cmnd_Alias MULTIPATH_LIST = /usr/libexec/oracle-cloud-agent/ocatools/oca-privileged-helper-multipath, /snap/oracle-cloud-agent/current/usr/libexec/oracle-cloud-agent/ocatools/oca-privileged-helper-multipath

Cmnd_Alias MULTIPATH_CONFIG_COPY = /bin/cp /etc/multipath.conf.oca /etc/multipath.conf, \
                                   /usr/bin/cp /etc/multipath.conf.oca /etc/multipath.conf, \
                                   /bin/cp /etc/multipath.conf /etc/multipath.conf.bak, \
                                   /usr/bin/cp /etc/multipath.conf /etc/multipath.conf.bak

Cmnd_Alias MULTIPATH_CONFIG_INSTALL = /usr/libexec/oracle-cloud-agent/ocatools/oca-privileged-helper-multipath-config, /snap/oracle-cloud-agent/current/usr/libexec/oracle-cloud-agent/ocatools/oca-privileged-helper-multipath-config

Cmnd_Alias TEE_COMMAND = /usr/libexec/oracle-cloud-agent/ocatools/oca-privileged-helper-tee, /snap/oracle-cloud-agent/current/usr/libexec/oracle-cloud-agent/ocatools/oca-privileged-helper-tee
Cmnd_Alias TASKSET_COMMAND = /usr/libexec/oracle-cloud-agent/ocatools/oca-privileged-helper-taskset, /snap/oracle-cloud-agent/current/usr/libexec/oracle-cloud-agent/ocatools/oca-privileged-helper-taskset
Cmnd_Alias IP_COMMAND = /sbin/ip -br addr show, \
                        /usr/sbin/ip -br addr show
Cmnd_Alias UMOUNT_COMMAND = /usr/libexec/oracle-cloud-agent/ocatools/oca-privileged-helper-umount, /snap/oracle-cloud-agent/current/usr/libexec/oracle-cloud-agent/ocatools/oca-privileged-helper-umount
Cmnd_Alias LN_FORCE_COMMAND = /usr/libexec/oracle-cloud-agent/ocatools/oca-privileged-helper-ln-force, /snap/oracle-cloud-agent/current/usr/libexec/oracle-cloud-agent/ocatools/oca-privileged-helper-ln-force
Cmnd_Alias RM_CONSISTENT_DEVICE_COMMAND = /usr/libexec/oracle-cloud-agent/ocatools/oca-privileged-helper-rm-consistent-device, /snap/oracle-cloud-agent/current/usr/libexec/oracle-cloud-agent/ocatools/oca-privileged-helper-rm-consistent-device
Cmnd_Alias SYSTEMDRUN_COMMAND = /usr/bin/systemd-run -G --unit vmidprun --scope --slice=oca.slice --uid ocarun /usr/libexec/oracle-cloud-agent/plugins/vmidprun/vmidprun, \
                                /usr/bin/systemd-run -G --unit vmidprun --scope --slice=oca.slice --uid root /usr/libexec/oracle-cloud-agent/plugins/vmidprun/vmidprun
Cmnd_Alias SNAP_COMMAND = /usr/libexec/oracle-cloud-agent/ocatools/oca-privileged-helper-snap, /snap/oracle-cloud-agent/current/usr/libexec/oracle-cloud-agent/ocatools/oca-privileged-helper-snap

Cmnd_Alias AGENT_UPGRADE_CLEANUP = /usr/libexec/oracle-cloud-agent/ocatools/oca-privileged-helper-agent-cleanup-upgrade ""
Cmnd_Alias KILL = /usr/libexec/oracle-cloud-agent/ocatools/oca-privileged-helper-agent-kill, /snap/oracle-cloud-agent/current/usr/libexec/oracle-cloud-agent/ocatools/oca-privileged-helper-agent-kill
Cmnd_Alias UPGRADE = /usr/libexec/oracle-cloud-agent/ocatools/oca-privileged-helper-updater-yum, /snap/oracle-cloud-agent/current/usr/libexec/oracle-cloud-agent/ocatools/oca-privileged-helper-updater-yum, \
                      /usr/libexec/oracle-cloud-agent/ocatools/oca-privileged-helper-updater-dnf, /snap/oracle-cloud-agent/current/usr/libexec/oracle-cloud-agent/ocatools/oca-privileged-helper-updater-dnf, \
                      /usr/bin/rpm --import /usr/share/oracle-cloud-agent/gpg_keys/falcon-plugin-rpm-gpg-pub-key
Cmnd_Alias RUN_COMMAND = /usr/libexec/oracle-cloud-agent/plugins/runcommand/runcommand
Cmnd_Alias JMS_COMMAND = /usr/libexec/oracle-cloud-agent/plugins/oci-jms/oci-jms

Cmnd_Alias OSMH_COMMAND = /usr/libexec/oracle-cloud-agent/plugins/oci-osmh/oci-osmh
Cmnd_Alias OCI_RDMA_AUTHENTICATION = /usr/libexec/oracle-cloud-agent/plugins/oci-hpc/oci-rdma-authentication/oci-rdma-authentication
Cmnd_Alias OCI_HPC_MONITORING = /usr/libexec/oracle-cloud-agent/plugins/oci-hpc/oci-hpc-monitoring/oci-hpc-monitoring
Cmnd_Alias OCI_HPC_CONFIGURE = /usr/libexec/oracle-cloud-agent/plugins/oci-hpc/oci-hpc-configure/oci-hpc-configure

Cmnd_Alias UM_SYSTEMD = /bin/systemctl start unified-monitoring-agent.service, \
                        /bin/systemctl stop unified-monitoring-agent.service, \
                        /bin/systemctl kill unified-monitoring-agent.service, \
                        /bin/systemctl enable unified-monitoring-agent.service, \
                        /bin/systemctl disable unified-monitoring-agent.service, \
                        /bin/systemctl is-active unified-monitoring-agent.service, \
                        /bin/systemctl cat unified-monitoring-agent.service, \
                        /bin/systemctl show -p ActiveState unified-monitoring-agent.service, \
                        /bin/systemctl show -p ControlGroup unified-monitoring-agent.service, \
                        /bin/systemctl start unified-monitoring-agent_config_downloader.timer, \
                        /bin/systemctl stop unified-monitoring-agent_config_downloader.timer, \
                        /bin/systemctl enable unified-monitoring-agent_config_downloader.timer, \
                        /bin/systemctl disable unified-monitoring-agent_config_downloader.timer, \
                        /bin/systemctl is-active unified-monitoring-agent_config_downloader.timer
Cmnd_Alias UM_STAGE_PACKAGE = /usr/libexec/oracle-cloud-agent/ocatools/oca-privileged-helper-um-stage-package, /snap/oracle-cloud-agent/current/usr/libexec/oracle-cloud-agent/ocatools/oca-privileged-helper-um-stage-package

Cmnd_Alias UM_INSTALL = /usr/libexec/oracle-cloud-agent/ocatools/oca-privileged-helper-um-yum, /snap/oracle-cloud-agent/current/usr/libexec/oracle-cloud-agent/ocatools/oca-privileged-helper-um-yum, \
                         /usr/libexec/oracle-cloud-agent/ocatools/oca-privileged-helper-um-dnf, /snap/oracle-cloud-agent/current/usr/libexec/oracle-cloud-agent/ocatools/oca-privileged-helper-um-dnf, \
                         /usr/libexec/oracle-cloud-agent/ocatools/oca-privileged-helper-um-apt, /snap/oracle-cloud-agent/current/usr/libexec/oracle-cloud-agent/ocatools/oca-privileged-helper-um-apt

Cmnd_Alias UM_DOWNGRADE = /usr/libexec/oracle-cloud-agent/ocatools/oca-privileged-helper-um-yum, /snap/oracle-cloud-agent/current/usr/libexec/oracle-cloud-agent/ocatools/oca-privileged-helper-um-yum, \
                          /usr/libexec/oracle-cloud-agent/ocatools/oca-privileged-helper-um-dnf, /snap/oracle-cloud-agent/current/usr/libexec/oracle-cloud-agent/ocatools/oca-privileged-helper-um-dnf, \
                          /usr/libexec/oracle-cloud-agent/ocatools/oca-privileged-helper-um-apt, /snap/oracle-cloud-agent/current/usr/libexec/oracle-cloud-agent/ocatools/oca-privileged-helper-um-apt

Cmnd_Alias UM_EVERGREEN_INSTALL = /usr/libexec/oracle-cloud-agent/ocatools/oca-privileged-helper-um-install-evergreen, /snap/oracle-cloud-agent/current/usr/libexec/oracle-cloud-agent/ocatools/oca-privileged-helper-um-install-evergreen

Cmnd_Alias UM_FILEOPS = /bin/mkdir -p /var/lib/oracle-cloud-agent/plugins/unifiedmonitoring/packages, \
                        /usr/bin/mkdir -p /var/lib/oracle-cloud-agent/plugins/unifiedmonitoring/packages, \
                        /bin/chown root\:root /var/lib/oracle-cloud-agent/plugins/unifiedmonitoring/packages, \
                        /usr/bin/chown root\:root /var/lib/oracle-cloud-agent/plugins/unifiedmonitoring/packages, \
                        /bin/chmod 0755 /var/lib/oracle-cloud-agent/plugins/unifiedmonitoring/packages, \
                        /usr/bin/chmod 0755 /var/lib/oracle-cloud-agent/plugins/unifiedmonitoring/packages, \
                        /bin/rm -f -- /var/lib/oracle-cloud-agent/plugins/unifiedmonitoring/packages/temp-unified-monitoring.rpm, \
                        /usr/bin/rm -f -- /var/lib/oracle-cloud-agent/plugins/unifiedmonitoring/packages/temp-unified-monitoring.rpm

Cmnd_Alias UM_KEY_IMPORT = /usr/libexec/oracle-cloud-agent/ocatools/oca-privileged-helper-um-rpm, /snap/oracle-cloud-agent/current/usr/libexec/oracle-cloud-agent/ocatools/oca-privileged-helper-um-rpm, \
                            /usr/libexec/oracle-cloud-agent/ocatools/oca-privileged-helper-um-gpg, /snap/oracle-cloud-agent/current/usr/libexec/oracle-cloud-agent/ocatools/oca-privileged-helper-um-gpg
Cmnd_Alias UM_KILL = /usr/libexec/oracle-cloud-agent/ocatools/oca-privileged-helper-um-kill, /snap/oracle-cloud-agent/current/usr/libexec/oracle-cloud-agent/ocatools/oca-privileged-helper-um-kill
oracle-cloud-agent ALL=(ocarun) NOPASSWD: RUN_COMMAND
oracle-cloud-agent ALL=(root) EXEC: NOPASSWD: JMS_COMMAND

Cmnd_Alias FAMS_COMMAND = /usr/libexec/oracle-cloud-agent/plugins/oci-fams/oci-fams
Cmnd_Alias FAMS_EXECUTOR = /usr/libexec/oracle-cloud-agent/plugins/oci-fams/fams_executor
oracle-cloud-agent ALL=(ALL) NOPASSWD: FAMS_EXECUTOR
oracle-cloud-agent ALL=(root) NOPASSWD: FAMS_COMMAND

Cmnd_Alias WLP_SYSTEMD = /usr/libexec/oracle-cloud-agent/ocatools/oca-privileged-helper-wlp-systemctl, /snap/oracle-cloud-agent/current/usr/libexec/oracle-cloud-agent/ocatools/oca-privileged-helper-wlp-systemctl
Cmnd_Alias WLP_YUM = /usr/libexec/oracle-cloud-agent/ocatools/oca-privileged-helper-wlp-yum, /snap/oracle-cloud-agent/current/usr/libexec/oracle-cloud-agent/ocatools/oca-privileged-helper-wlp-yum

Cmnd_Alias WLP_DNF = /usr/libexec/oracle-cloud-agent/ocatools/oca-privileged-helper-wlp-dnf, /snap/oracle-cloud-agent/current/usr/libexec/oracle-cloud-agent/ocatools/oca-privileged-helper-wlp-dnf
Cmnd_Alias WLP_RPM = /usr/libexec/oracle-cloud-agent/ocatools/oca-privileged-helper-wlp-rpm, /snap/oracle-cloud-agent/current/usr/libexec/oracle-cloud-agent/ocatools/oca-privileged-helper-wlp-rpm
oracle-cloud-agent ALL=(root) NOPASSWD: SYSTEMDRUN_COMMAND, KILL, AGENT_UPGRADE_CLEANUP
oracle-cloud-agent ALL=(root) NOPASSWD:  MULTIPATH_INSTALL, MULTIPATH_SYSTEMD, MULTIPATH_CONFIG_COPY, IP_COMMAND, SSHD_COMMAND, VSSTOOLS_COMMAND, QA_COMMAND, OSMH_COMMAND, FAMS_COMMAND, OCI_RDMA_AUTHENTICATION, OCI_HPC_MONITORING, OCI_HPC_CONFIGURE, UM_SYSTEMD, UM_FILEOPS
oracle-cloud-agent ALL=(root) NOPASSWD: DMSETUP, ISCSIADM, ISCSI_NODE_SIZE, RM_ISCSI_NODE, MULTIPATH_LIST, MULTIPATH_CONFIG_INSTALL, TEE_COMMAND, TASKSET_COMMAND, UMOUNT_COMMAND, LN_FORCE_COMMAND, RM_CONSISTENT_DEVICE_COMMAND, VSS_FILEOPS, WLP_SYSTEMD, WLP_RPM, WLP_YUM, WLP_DNF, UM_INSTALL, UM_DOWNGRADE, UM_KEY_IMPORT, UM_STAGE_PACKAGE, UM_KILL , UM_EVERGREEN_INSTALL 
oracle-cloud-agent-updater ALL=(root) NOPASSWD: UPGRADE
Defaults:oracle-cloud-agent !requiretty
Defaults:oracle-cloud-agent-updater !requiretty
Defaults:ocarun !requiretty
