Dosificación de Medicamentos (Calculadora dosis)

Posología Medicamentos Formulario v2.0

Formulario

Calculadora para la dosis de: paracetamol (Apiretal), ibuprofeno (Junifen, Dalsy), ambroxol (Mucosan), Paidoterín, Aerius, Actithiol, Atarax y Estilsona.
Escriba el peso en kg y la edad en años.
Poner los kilos separados de los gramos por un PUNTO . Por ejemplo 6.4 en lugar de 6,4

Peso (kg):
Edad (años):

Cerrar procesos en Windows desde CMD o Powershell

Cerrar procesos en Windows desde CMD o Powershell

Cuando se nos bloquea un proceso en Windows, quien más quien menos ya sabe que existe el Administrador de Tareas el cual nos permite finalizar procesos de forma obligada desde una cómoda interfaz gráfica.

Sin embargo, es posible que en alguna ocasión no funcione. En estos casos, nos sentiremos tentados a cerrar sesión o reiniciar el equipo. El problema es que no siempre podemos, según el uso que estemos dando al cliente o servidor donde ocurre.

Diferentes formas de terminar procesos que no responden en Windows

Dado lo anterior, vamos a ver diferentes maneras disponibles para matar procesos mediante consola en Windows o con aplicaciones externas específicas. Ya verás, no todo está perdido.

Encontrar y matar un proceso mediante Tasklist & Taskkill

La opción siguiente la podemos utilizar tanto en CMD (Command Prompt) como Windows Powershell.

Nota: si vamos a intentar finalizar un proceso que ha sido lanzado con privilegios de administrador, necesitaremos lanzar la consola con el mismo nivel de privilegios.

Abre el Símbolo de Sistema con privilegios de administrador preferiblemente. Para ello pulsa botón de búsqueda en Windows 10 o la barra de búsqueda del menú inicio en sistemas anteriores.

Abrir cmd en Windows 10
  • Botón derecho > Ejecutar como administrador

La sintaxis para buscar un proceso mediante Tasklist es la siguiente:

tasklist | more
tasklist | sort

Estos son dos ejemplos, el primero de los cuales nos deja paginar cuando la pantalla se llena de información, mientras el segundo nos muestra los procesos ordenados según su nombre en lugar de según su PID.

Para aislar un proceso o varios a una pequeña lista podemos lanzar el comando con el siguiente filtro:

tasklist | findstr /i skype

Usando /i descartaremos que se distinga entre minúsculas o mayúsculas.

Ahora que tenemos el nombre de nuestro proceso, podemos proceder a cerrarlo por las malas 🙂

taskkill /IM <nombre_proceso> /F
  • /IM para seleccionar por su nombre
  • /F para forzar la operación

O bien:

taskkill /F <PID>
  • /F para forzar la operación
  • PID para seleccionar por número de proceso

Para ver más comandos disponibles mediante taskkill puedes escribir lo siguiente:

taskkill /?

Terminar todos los procesos que no responden a la vez

Entre las opciones útiles de este comando tenemos que además nos permite finalizar cualesquiera procesos según su estado en una sola orden. La sintaxis sería:

taskkill.exe /F /FI "status eq NOT RESPONDING"

Y el resultado:

Incluso podemos añadir esta orden a un acceso directo o a un archivo ejecutable por lotes (BAT) para hacer un simple doble clic.

Tabla de filtros aceptados

Filtro operadores aceptados valores aceptados
STATUS eq, ne RUNNING | NOT RESPONDING | UNKNOWN
IMAGENAME eq, ne Nombre de imagen
PID eq, ne, gt, lt, ge, le PID
SESSION eq, ne, gt, lt, ge, le Nº de sesión
CPUTIME eq, ne, gt, lt, ge, le Tiempo de CPU en forma hh:mm:ss.
hh – horas,mm – min,
ss – seg
MEMUSAGE eq, ne, gt, lt, ge, le Uso de memoria en KB
USERNAME eq, ne Nombre usuario como [dominio\]usuario
MODULES eq, ne Nombre DLL
SERVICES eq, ne Nombre de servicio
WINDOWTITLE eq, ne Título de ventana

