# grep ilo /etc/inittab
ilo:2345:respawn:/sbin/agetty ttyS1 115200 vt100
# grep ttyS1 /etc/securetty
ttyS1
# kill -HUP 1
nota kaki | foot note
few hiccups during my sysadmin journey
20120220
20111125
- First find the device file.#ioscan -fnC fc Class I H/W Path Driver S/W State H/W Type Description ================================================================= fc 0 0/3/1/0 fcd CLAIMED INTERFACE HP A6826-60001 2Gb Dual Port PCI/PCI-X Fibre Channel Adapter (FC Port 1) /dev/fcd0 fc 1 0/3/1/1 fcd CLAIMED INTERFACE HP A6826-60001 2Gb Dual Port PCI/PCI-X Fibre Channel Adapter (FC Port 2) /dev/fcd1 fc 2 0/3/2/0 td CLAIMED INTERFACE HP Tachyon XL2 Fibre Channel Mass Storage Adapter /dev/td2
- Next use fcmsutil with that driver number to find fibre channel firmware version.#fcmsutil /dev/fcd0 vpd V I T A L P R O D U C T D A T A --------- ------------- ------- Product Description : "Dual Port 2Gbps/1Gbps Fibre Channel Universal PCI-X Adapter" Part number : "A6826-60001" Engineering Date Code : "A-4325" Part Serial number : "US00501499" Misc. Information : "PW=15W;PCI 66MHZ;PCI-X 133MHZ" Mfd. Date : "4334" Check Sum : 0xb6 EFI version : "001.30" ROM Firmware version : "003.002.168" Asset Tag : "NA"
20110902
20110714
Offending key in .ssh/known_hosts:<number>
vi .ssh/known_hostsremove the line, let say if the number is 348
:348
dd
:wq!
20110620
unable to qualify my own domain name
1) disable sendmail
OR
2) set the domain name & hostname to FQDN
make domain name permanent - use /etc/defaultdomain
3) add FQDN to /etc/hosts (next to IP)
OR
2) set the domain name & hostname to FQDN
make domain name permanent - use /etc/defaultdomain
3) add FQDN to /etc/hosts (next to IP)
20110531
ssh can be used in while or for loop
-n Redirects stdin from /dev/null (actually, prevents reading from stdin). This must be used when ssh is run in the background. A common trick is to use this to run X11 programs on a remote machine. For example, ssh -n shadows.cs.hut.fi emacs & will start an emacs on shadows.cs.hut.fi, and the X11 connection will be automatically forwarded over an encrypted channel. The ssh program will be put in the background. (This does not work if ssh needs to ask for a password or passphrase; see also the -f option.)
Semaphores exhausted: OS support please check: 0 semaphores available.
//Solaris 10:
you will get the current number of semaphores ids
the maximum limit is the privileged value
Temporarily increase the value to double
# expr `ipcs -s | wc -l` - 3you will get the current number of semaphores ids
# prctl -n project.max-sem-ids $$the maximum limit is the privileged value
Temporarily increase the value to double
# prctl -n project.max-sem-ids -v 256 -r -i project default
//Solaris 9:
The default semmni value (max sem ids) is 10. Set the new value in the /etc/system and reboot is compulsory.
# expr `ipcs -s|wc -l` - 3
you will get the current number of semaphores ids
sshd[#]: [ID 800047 auth.error] error: Failed to allocate internet-domain X11 display socket
Check your $DISPLAY.
Should be like
10 could be 11 12 13 etc
If you dont see that, check where $DISPLAY value comes from
try commented it out
if still not work try google somewhere else, u may find
1. plumb the ip6 localhost
2. use sshd -4 (edit
3. Change
Hmm I dunno.. good luck
echo $DISPLAYShould be like
localhost:10.010 could be 11 12 13 etc
If you dont see that, check where $DISPLAY value comes from
grep DISPLAY ~/.*try commented it out
if still not work try google somewhere else, u may find
1. plumb the ip6 localhost
2. use sshd -4 (edit
/lib/svc/method/sshd for solaris 10)3. Change
ListenAddress in sshd_config from :: to 0.0.0.0Hmm I dunno.. good luck
20110503
excel: format data cell to kilobytes(KB), megabytes(MB), gigabytes(GB) with 2 decimal points
[<1000]#,##0.00" KB ";[<1000000]#,##0.00," MB";#,##0.00,," GB"
Labels:
ms.excel
Subscribe to:
Posts (Atom)