giovedì 19 febbraio 2015

Cisco UCS Defining CIMC Network Static Settings Using a Script File an usb key

Use this procedure to define static network settings for multiple servers by automating the configuration process with a script file.
Procedure
Step 1   Use a text editor to create a file named network.cfg.
Step 2   Create the contents of network.cfg in the following format by using only the tags that you want to set:
dhcp-enabled:
v4-addr:
v4-netmask:
v4-gateway:
vlan-enabled:
vlan-id:
vlan-priority:
password: 
mode:
redundancy:

For example, to disable DHCP, set the IP address, subnet mask, gateway, and user password, use the following sample values:
dhcp-enabled: 0
v4-addr: 10.193.70.102
v4-netmask: 255.255.255.0
v4-gateway: 10.193.70.1
password: nonpasswd
mode:
redundancy:

Step 3   Use a text editor to create a file named startup.nsh with the following contents:
fs0:
cimcconfig

Step 4   Copy your network.cfg file and your startup.nsh file to a USB thumb drive.
Step 5   Insert the USB thumb drive into a USB port on the server.
Step 6   Press and release the Power button to boot the server.
Step 7   Observe the booting process and press F6 when prompted to enter the BIOS Boot Manager.
Step 8   Select EFI as the boot device and then press Enter. The server power cycles and launches the configuration utility, which runs the startup.nsh file. Any errors are displayed on the screen and on an errors.txt file.
Step 9   Remove the USB thumb drive, alter the network.cfg file with your next IP address, and then insert the USB thumb drive into the next server that you want to configure.
Step 10   After the server has been assigned an IP address, you can use that address to access the service processor's GUI or CLI management system.

martedì 17 febbraio 2015

How do I fix the GPG error “NO_PUBKEY” for atp-get GUI method

By far the simplest way to handle this now is with Y-PPA-Manager (which now integrates the launchpad-getkeys script with a graphical interface).
  1. To install it, first add the webupd8 repository for this program:
    sudo add-apt-repository ppa:webupd8team/y-ppa-manager
    
  2. Update your software list and install Y-PPA-Manager:
    sudo apt-get update
    sudo apt-get install y-ppa-manager
    
  3. Run y-ppa-manager (i.e. type y-ppa-manager then press enter key).
  4. When the main y-ppa-manager window appears, click on "Advanced."
  5. From the list of advanced tasks, select "Try to import all missing GPG keys" and click OK.
    You're done! As the warning dialog says when you start the operation, it may take quite a while (about 2 minutes for me) depending on how many PPA's you have and the speed of your connection.

giovedì 12 febbraio 2015

Cisco Nexus 5000 enable FEX

switch# configure terminal
switch(config)# feature fex
 This example shows how to associate the Fabric Extender to an Ethernet interface:

switch# configure terminal
switch(config)# interface ethernet 1/40
switch(config-if)# switchport mode fex-fabric
switch(config-if)# fex associate 101

This example shows how to associate the Fabric Extender to an EtherChannel interface:
switch# configure terminal
switch(config)# interface port-channel 4
switch(config-if)# switchport mode fex-fabric
switch(config-if)# fex associate 101

Reclaim Terminal on Cisco Terminal Server

Connect to the cisco terminal server via telnet or ssh.
enter pass and ena pass.

Launch:
show line

A list of all the lines is shown thee ones with a * (star) next to them are in use.

To reclaim the line launch:
clear line 9

now connect via telnet to the IP:PORT.

Reset Terminal license on Windows 2008, 2008 R2 and 2012


While Windows installed with Terminal Server role it does work without License for 120 Days on trail license, where within 120 days if the License server is not Connected the server will stop accepting connection with below error and event ID

error no licence

EventID: 1128
Source: TerminalServices-RemoteConnectionManager


The RD Licensing grace period has expired and the service has not registered with a license server with installed licenses. A RD Licensing server is required for continuous operation. A Remote Desktop Session Host server can operate without a license server for 120 days after initial start up.

1128eventid

The official solution is to Activate the RDS/TS CAL License server and point the Server to License server with User/Device License and will be resolve the problem

But if you want to reset the timer and again avail 120 days grace time  here is the solution

The solution was to delete the REG_BINARY in
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\RCM\GracePeriod
Only leaving the default.
regkey

Note: you must take ownership and give admin users full control to be able to delete this key.

After a reboot the server should be working again for another 120 Days.
 
REMEMBER: regedit must be RUn in administrator mode.
REMEMBER2: you would need to take the ownership of the GracePeriod folder and inherit the permission to the child folders and content. Post which you would be able to delete the key