*Como ya dije estos comandos pueden lanzarse además mediante Powershell

Matar un proceso usando Powershell

Abre el Windows Powershell con privilegios de administrador preferiblemente. Para ello pulsa botón derecho de ratón sobre el botó de Inicio en Windows 10. La opción predefinida podría ser otra, si no la encuentras usa el botón de búsqueda.

La sintaxis para matar un proceso por su nombre es la que sigue:

Stop-Process -Name "NombreProceso" -Force

Para terminar un proceso desde Powershell según su PID:

Stop-Process -ID PID -Force

Veamos un ejemplo:

Finalizar procesos en Windows con Process Explorer

Process Explorer, cuyo instalador se llama procexp y está disponible en 32/64 bits, es una aplicación de gestión de procesos, librerías y entradas de registro capaz de mostrar el uso de recursos en tiempo real e interactuar con los procesos.

Por tanto, estamos ante una aplicación de gran utilidad que nos valdrá para gran cantidad de tareas como establecer afinidad de procesos (frente a núcleos de proceso), seguir las librerías y entradas de registro que utiliza un proceso, etcétera.

Sin más, veamos como podemos cerrar un proceso a la fuerza en Windows con Process Explorer:

  1. Empezaremos por descargar el software desde la web oficial de Microsoft.
  2. Ahora abriremos la aplicación, seleccionaremos el proceso bloqueado de entre la lista
  3. Pulsaremos el botón derecho y escogeremos la opción Kill

También podemos usar el botón de la barra superior.

Fuente: https://protegermipc.net/2019/09/11/finalizar-procesos-bloqueados-windows-consola/

Patch VMware ESXi hosts by command line

There a several ways to patch a VMware ESXi server. vSphere Update Manager (VUM) can update for example a complete ESXi host cluster fully automatic. vSphere Update Manager requires a vCenter Server. When you don’t have a vCenter Server patching can be done from the command line.

Here is a quick overview how to patch an ESXi 6.x host to the latest patch.

Step 1. Download the latest patch bundle from the VMware Web site, link. VMware ESXi patches are cumulative!  Each patch bundle (.zip archive) includes all the updates from prior patches.

Step 2. Upload the patch bundle (zip) to a (central) datastore with the vSphere Client (prior vSphere 6.5), vSphere Web Client, ESXi host client.

Step 3. Enable SSH

In the vSphere Web client start the SSH service and make a SSH session to the ESXi host

Step 4. Put the host in maintenance mode

1 vim-cmd hostsvc/maintenance_mode_enter

Step 5. Install the patch bundle

Using esxcli with the install method has the possibility of overwriting existing drivers. If you are using third-party ESXi images, VMware recommends using the update method to prevent an unbootable state. The following command will install the patch bunde:

1 esxcli software vib update -d /vmfs/volumes/datastore/patchbundle.zip

For example install HPE ESXi 6 Update 3:

1 esxcli software vib update -d /vmfs/volumes/VMFS01/VMware-ESXi-6.0.0-Update3-5050593-HPE-600.9.7.0.17-Feb2017-depot.zip

After the patch bundle is installed check the message. It must say “The update completed successfully, but the system needs to be rebooted for changes to be effective.”

Step 6. Reboot the host  by entering the following command:

1 reboot

Step 7. Make a SSH session to the ESXi host and exit maintenance mode

1 vim-cmd hostsvc/maintenance_mode_exit

 

Fuente: https://www.ivobeerens.nl/2017/02/15/patch-vmware-esxi-6-5-hosts-command-line/

“esxcli software vib” commands to patch an ESXi 5.x/6.x host (2008939)

