Pages

Showing posts with label Umum. Show all posts
Showing posts with label Umum. Show all posts

H3C Hardware Device Management (HDM)

H3C HDM — Hardware Device Management

H3C HDM — Hardware Device Management

Built‑in system for H3C servers enabling remote monitoring, control, and maintenance of server hardware.

🔧 Functions — What it does

Remote hardware management: diagnostics, sensor monitoring, power control, and web interface.

• Server diagnostics & alerts
• Sensor data: temperature, fan, voltage
• Power on/off, reboot, schedule
• Web UI for component management
💡 Capabilities — Key features

Remote KVM, virtual media, and support for IPMI and Redfish standards.

• Remote KVM (keyboard, video, mouse)
• Virtual media for ISO mounting
• IPMI & Redfish API support
• SNMP/Trap monitoring integration
🎯 Purpose — Why it matters

Provides intelligent, efficient, and reliable management from single servers to data centers.

• Simplify O&M workflows
• Enable automation & orchestration
• Reduce downtime & improve performance

Serial Number Commands

Serial Number Commands (Windows / Cisco IOS / Linux / Unix)

Get Serial Number — Commands for Desktops, Servers & Network Devices

Copy the commands from the boxes and run them on the target machine. This HTML uses no JavaScript (improves Blogger Compose compatibility). Expand each section for commands and notes.

Windows (Desktop & Server)PowerShell & WMIC
Works on Windows 7 / 8 / 10 / 11 and Windows Server (2008+). Run as Administrator when required.
Commands

Tip: Click inside a box, Ctrl+A then Ctrl+C to copy

Get-CimInstance -ClassName Win32_BIOS | Select-Object SerialNumber
Get-WmiObject -Class Win32_BIOS | Select-Object SerialNumber
wmic bios get serialnumber
reg query HKEY_LOCAL_MACHINE\\HARDWARE\\DESCRIPTION\\System\\BIOS /v SystemSerialNumber
If commands return blank on virtual machines the host/BIOS might not expose serial number (VMs often show 'None' or empty).
Linux (Desktop & Server)dmidecode / sysfs
Commands below require root privileges for dmidecode and reading /sys files on many systems.
Commands

Run as root or prepend sudo where shown

sudo dmidecode -s system-serial-number
cat /sys/class/dmi/id/product_serial\n# or\ncat /sys/class/dmi/id/board_serial
sudo lshw -class system | grep -i serial
sudo dmidecode -t system
On cloud instances or some small form-factor devices the DMI table may be absent or have vendor-specific fields.
macOS (Apple desktop & server)system_profiler / ioreg
Run on the Mac where the hardware is physically present.
Commands
system_profiler SPHardwareDataType | awk '/Serial/ {print $4}'\n# Or fuller info\nsystem_profiler SPHardwareDataType
ioreg -l | grep IOPlatformSerialNumber\n# or\n/usr/sbin/ioreg -c IOPlatformExpertDevice | awk -F'\"' '/IOPlatformSerialNumber/ {print $4}'
Cisco IOS (routers & switches)show commands
Run from privileged EXEC mode (enable).
Commands
show version
show inventory\n# On some platforms\nshow platform chassis serial\nshow platform hardware qfp active infrastructure sysid
Look for lines like Processor board ID XXXXXXXXX or serial entries in the inventory output.
Juniper Junosshow chassis
Run from CLI in operational mode.
Commands
show chassis hardware | match Serial\n# or\nshow system information | match serial
Other Unix variantsAIX / Solaris / FreeBSD / HP-UX
Commands below vary by vendor. Run as root when required.
Commands
OSCommand (examples)
AIX
lsattr -El sys0 | grep -i systemid\n# or\nlscfg -vp | grep -i serial
Solaris (SPARC/x86)
prtdiag -v | grep -i serial\n# or\n/usr/sbin/smbios -s system-summary
FreeBSD
dmidecode -s system-serial-number\n# or\nkenv -q smbios.system.serial
HP-UX
# On many HP systems\n/opt/hp/hpuxinfo/bin/serialnumber  (vendor tool)\n# Or check SAM or iLO for servers; vendor utilities vary
If OS-level commands do not show serial, check vendor management interfaces (ILO, DRAC, IMM) or hardware labels.

