How to enable SSH Root Login In Solaris 11

Permit SSH Login for Root in Oracle Solaris 11 Open Terminal window and switch to root user. 1. Change the file /etc/ssh/sshd_config PermitRootLogin yes with PermitRootLogin no and save file.     vi /etc/ssh/sshd_config     PermitRootLogin yes 2. Comment out the “CONSOLE=/dev/console” line in /etc/default/login.     vi /etc/default/login   #CONSOLE=/dev/console 3.Remove “;type=role” from the root entry in /etc/user_attr or use the below command.  rolemod -K type=normal root 4. Restart the Services. #svcadm restart svc:/network/ssh:default… Leer más: How to enable SSH Root Login In Solaris 11 »

Remove all ZFS snapshots

#!/bin/bashfor snapshot in `zfs list -H -t snapshot | cut -f 1`dozfs destroy $snapshotdone

Mbuffer

https://everycity.co.uk/alasdair/2010/07/using-mbuffer-to-speed-up-slow-zfs-send-zfs-receive/ http://www.polyomica.com/improving-transfer-speeds-for-zfs-sendreceive-in-a-local-network/ https://www.commandlinefu.com/commands/view/13582/backup-to-lto-tape-with-progress-checksums-and-buffering

FreeBSD: List disk drives and re-scan after adding hot-add disk (in virtual environments)

$ sudo camcontrol devlist<NECVMWar VMware IDE CDR10 1.00>   at scbus1 target 0 lun 0 (cd0,pass0)<VMware Virtual disk 1.0>          at scbus2 target 0 lun 0 (da0,pass1)<VMware Virtual disk 1.0>          at scbus2 target 1 lun 0 (da1,pass2) $ sudo camcontrol rescan allRe-scan of bus 0 was successfulRe-scan of bus… Leer más: FreeBSD: List disk drives and re-scan after adding hot-add disk… »

nginx monitoring prtg

If you’re merely interested in recording the connection information from the status page, you can use the embedded variables that the status module exposes, and format them for consumption by the HTTP Content sensor directly in the NGINX configuration: location /prtg { return 200 [$connections_active][$connections_reading][$connections_writing][$connections_waiting]; access_log off; allow x.x.x.x/y; deny all; } Reference: https://nginx.org/en/docs/http/ngx_http_stub_status_module.html