Cisco UCS Server CLI

Di Cisco UCS Server, kita bisa melakukan konfigurasi atau eksekusi command seperti layaknya pada Cisco IOS via CLI. Sebenarnya setelah kita mensetting CIMC IP Address, kita bisa mengakses CLI via ssh ke alamat IP si CIMC. Misalnya saya akses CLI UCS ini dari mesin Redhat.

root@localhost#ssh admin@10.10.10.1

lalu masukan password standar (default) yaitu “password” (tanpa quote;lihat dokumentasi Cisco UCS).

ucs-c2xx-m2# scope chassis   //masuk ke chasis
ucs-c2xx-m2 /chassis # show cpu   //melihat info CPU
Name         Cores    Version
———— ——– ————————————————–
CPU1         4        Intel(R) Xeon(R) CPU           X5570  @ 2.93GHz
CPU2         N/A      N/A
ucs-c2xx-m2 /chassis # show dimm //melihat info memory
Name                 Capacity        Channel Speed (MHz) Channel Type
——————– ————— ——————- —————
DIMM_A1              16384 MB        1600                Other
DIMM_A2              Not Installed   Unknown             Other
DIMM_B1              Not Installed   Unknown             Other
DIMM_B2              Not Installed   Unknown             Other
DIMM_C1              Not Installed   Unknown             Other
DIMM_C2              Not Installed   Unknown             Other
DIMM_D1              Not Installed   Unknown             Other
DIMM_D2              Not Installed   Unknown             Other
DIMM_E1              Not Installed   Unknown             Other
DIMM_E2              Not Installed   Unknown             Other
DIMM_F1              Not Installed   Unknown             Other
DIMM_F2              Not Installed   Unknown             Other

ucs-c2xx-m2 /chassis # show power
Name       In. Power (Watts)    Out. Power (Watts)   Firmware  Status     Product ID
———- ——————– ——————– ——– ———- —————-
PSU1       72                   650                  00.01.07 Present    R2X0-PSU2-650…
PSU2       43                   650                  00.01.07 Present    R2X0-PSU2-650…
ucs-c2xx-m2 /chassis # show psu detail
Name PSU1:
In. Power (Watts): 72
Out. Power (Watts): 650
Firmware : 00.01.07
Status : Present
Product ID : R2X0-PSU2-650W-SB
Name PSU2:
In. Power (Watts): 43
Out. Power (Watts): 650
Firmware : 00.01.07
Status : Present
Product ID : R2X0-PSU2-650W-SB

dan seterusnya. Bagaimana jika ingin melihat serial number atau inventory? #show chassis

Sayangnya saya masih kesulitan menunjukannya di blog ini karena perangkat Cisco UCS ini sedang diinstall Redhat. Di Redhat ini saya enable ssh yang ternyata menggunakan port yang sama dengan ssh di CIMC yaitu port 22.

Sebenarnya bukan itu, awalnya saya menset IP yang identik baik di CIMC maupun eth0 di Redhat. How was I stupid? So, kita mesti membedakan antara IP address CIMC dan eth0. CIMC diatur oleh storagenya Cisco, tapi eth0 diatur oleh operating system yang terpasang di hard disk UCS. CIMC ‘terkoneksi’ melalui port management si UCS. Jadi jika ingin ssh ke CIMC maka perlu diberikan IP yang berbeda antara CIMC dan eth0.

Sayangnya saya baru tahu itu 🙂

Advertisements

Installing rrdtool on Redhat5

I have installed rrdtool by following the instruction from  this web

Actually, I don’t know what for rrdtool is.  I just follow instruction and choose B2 methods to fulfill requirement of some applications that we deployed. Rrdtool is not packaged by RHEL or Centos, that why we should create repository to instruct our server to download rrdtool package from other site, not from Redhat Network or Centos repository. Redhat does not provide rrdtool, so does Centos. The second way, we should install rpm repository which is instruction our OS to download from rrdtool repository (not from RHN or centos) behind the scene. It’s the easiest way for me.