To patch an ESXi 5.x/6.x host from the command line:

  1. Patches for VMware products can be obtained from the VMware patch portal. Select ESXi (Embedded and Installable) in the product dropdown and click Search.
  2. Click the Download link below the patch Release Name to download the patch to your system.
  3. Upload the patch to a datastore on your ESXi 5.x/6.x host using the Datastore Browser from vCenter Server or a direct connection to the ESXi 5.x/6.x host using the vSphere Web client.Note: VMware recommends creating a new directory on the datastore and uploading the patch file to this directory.
  4. Log in to the local Tech Support Mode console of the ESXi 5.x/6.x host. For more information, see Using Tech Support Mode in ESXi 4.1, ESXi 5.x, and ESXi 6.x (1017910).
  5. Migrate or power off the virtual machines running on the host and put the host into maintenance mode. The host can be put into maintenance mode by running this command:# vim-cmd hostsvc/maintenance_mode_enter 
  6. Navigate to the directory on the datastore where the patch file was uploaded to and verify that the file exists by running these commands:# cd /vmfs/volumes/Datastore/DirectoryName
    # ls 
    Where Datastore is the datastore name where the patch file was uploaded to, and DirectoryName is the directory you created on the datastore.
  7. Install or update a patch on the host using these esxcli commands:Notes:
    • To install or update a .zip file, use the -d option. To install or update a .vib file use the -v option.
    • Using the update command is the recommended method for patch application. Using this command applies all of the newer contents in a patch, including all security fixes. Contents of the patch that are a lower revision than the existing packages on the system are not applied.
    • Using the install command overwrites the existing packages in the system with contents of the patch you are installing, including installing new packages and removing old packages. The install command may downgrade packages on the system and should be used with caution. If required, the install command can be used to downgrade a system (only for image profiles) when the –allow-downgrade flag is set.

    Caution: The install method has the possibility of overwriting existing drivers. If you are using third-party ESXi images, VMware recommends using the update method to prevent an unbootable state.

    To Install:

    • Using local setup:# esxcli software vib install -d «/vmfs/volumes/Datastore/DirectoryName/PatchName.zip» Where PatchName.zip is the name of the patch file you uploaded to the datastore.Note: Alternatively, you can use the datastore’s UUID instead of the DirectoryName .

      For example:

      # esxcli software vib install -d «/vmfs/volumes/datastore1/patch-directory/ESXi500-201111001.zip» 

      or

      # esxcli software vib install -d «/vmfs/volumes/a2bb3e7c-ca10571c-cec6-e5a60cc0e7d0/patch-directory/ESXi500-201111001.zip» 

    • Using http setup:# esxcli software vib install -v viburlWhere viburl is the URL to the http depot where VIB packages reside.For example:

      # esxcli software vib install -v https://hostupdate.vmware.com/software/VUM/PRODUCTION/main/esx/vmw/vib20/tools-light/VMware_locker_tools-light_5.0.0-0.7.515841.vib 

    To Update:

    • Using local setup:# esxcli software vib update -d «/vmfs/volumes/Datastore/DirectoryName/PatchName.zip» Where PatchName.zip is the name of the patch file you uploaded to the datastore.Note: Alternatively, you can use the datastore’s UUID instead of the DirectoryName .

      For example:

      # esxcli software vib update -d «/vmfs/volumes/datastore1/patch-directory/ESXi500-201111001.zip» 

      or

      # esxcli software vib update -d «/vmfs/volumes/ a2bb3e7c-ca10571c-cec6-e5a60cc0e7d0/patch-directory/ESXi500-201111001.zip» 

    • Using http setup:# esxcli software vib update -v viburlWhere viburl is the URL to the http depot where VIB packages reside.For example:

      # esxcli software vib update -v https://hostupdate.vmware.com/software/VUM/PRODUCTION/main/esx/vmw/vib20/tools-light/VMware_locker_tools-light_5.0.0-0.7.515841.vib

  8. Verify that the VIBs are installed on your ESXi host:# esxcli software vib list For example:# esxcli software vib list 

    Name Version Vendor Acceptance Level Install Date
    —————– ————————— —— —————- ————
    ata-pata-amd 0.3.10-3vmw.500.0.0.469512 VMware VMwareCertified 2012-05-04
    ata-pata-atiixp 0.4.6-3vmw.500.0.0.469512 VMware VMwareCertified 2012-05-04
    ata-pata-cmd64x 0.2.5-3vmw.500.0.0.469512 VMware VMwareCertified 2012-05-04
    ata-pata-hpt3x2n 0.3.4-3vmw.500.0.0.469512 VMware VMwareCertified 2012-05-04 

  9. After the patch has been installed, reboot the ESX host:# reboot 
  10. After the host has finished booting, exit maintenance mode and power on the virtual machines:# vim-cmd hostsvc/maintenance_mode_exit

