Showing posts with label Hardware. Show all posts
Showing posts with label Hardware. Show all posts

Tuesday, February 19, 2013

Check serial on computer

Sometimes this needs to be verified remotely. Script below gets the job done.

strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
    & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
Set colBIOS = objWMIService.ExecQuery _
    ("Select * from Win32_BIOS")
For each objBIOS in colBIOS 
    Wscript.Echo "Serial Number: " & objBIOS.SerialNumber
Next

Paste in script.vbs

Not my code, but found it long ago and cant find the source.

Tuesday, September 11, 2012

Scheduled reboot of Juniper SSG5

To schedule a reboot of a firewall of model Juniper SSG5:

  1. 1. Make sure firewall have accurate time
  2. 2. Telnet or SSH to firewall
  3. 3. /> set timer mm/dd/yyyy hh:mm action reset

References:

http://kb.juniper.net/InfoCenter/index?page=content&id=KB5750&cat=TECHNOLOGY&actp=LIST

Friday, May 25, 2012

Upgrade Storage array on HP server

To upgrade a HP raid1 disk array with 2 disks of each 70 gb to bigger disks.

1. First make sure that the array is functioning and replicated.

2. Pull on 70gb disk. Insert a bigger one.

3. Wait for array to finish replicating disks.

4. Pull the second 70gb disk. Insert a bigger one.

5. Wait for array to finish replicating.

6. Open HP Array configuration utility.

7. Create a new logical diskspace on the free space.

All this done with all systems live on the hostserver!

Powershell and Uptimerobot

Uptimerobot can be quite tedious when you need to update many monitors at once. For example say you bought the license for Uptimerobot and n...