Convert an IP address to hex using the “gethostip” command: This is useful for naming files in a pxelinux.cfg directory, for instance.
-
« Home
-
RSS Feeds
Convert an IP address to hex using the “gethostip” command: This is useful for naming files in a pxelinux.cfg directory, for instance.
For Red Hat or clones, or ESX/ESXi, use “grub-md5-crypt”: Copy and paste to “rootpw –iscrypted” as appropriate.
NetApp requires setting a timeout value of 190 seconds for all VMware data stores on their filers to handle “long fabric or storage-side I/O interruptions”; this is done as follows on FreeBSD: This can be set permanently in /etc/sysctl.conf: Elsewhere, I have seen a recommendation for FreeBSD on ESX that kern.cam.da.retry_count be set to 120.
To query the architecture of installed RPMs, use a custom query format:
Adapted from the lpadmin man page, for an HP JetDirect printer: > pfexec lpadmin -p lp01 -v /dev/null -m netstandard -o dest=lp01.example.com:9100 -o protocol=tcp -T PS -I postscript > pfexec lpset -a banner=never lp01 > pfexec lpadmin -d lp01 > pfexec enable lp01 > pfexec accept lp01
YMMV; adjust as you see fit: svcadm disable svc:/network/nfs/mapid:default svcadm disable svc:/network/nfs/cbd:default svcadm disable svc:/network/nfs/status:default svcadm disable svc:/network/nfs/nlockmgr:default svcadm disable svc:/network/rpc/rstat:default svcadm disable svc:/application/x11/xfs:default svcadm disable svc:/network/finger:default svcadm disable svc:/network/ftp:default svcadm disable svc:/network/login:rlogin svcadm disable svc:/network/nfs/rquota:default svcadm disable svc:/network/nfs/client:default svcadm disable svc:/network/rpc/rusers:default svcadm disable svc:/network/rpc/cde-ttdbserver:tcp svcadm disable svc:/network/shell:default svcadm disable svc:/network/telnet:default svcadm disable svc:/network/cde-spc:default svcadm [...]
To use pfexec similarly to sudo, use “usermod” to give the account the “Primary Administrator” profile: # usermod -P’Primary Administrator’ aleonard “aleonard” will now be able to preface commands with “pfexec” to run them as root, similar to sudo when configured not to prompt for a password. References: Less known Solaris features: pfexec
Configure ‘/usr/lib/mail/cf/sendmail.mc’ to meet your needs; for example, to use the access_db and mailertable features: divert(0)dnl VERSIONID(`@(#)sendmail.mc 1.11 (Sun) 06/21/04′) OSTYPE(`solaris8′)dnl DOMAIN(`generic’)dnl FEATURE(access_db, `hash -o -T /etc/mail/access’) FEATURE(mailertable, `hash -o /etc/mail/mailertable’) MAILER(`local’)dnl MAILER(`smtp’)dnl The new ‘sendmail.cf’ can be built in ‘/usr/lib/mail/cf/sendmail.mc’ by running ‘make’ as root. Copy the new ‘sendmail.cf’ file to ‘/etc/mail’ and restart [...]