Quick troubleshooting & best practice

  • Run commands as an administrator/root where noted (use sudo for Linux).
  • Virtual machines often do not expose a hardware serial number; check hypervisor or cloud metadata service instead.
  • For servers, management controllers (iLO, DRAC, IMM) reliably show chassis serial numbers from the vendor.
  • If a command returns nothing, try alternate commands in the same section — vendors differ.

Snipe-IT : Time not accurate (Wrong Time / Worng Date)

Oops, suddenly I realized that the data that was being saved (Snipe-IT) did not match the current time of the activity taken.

I am really sure that the problem came from Snipe-IT because of no issues from:

  • The time and date on the server are accurate.
  • There are several applications running that are very dependent on accuracy in time.

The problem came from the "REQUIRED: BASIC APP SETTINGS" on the .env file.

Just change APP_TIMEZONE from 

APP_TIMEZONE='UTC' to APP_TIMEZONE='Asia/Kuala_Lumpur' <depends on your timezone> based on the PHP-supported timezone.

After changing the timezone, just restart the Apache. It should be ok.


Snipe-IT : Changing checkout consumeables directly from database.

There are 2 tables that need to be updated in order for the consumable item to be displayed correctly. Otherwise, your log is messed up.


Table1 : action_logs

Filter by user_id

Filter action_type = checkout <additional>

Changed column target_id

Changed column company_id <additional>

Table2 : consumables_users

Filter by user_id

Cross Check "Date & Time" from table action_logs

Changed column assigned_to


Now it depends on you to create an interface for it or custom your own SQL syntax.

Changed Default Page For Nagios Version 4.4.x

Search for a file named index.php. The file located in your nagios installation folder /..../nagios/share/index.php

and then search for $url = 'main.php';
This is the default page for Nagios. Change only main.php to your desired default page, either Type 1 or Type 2. It's your call.


Type 1;
$url='map.php?host=all';


Type 2;
$url='cgi-bin/tac.cgi';



Actually, it's just changing the URL for the default page.
After editing the file, don't forget to restart your Apache.

Linux : Showing Processor Type, Memory Size, Total Disk Space

Anyway, to cut a long story short, I got documentation that needs to be submitted which is to get the info of the processor type, memory info and storage size for Linux machines. 

A bunch of information will be displayed if we only used lscpu, meminfo and df command. To make life easier, below are the straightforward command to get that information.

Checking for processor type.

(1) lscpu | grep "Model name"


Checking memory info using grep command.
(Global Regular Expression Print)

(2) grep MemTotal /proc/meminfo | numfmt --field 2 --from-unit=Ki --to-unit=Mi | sed 's/ kB/M/g'

(3) grep MemTotal /proc/meminfo | numfmt --field 2 --from-unit=Ki --to=iec | sed 's/ kB//g'

(4) grep MemTotal /proc/meminfo | numfmt --field 2 --from-unit=Ki --to-unit=Gi | sed 's/ kB/G/g'


Checking memory info using awk command.
(Aho, Weinberger, Kernighan (authors))


(5) awk '$3=="kB"{$2=$2/1024;$3="MB"} 1' /proc/meminfo | column -t | grep MemTotal

(6) awk '$3=="kB"{$2=$2/1024^2;$3="GB";} 1' /proc/meminfo | column -t | grep MemTotal


Checking Store Size

(7) df --total -h




If there is any detailed explanation, just let me know in the comment below. Thanks.


Reclaiming your disk space in Windows. (PART II)

Actually, this post was published due to frustration for me to gain back storage that is being taken by the unnecessary process. Those logs are helpful if you know how to manipulate them. That's why log collector is being developed.

