Hodžův blog

29 Srp

Greenbone Enterprise TRIAL – Login problem

With Greenbone Enterprise TRIAL, as well as Greenbone Community Edition (GCE), I ran into a problem where I could not log into the web interface after several tests. I just get a message:

The Greenbone Vulnerability Manager service is not responding. This could be due to system maintenance. Please try again later, check the system status, or contact your system administrator.

In order to get any information from the running system at all, it is necessary to become the root user. I achieved this as follows:

Open the Shell via the Support Menu and in the shell enter the following commands:

gos-state-manager set superuser enabled
gos-state-manager set superuserpassword y0ur-fuck1ng-c0mpleX-superus3r-p@ssw0rd
gos-state-manager save

Now you can log in directly in the console as the root user (for SSH it would probably be necessary to modify the configuration file /etc/ssh/sshd-config).

After a short investigation, I discovered that the GVMD service (systemctl status gvmd) is not running. This service cannot be started because the PostgreSQL database is not running either (systemctl status postgresql) and PostgreSQL cannot be started because it is always killed by the OOM killer (read from dmesg).

The free command showed that there was 4GB of RAM in the system, but this did not match my VMware setup, which is set to 16GB. Likewise, the number of cores in VMware was 8, while Linux only had 2.

It occurred to me that system resources could be limited directly by the kernel using the GRUB bootloader. Therefore, I looked into the file /etc/default/grub and I really found some limitations here:

GRUB_CMDLINE_LINUX = "$GRUB_CMDLINE_LINUX maxcpus=2"
GRUB_CMDLINE_LINUX = "$GRUB_CMDLINE_LINUX mem=5G"

So I commented out the mentioned lines, applied the changes to the system (update-grub) and restarted the machine. Now the machine has 8 cores and 16GB of RAM (as configured in VMware) and all services are running…

02 Čvc

Soft Reset DELL iDRAC using SSH

racadm racreset soft

07 Čvn

HowTo: Upgrade Intel NVMe P4600 SSD firmware in ESXi 7

Download and install Intel® Memory and Storage Tool CLI Solidigm™ Storage Tool CLI (SST)

[root@vmware:~] /opt/solidigm/sst/sst load -ssd 0
WARNING! You have selected to update the drives firmware!
Proceed with the update? (Y|N): y
Checking for firmware update...
- Intel SSD DC P4600 Series PHLE729000X14P0KGN -
Status : The selected drive contains current firmware as of this tool release.

[root@vmware:~] /opt/solidigm/sst/sst show -ssd 0
- 0 Intel SSD DC P4600 Series PHLE729000X14P0KGN -
Bootloader : 0136
Capacity : 3.64 TB (4,000,787,030,016 bytes)
DevicePath : nvmeMgmt-nvmhba0
DeviceStatus : Healthy
Firmware : QDV101D1
FirmwareUpdateAvailable : The selected drive contains current firmware as of this tool release.
Index : 0
MaximumLBA : 7814037167
ModelNumber : INTEL SSDPEDKE040T7
NamespaceId : 1
PercentOverProvisioned : 100.00
ProductFamily : Intel SSD DC P4600 Series
SMARTEnabled : True
SectorDataSize : 512
SerialNumber : PHLE729000X14P0KGN

02 Čvn

Proxmox – Could not login to web interface and read only directory /etc/pve

May 29 02:06:55 pve1 pvestatd[1931]: authkey rotation error: cfs-lock 'authkey' error: got lock request timeout
May 29 02:06:55 pve1 pvestatd[1931]: status update time (9.120 seconds)
May 29 02:06:56 pve1 pve-ha-lrm[2050]: unable to write lrm status file - unable to delete old temp file: Input/output error

Fix the cluster filesystem:
# systemctl stop pve-cluster
# rm -f /var/lib/pve-cluster/.pmxcfs.lockfile
# systemctl start pve-cluster

25 Kvě

Howto: Remove Microsoft Office from your windows computer with PowerShell

