- 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"
20111125
20110902
20110714
Offending key in .ssh/known_hosts:<number>
vi .ssh/known_hosts
remove 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` - 3
you 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 $DISPLAY
Should be like
localhost:10.0
10 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.0
Hmm 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"
20110330
Set POST to minimum mode
sc> setkeyswitch normal
sc> setsc diag_mode normal
sc> setsc diag_level min
sc> setsc diag_mode normal
sc> setsc diag_level min
20110310
network device changed or missing
Can't ping gateway.
# diff path _to _inst path _to _inst.old
54,55d53
< "/virtual-devices@100/channel-devices@200/virtual-channel@0" 1 "vldc"
< "/virtual-devices@100/channel-devices@200/virtual-channel@3" 2 "vldc"
# ifconfig -a
lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
inet 127.0.0.1 netmask ff000000
e1000g2: flags=1000803<UP,BROADCAST,MULTICAST,IPv4> mtu 1500 index 2
inet 153.88.105.17 netmask ffffff00 broadcast 153.88.105.255
ether 0:14:4f:af:d1:6c
# grep e1000g /etc/path _to _inst
"/pci@780/pci@0/pci@1/network@0" 0 "e1000g"
"/pci@780/pci@0/pci@1/network@0,1" 1 "e1000g"
"/pci@7c0/pci@0/pci@2/network@0" 2 "e1000g"
"/pci@7c0/pci@0/pci@2/network@0,1" 3 "e1000g"
# snoop -d e1000g2
Using device /dev/e1000g2 (promiscuous mode)
# grep e1000g /var/adm/messages*
Feb 19 10:37:08 hostoraa3 mac: [ID 469746 kern.info] NOTICE: e1000g2 registered
Feb 19 10:37:08 hostoraa3 e1000g: [ID 766679 kern.info] Intel(R) PRO/1000 Network Connection, Driver Ver. 5.1.8
Feb 19 10:37:13 hostoraa3 e1000g: [ID 801725 kern.info] NOTICE: pciex8086,105e - e1000g[2] : Adapter copper link is down.
Feb 20 07:52:49 hostoraa3 mac: [ID 469746 kern.info] NOTICE: e1000g0 registered
Feb 20 07:52:49 hostoraa3 e1000g: [ID 766679 kern.info] Intel(R) PRO/1000 Network Connection, Driver Ver. 5.1.8
Feb 20 07:52:49 hostoraa3 mac: [ID 469746 kern.info] NOTICE: e1000g1 registered
Feb 20 07:52:49 hostoraa3 e1000g: [ID 766679 kern.info] Intel(R) PRO/1000 Network Connection, Driver Ver. 5.1.8
Feb 20 07:52:50 hostoraa3 mac: [ID 469746 kern.info] NOTICE: e1000g3 registered
Feb 20 07:52:50 hostoraa3 e1000g: [ID 766679 kern.info] Intel(R) PRO/1000 Network Connection, Driver Ver. 5.1.8
Feb 20 07:52:50 hostoraa3 e1000g: [ID 801725 kern.info] NOTICE: pciex8086,105e - e1000g[1] : Adapter copper link is down.
# modinfo | grep e1000g
142 7bfa2000 22338 83 1 e1000g (Intel PRO/1000 Ethernet 5.1.8)
# kstat -m e1000g | less
...
# ifconfig e1000g1 plumb
# ifconfig -a
lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
inet 127.0.0.1 netmask ff000000
e1000g1: flags=1000842<BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 3
inet 0.0.0.0 netmask 0
ether 0:14:4f:af:d1:6b
e1000g2: flags=1000803<UP,BROADCAST,MULTICAST,IPv4> mtu 1500 index 2
inet 153.88.105.17 netmask ffffff00 broadcast 153.88.105.255
ether 0:14:4f:af:d1:6c
# ifconfig e1000g2 unplumb
# ifconfig e1000g1 153.88.105.17 netmask 255.255.255.0 up
# ifconfig -a
lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
inet 127.0.0.1 netmask ff000000
e1000g1: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 3
inet 153.88.105.17 netmask ffffff00 broadcast 153.88.105.255
ether 0:14:4f:af:d1:6b
# netstat -rn
Routing Table: IPv4
Destination Gateway Flags Ref Use Interface
-------------------- -------------------- ----- ----- ---------- ---------
default 153.88.105.1 UG 1 155654
153.88.105.0 153.88.105.17 U 1 1 e1000g1
127.0.0.1 127.0.0.1 UH 18 468989 lo0
# ping 153.88.105.1
153.88.105.1 is alive
20110303
Error 3: Bad or corrupt data while decompressing file
symptom: keeps on getting back to the boot menu.
in failsafe mode,
kudos to sysinfo.bascomp
in failsafe mode,
# rm -f /a/platform/i86pc/boot_archive
# bootadm update-archive -R /a
# reboot
kudos to sysinfo.bascomp
20110222
files open by process id
# pfiles <PID>
# pmap <PID>
p/s: just found out how to put <, > in blogger.
20110221
Subscribe to:
Posts (Atom)