What log can do? 
Long list cut short: Audit trailsImproving existing systems and System Troubleshooting.

Nevertheless, I'll still update this post if I encounter another solution. (Definitely without using third-party tools). Let's Go...

  • Cleanup the content inside the folder Component-Based Servicing (CBS): This folder has logged about the installed and uninstalled Windows Update component.

    Go to run > key in %Windir%\logs\CBS and press Enter key. 


  • If you have IIS running, check the logs and move them to another drive or just delete it.

    C:\inetpub\logs\LogFiles\W3SVC1



Reclaiming your disk space in Windows.

There are lots utility that can you install on your machine to claimed your disk space. But personally, I prefer preset tools or tricks that come with the operating system. Those utilities are the last option for me. Here are my sharing to all.

  • Empty your Recycle Bin


  • Using Control Panel
    Go to run > key in appwiz.cpl and press Enter key. Uninstall unwanted applications and their respective appdata and Program folders.


  • Delete temporary file inside the folder.
    Go to run > key in %temp% and press Enter key. 


  • Run Disk Cleanup
    (For Windows that didn't have this utility, I'll share instructions on how to obtain it in the incoming post.)


  • ReportQueue: Windows Error Reporting service (WER) is used to collect the debug information about the system and third-party app failures but actually, few people use this feature. Safe to delete.

    System data goes to the ProgramData directory
    Go to run > key in %ALLUSERSPROFILE%\Microsoft\Windows\WER\ and press Enter key.

    User data is saved to the user profile
    Go to run > key in %USERPROFILE%\AppData\Local\Microsoft\Windows\WER\ and press Enter key.


  • Cleanup the SoftwareDistribution folder: Used by Windows Update to preload downloaded updates and hotfixes before installing them. Safe to delete.
    C:\Windows\SoftwareDistribution\Download


  • Cleanup cached folder after your computer applies a Windows patch. The files in this cache are mainly used to roll the system back when a patch is uninstalled. 
    C:\Windows\Installer\$PatchCache$


  • For those who use TightVNC, must probably the log is full. Just delete the file inside the folder.
    C:\ProgramData\TightVNC

If you have questions or concerns, just let me know.

Inbound Connection limit in Windows

Basic need to know, Limitation connection for Windows.

Using net config server command through command prompt, we can check Maximum Logged On Users for current operating system.

In my case, Windows 7 Professional 64 bit operating system support 20 concurrent users.

Source : support.microsoft.com

Static page bagi mengenalpasti MAC dan Hostname

Bagi membolehkan sekatan dilakukan pada Sangfor bagi spesifik komputer, unit kami membangunkan sistem aplikasi web bagi mendapatkan MAC dan Hostname tanpa perlu ke pejabat pegawai tersebut.
  1. Kenapa sekatan dilakukan pada MAC, ini kerana IP Address di sini adalah DHCP.
  2. Kenapa tidak dilakukan pada range IP Address, ini kerana terdapat IP Address dalam range yang sama ada yang dibenarkan full access dan ada yang tidak.
  3. Apa yang saya lakukan di sini adalah bagi memantau dan menyelia rangkaian network di sini.
  4. Untuk apa.. Ini tempat kerja saya...

osTicket @ Helpdesk System

Sekarang ini saya sedang sibuk mengkonfigure Sistem Aduan Teknologi Maklumat yang menggunakan osTicket sebagai platform.

Tugasannya adalah memastikan Email dihantar kepada Pengadu sejurus sahaja aduan dilaporkan. Dalam masa yang sama, satu manual perlu diwujudkan bagi memperkenalkan Sistem Aduan Teknologi Maklumat kepada warga kerja. Tidak lupa juga manual bagi Admin yang menggunakan sistem tersebut.

Bercakap tentang configuration, tiada masalah.. Tapi tentang translation :(
Dijangkakan sitem ini akan digunapakai pada awal bulan Jun 2013.

Wish me luck...

You might also like:

Popular Posts