Fuente: https://kb.vmware.com/s/article/2008939
Foro: https://communities.vmware.com/thread/481214

Extending partitions in Windows using DiskPart

Verify the volume in question has been mounted and has been assigned a drive letter. This can be set in Windows Disk Management or by selecting the volume and typing assign from within the DiskPart command. (No formatear el nuevo espacio asignado)

In versions of Windows prior to 2008, open a command prompt and run the DiskPart command:

C:\Documents and Settings\username>diskpart

Microsoft DiskPart version 5.1.3565
Copyright (C) 1999-2003 Microsoft Corporation.
On computer: USERNAME-HELPER-VM
DISKPART> list volume

Volume ### Ltr Label Fs Type Size Status Info
———- — ———– —– ———- ——- ——— ——–
Volume 0 D CD-ROM 0 B
Volume 1 C NTFS Partition 30 GB Healthy System
Volume 2 E NTFS Partition 10 GB Healthy 

DISKPART> select Volume 2

Volume 2 is the selected volume.

DISKPART> extend
DiskPart successfully extended the volume.

 

If you don’t pass any parameters, DiskPart will use all unpartitioned space on the current disk. Alternatively, you can type

extent size=<size in MB> disk=<disk number>

to set a size and disk to use for the extension.


DISKPART> exit
Leaving DiskPart…

Note: Where 2 above is the disk volume number of the volume to extend.

Note: Ensure to choose the correct volume. The Size is the old value.

Note: If you are in Windows 2003, and you see the error The volume you have selected may not be extended. Please select another volume and try again, see the Microsoft Knowledge Base article 841650.

 

Note 2: Extend disk in VMware ESX

Desde la consola «VMware Virtual Center» conectados con el cliente, con botón derecho encima de la máquina virtual en cuestión y «Edit Setings…», en la pestaña «Hardware» seleccionamos nuestro disco duro y tendríamos la opción de «New Size», indicamos en gigas el tamaño que deseamos y «OK».

Ahora lo que hace falta es decirle a la máquina virtual, a su sistema operativo que su tamaño ha cambiado, en el caso de un Windows (sea XP, 2003, Vista o 2008) lo podremos hacer, reiniciando la máquina virtual en modo seguro, pulsando F8. Una vez que estemos dentro de la MV, debemos ejecutar un comando desde MSDOS: diskpart.

Dentro de ese comando debemos saber que volumen ha sido el que ha cambiado, dentro de ‘diskpart’ ejecutaremos ‘list volume’ para ver que volúmenes tenemos en nuestro S.O., nos mostrará los discos lógicos/volumenes, seleccionamos el que hemos ampliado, en mi caso será el volumen 2, que antes ocupaba 6Gb y ahora 8Gb, así que lo seleccionamos con el comando ‘select volume 2’ y lo extendemos con el comando: ‘extend’. Una vez ejecutado ya podremos arrancar la MV de la forma habitual.

Gracias Bujarra: http://www.bujarra.com/ProcedimientoVMwareESXampliarHDenMV.html

Añadir certificados en Apache 2.0.x Windows

Los certificados de la CA, intermedio y raíz, deben estar B64, pudiendo exportarse en este formato desde el navegador. En el caso de la ACCV, el intermedio es el ACCVCA-120 y el raíz el ACCVRAIZ1. Hay que concatenar estos dos certificados, en Windows el comando equivalente al cat de linux: copy /b accvca-120.crt+accvraiz1.crt accv.crt. Este certificado concatenado es el que tenemos que poner en «SSLCertificateChainFile»

Deshabilitar ssl v2.0 y cifrado débil:

SSLProtocol -ALL +SSLv3 +TLSv1

SSLCipherSuite ALL:!ADH:RC4+RSA:+HIGH:+MEDIUM:!LOW:!SSLv2:!EXPORT

Herramientas para comprobar el ssl:

http://www.digicert.com/es/ayuda/