First step, download RPM Forge :

[root@localhost packages]# wget http://apt.sw.be/redhat/el5/en/x86_64/rpmforge/RPMS//rpmforge-release-0.3.6-1.el5.rf.x86_64.rpm
–07:31:20–  http://apt.sw.be/redhat/el5/en/x86_64/rpmforge/RPMS//rpmforge-release-0.3.6-1.el5.rf.x86_64.rpm
Resolving apt.sw.be… 193.1.193.67
Connecting to apt.sw.be|193.1.193.67|:80… connected.
HTTP request sent, awaiting response… 200 OK
Length: 16697 (16K) [application/x-redhat-package-manager]
Saving to: `rpmforge-release-0.3.6-1.el5.rf.x86_64.rpm’

100%[==================================================>] 16,697      22.7K/s   in 0.7s

07:31:21 (22.7 KB/s) – `rpmforge-release-0.3.6-1.el5.rf.x86_64.rpm’ saved [16697/16697]

Second step, install or upgrade rpmforge and install rrdtool. I used upgrade mode by command below:

[root@localhost packages]# rpm -Uhv rpmforge-release-0.3.6-1.el5.rf.x86_64.rpm
warning: rpmforge-release-0.3.6-1.el5.rf.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID 6b8d79e6
Preparing…                ########################################### [100%]
1:rpmforge-release       ########################################### [100%]
[root@localhost packages]# yum install rrdtool
Loaded plugins: rhnplugin, security
rpmforge                                                            | 1.9 kB     00:00
primary.sqlite.bz2                                                  | 6.9 MB     00:04
Setting up Install Process
Parsing package install arguments
Resolving Dependencies
–> Running transaction check
—> Package rrdtool.x86_64 0:1.4.7-1.el5.rf set to be updated
–> Processing Dependency: perl(RRDp) for package: rrdtool
–> Processing Dependency: lua for package: rrdtool
–> Processing Dependency: perl(RRDs) for package: rrdtool
–> Running transaction check
—> Package perl-rrdtool.x86_64 0:1.4.7-1.el5.rf set to be updated
—> Package lua.x86_64 0:5.1.4-2.el5.rf set to be updated
–> Finished Dependency Resolution

Dependencies Resolved

===========================================================================================
Package                Arch             Version                  Repository          Size
===========================================================================================
Installing:
rrdtool                x86_64           1.4.7-1.el5.rf           rpmforge           916 k
Installing for dependencies:
lua                    x86_64           5.1.4-2.el5.rf           rpmforge           235 k
perl-rrdtool           x86_64           1.4.7-1.el5.rf           rpmforge            55 k

Transaction Summary
===========================================================================================
Install      3 Package(s)
Update       0 Package(s)
Remove       0 Package(s)

Total download size: 1.2 M
Is this ok [y/N]: y
Downloading Packages:
(1/3): perl-rrdtool-1.4.7-1.el5.rf.x86_64.rpm                       |  55 kB     00:00
(2/3): lua-5.1.4-2.el5.rf.x86_64.rpm                                | 235 kB     00:00
(3/3): rrdtool-1.4.7-1.el5.rf.x86_64.rpm                            | 916 kB     00:00
——————————————————————————————-
Total                                                      324 kB/s | 1.2 MB     00:03
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing     : lua                                               [1/3]
Installing     : perl-rrdtool                            [2/3]
Installing     : rrdtool                                      [3/3]

Installed: rrdtool.x86_64 0:1.4.7-1.el5.rf
Dependency Installed: lua.x86_64 0:5.1.4-2.el5.rf perl-rrdtool.x86_64 0:1.4.7-1.el5.rf
Complete!
[root@localhost packages]#

Finally, rrdtool can be installed.

Note: verify that the repository website for rrdtool is still valid.