wtorek, 23 września 2008

Install EMC Navisphere Agent on VMware ESX Server

VMware ESX Server includes SAN management services and tools, like cos-rescan or esxcfg-rescan to scan HBAs and vmkfstools or esxcfg-vmhbadevs for other san related tasks. But EMC provides Navisphere Agent for Linux that can run on ESX and is supported by EMC/VMware.
The Host Agent can :
  • Retrieve information from the storage system automatically at startup or when requested by Manager or CLI.
  • Send drive mapping information to the attached CLARiiON® storage systems.
  • Monitor storage-system events and can notify personnel by email or pager when any designated event occurs.
  • Retrieve LUN World Wide Name (WWN) and capacity information from Symmetrix® storage systems.
To install and run the agent , you need:
  • Download Navisphere Host Agent / CLI from EMC Powerlink, latest version as of this writing is 6.22
  • Extract and run ./linux/ESX_installer.sh to open required ports
  • # # ./ESX_install.sh naviagentcli
    ##############################################

    ESX_install.sh ver 1.1
    The following ports need to be enabled for the software to operate properly

    port -> 6389,tcp,in,NaviCLI
    port -> 6389,tcp,out,NaviCLI
    port -> 6390,tcp,in,NaviCLI
    port -> 6391,tcp,in,NaviCLI
    port -> 6392,tcp,in,NaviCLI
    port -> 443,tcp,out,NaviCLI
    port -> 2163,tcp,out,NaviCLI

    Do you want to enable ? [yes]

    Enabling ports now!
  • Install or upgrade the RPM ( in this example I'm upgrading)
  • # rpm -Uhv naviagentcli-6.22.20.0.94-1.noarch.rpm
    Preparing... ########################################### [100%]
    1:naviagentcli ########################################### [100%]
    Shutting down Naviagent: [ OK ]
  • Start or restart the service:
  • # service naviagent start
    Starting Navisphere agent: [ OK ]
  • go to Navisphere Control Center and update the host and make sure it reflect the same agent version

poniedziałek, 22 września 2008

wydruk prn-a na drukarkę domyślną

@echo off

IF NOT EXIST c:\print.prn (
echo Brak dokumentu
pause
goto konniec
)

FOR /F "TOKENS=2 DELIMS=Z" %%A IN ('reg query "HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Windows" /v device') DO set DD=%%A
echo %DD%
pause
FOR /F "TOKENS=1 DELIMS=," %%D IN ("%DD%") DO copy c:\print.prn %%D

:koniec

poniedziałek, 15 września 2008

DRAC/MC - problem z KVMem na dell-PE

  1. Po zalogowanu sie do modułu web drac nie można korzystac z KVMa. System zgłasza iż do KVMa jest już podłączony root.
Rozwiązanie:
należy zrestartować moduł KVMa z poziomu konsoli DRAC/MC (telnet) wydając komende "racadm chassisaction -m KVM powercycle"