https://www.ssllabs.com/ssltest/index.html

Powering off a virtual machine on an ESXi host

Using the ESXi 5.0 esxcli command to power off a virtual machine

The esxcli command can be used locally or remotely to power off a virtual machine running on ESXi 5.0. For more information, see the esxcli vm Commands section of the vSphere Command-Line Interface Reference.

  1. Open a console session (SSH) where the esxcli tool is available, either in the ESXi Shell, the vSphere Management Assistant (vMA), or the location where the vSphere Command-Line Interface (vCLI) is installed.
  2. Get a list of running virtual machines, identified by World ID, UUID, Display Name, and path to the .vmx configuration file, using this command:
    esxcli vm process list
  3. Power off one of the virtual machines from the list using this command:
    esxcli vm process kill --type=[soft,hard,force] --world-id=WorldNumber

    (método abreviado: esxcli vm process kill -t soft -w world-id)

    Note
    : Three power-off methods are available. Soft is the most graceful, hard performs an immediate shutdown, and force should be used as a last resort.
  4. Repeat step 2 and validate that the virtual machine is no longer running.

Dosificación de antitérmicos y otros jarabes.

Acceso al programa

Consejos de actuación ante las heridas y golpes en los niños

La mayoría de las heridas y traumatismos infantiles no revisten gran importancia y no requieren de la actuación de personal sanitario.

¿Qué debemos hacer?

Heridas:

  • Lavar bien con agua o suero fisiológico a chorro, para eliminar todo resto de partículas que hayan podido quedar en el interior.
  • Si la herida sangra, presionar con gasas limpias o si no se dispone de ellas con un pañuelo limpio.
  • Si la herida es superficial y deja de sangrar rápidamente, aplicar un antiséptico local: (cloruro de Benzalconio, soluciones yodadas, mercromina o clorehixidina).

Consultar con un servicio médico en caso de:

  • Heridas en las que persista el sangrado
  • Heridas profundas o desgarros que precisen de reparación (tiras adhesivas, pegamento biológico, grapas o puntos).

Contusiones

  • Aplicar hielo localmente (no directamente sobre la piel, sino protegido por un paño)
  • Si el traumatismo es en una extremidad, intentar mantenerla en alto.

Consultar con un servicio médico en caso de:

  • Sospecha de fractura por deformidad en la zona o gran dolor que impida la movilidad. En este caso evitar mover la zona afecta durante el traslado al centro sanitario.
  • Impacto en el cuello. Limitar los movimientos del mismo durante el traslado
  • Traumatismo ocular
  • Traumatismo craneal en caso de:
    • Menores de 1 año
    • Pérdida de conocimiento
    • Dolor importante o llanto persistente.
    • Desorientación
    • Alteración del equilibrio
    • Movimientos extraños
    • Pérdida de fuerza
    • Salida de sangre o líquido por orificios nasales u oídos
    • Siempre que el impacto craneal se considere importante.
  • Traumatismo dental (si se produce la pérdida de una pieza definitiva, introducirlo en leche, suero fisiológico o agua y trasladar a un dentista para la rápida reinserción)

Fuente: Dra. Montserrat González García

Diarrea (Vómitos)

Típico del verano son las gastroenteritis y las diarreas en los niños, aunque pueden darse en cualquier época del año (por tragar mocos). El peligro que trae consigo una diarrea es la deshidratación del niño y ese es el motivo por el que trataremos de que beba la mayor cantidad de agua/suero posible, pasando a un segundo plano la alimentación que pasará a ser una dieta blanda hasta que finalice el episodio de diarrea.

Tratamiento.

Para episodios de vómitos o diarrea, daremos al niño:

1.- Bioral suero, uno o dos días y poco a poco ir introduciendo una dieta blanda.

2.- «Rotagermine», 1 vez al día, preferiblemente por las mañanas.

3.- No tan potente como el anterior, pero también de estupendos resultados es «Ultralevura» (más barato e igual de efectivo: Arkolevura), que daremos 3 veces al día, dos cápsulas por toma. El contenido de las cápsulas se puede mezclar con yogur, zumo, agua, etc.

DIETA:

vd2

vd1