Simple … Isn’t It??
Get-AppxPackage -name “Microsoft.Office.Desktop” | Remove-AppxPackage
Get-AppxPackage *officehub* | Remove-AppxPackage

25 Kvě

HowTo: Old Debian & error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory

Problem:
#./hpsetup
./hpsetup: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory

Quick Fix:
# apt-get install lib32stdc++6

12 Kvě

HowTo: Import a PEM certificate and PEM private key into the Windows key store

Create a PKCS12 file containing the certificate and its private key:

$ openssl pkcs12 -export -in MyCertficate.crt -inkey MyPrivateKey.pem -out CertificateForImportInWindows.p12

The .p12 generated file is protected by a password and can then be transported without any risk.
On a Windows, open this .p12 file and follow the instructions provided.

20 Dub

HowTo: PowerShell Full Command History

Get-Content (Get-PSReadlineOption).HistorySavePath

28 Úno

VMware ESXI 7 and Intel NVMe SSD – Can’t add datastore

After a clean installation of VMware ESXi 7.0, I saw an NVMe disk (Intel DC P4600 4TB) in the system, but the datastore could not be added.
I solved the problem quickly as follows:

1. List unresolved snapshots or replica volumes.
# esxcli storage vmfs snapshot list
621cdcb9-053ddbab-e0a7-ac162d6f2e80
Volume Name: NVME-Intel
VMFS UUID: 621cdcb9-053ddbab-e0a7-ac162d6f2e80
Can mount: true
Reason for un-mountability:
Can resignature: true
Reason for non-resignaturability:
Unresolved Extent Count: 1

2. Resignature snapshot
# esxcli storage vmfs snapshot resignature --volume-label=NVME-Intel

Now it’s possible to add a datastore in the standard way…

Also don’t forget to install the Intel® Memory and Storage Tool CLI.

Common information about the disc:
# /opt/intel/intelmas/intelmas show -intelssd 0
- 0 Intel SSD DC P4600 Series PHLE729000X14P0KGN -
Bootloader : 0110
Capacity : 3726.02 GB
DevicePath : nvmeMgmt-nvmhba0
DeviceStatus : Healthy
Firmware : QDV10150
FirmwareUpdateAvailable : Firmware=QDV101D1 Bootloader=QB1B0136
Index : 0
MaximumLBA : 7814037167
ModelNumber : INTEL SSDPEDKE040T7
NamespaceId : 1
PercentOverProvisioned : 100.00
ProductFamily : Intel SSD DC P4600 Series
SMARTEnabled : True
SectorDataSize : 512
SerialNumber : PHLE729000X14P0KGN

S.M.A.R.T information:
/opt/intel/intelmas/intelmas show -nvmelog SmartHealthInfo -intelssd 0
- PHLE729000X14P0KGN -
- NVMeLog SMART and Health Information -
Volatile memory backup device has failed : False
Temperature has exceeded a critical threshold : False
Temperature - Celsius : 21
Media is in a read-only mode : False
Power On Hours : 0x5948
Power Cycles : 0x07
Number of Error Info Log Entries : 0x0
Controller Busy Time : 0x483A
Available Spare Space has fallen below the threshold : False
Percentage Used : 5
Critical Warnings : 0
Data Units Read : 0x4447F480
Available Spare Threshold Percentage : 10
Data Units Written : 0x81CC91A9
Unsafe Shutdowns : 0x03
Host Write Commands : 0x09DF7D8CD4
Device reliability has degraded : False
Available Spare Normalized percentage of the remaining spare capacity available : 99
Media Errors : 0x0
Host Read Commands : 0x0277FA1B17

Disk firmware update:
# /opt/intel/intelmas/intelmas load -intelssd 0

30 Zář

How to find: Exchange Administration Center URL

In Exchange Management Shell run this command:
Get-ECPVirtualDirectory | Format-List InternalURL,ExternalURL

Hodžův blog is is proudly powered by Wordpress and the Magellan Theme