Visualizzazione post con etichetta server. Mostra tutti i post
Visualizzazione post con etichetta server. Mostra tutti i post

mercoledì 6 novembre 2013

How To Determine Physical Memory on a Remote Machine (slots, chips number and size...)

Hi all,
after a lot of time far from my blog, I'm here again, this time to post a simple and quick command to determine remotely how much physical ram is installed on a machine.

open a command prompt and execute this (replace "server01" with your server name):
wmic /node:server01 memorychip get banklabel, devicelocator,caption,capacity

the result in my case is:

BankLabel  Capacity    Caption          DeviceLocator
           1073741824  Physical Memory  DIMM 01
           1073741824  Physical Memory  DIMM 02
           1073741824  Physical Memory  DIMM 03
           1073741824  Physical Memory  DIMM 04

so, there are 4 dimm installed, each one 1GB 

If you need, there are also other information, from command prompt try (change server01) :


wmic

/node:server01
memorychip

you'll see all the columns available.

You could also try to run
wmic /node:server01 mmemorychip
but the output is a little bit messed up, I don't suggest it to you

bye
Digger

lunedì 10 ottobre 2011

Server uptime - Last Boot time

Hi all,
I would like to share with you this nice and useful command from the console to retrieve the local/remote system last boot time.
It's useful for example to calculate the uptime of a remote server


wmic /node:"servername" os get lastbootuptime

to retrive the local boottime simply don't use the /node option

bye

giovedì 5 agosto 2010

The terminal server has exceeded the maximum number of allowed connections

Rieccoci qui,
se vi capita di collegarvi spesso in controllo remoto utilizzando il remote desktop di microsoft  a server utilizzati anche da altre persone può esservi capitato il famigerato messaggio "The terminal server has exceeded  the maximum number of allowed connections".
A questo punto non siete piu in grado di collegarvi.
Se non avete voglia, modo o altro di far si che gli altri che hanno aperto (e lasciato li) le sessioni sul server provvedano a chiuderle, le potete chiudere voi da remoto per poi collegarvi.
Esiste uno snap-in di microsoft per effettuare l'operazione, ma di seguito vi illustro il modo da riga di comando:

 qwinsta /server:192.168.1.100  
   
   
 NOMESESSIONE   NOMEUTENTE        ID STATO  TIPO    DISPOSITIVO  
                          0 Disc  rdpwd  
 rdp-tcp                 65536 Rimani in ascolto rdpwd  
 console                  4 Conn  wdcon  
          utente1         1 Disc  rdpwd  
          utente1         3 Disc  rdpwd  
   
   
   
 rwinsta 1 /server:192.168.1.100  

Con il comando qwinsta eseguiamo una query sul server remoto 192.168.1.100
Il risultato ci dice che ci sono 2 sessioni disconnesse con la user "utente1" (quindi è stata usata la stessa user da computer diversi creando cosi 2 sessioni distinte).
Se vogliamo poterci collegare in remote desktop dobbiamo terminare almeno una delle due sessioni, per farlo guardiamo l' ID della sessione da terminare (nell'esempio la 1) e utilizziamo il comando rwinsta

A questo punto se ci va possiamo ridare il comando qwinsta per vedere se la sessione con ID=1 è sparita, dopo di che potremo collegarci in controllo remoto

alla prossima